test
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • angie00 Friend
    #188220

    enGB.ini files look like this
    DATE_FORMAT_LC=”l, F j, Y”
    DATE_FORMAT_LC1=”l, F j, Y”
    DATE_FORMAT_LC2=”l, F j Y H:i”
    DATE_FORMAT_LC3=”F j, Y”
    DATE_FORMAT_LC4=”F-j-Y”
    DATE_FORMAT_JS1=”F-j-y”

    but nothing is changing on article


    1. Screen-Shot-2013-06-13-at-12.29.51-PM
    TomC Moderator
    #495807

    1) Navigate to the en-GB.ini file, which is in this location: your root directory/languages/en-GB/en-GB.ini

    2) Open the en-GB.ini file with your plain text editor and look for this line of code towards the top of the file:
    DATE_FORMAT_LC2=%A, %d %B %Y %H:%M

    3) That’s Linux date format code, and you’ll need to change it to this: DATE_FORMAT_LC2=%B %d, %Y

    4) Once you make that change, save the en-GB.ini file

    5) Go back to the front of your site and refresh the page.

    Now, here’s an important note to keep in mind: when you make this change, you’re editing a core Joomla file. When you upgrade Joomla, there’s a chance that there will be a new language directory, a new en-GB directory, or a new en-GB.ini file.

    If that’s the case, when you upgrade, your date change will be lost, since the en-GB.ini file that you edited will be overwritten by the new one in the Joomla upgrade package.

    If you’re fine with potentially needing to make this simple change each time you upgrade, then you’re fine. If you want to avoid that, there’s another way to make this change: install the American Language pack by Dave Morgan.

    Here’s How:
    1) Go to this page and download the language pack by clicking on the download link: English Language Pack

    2) Install it in Joomla by going to Extensions>Install Uninstall.

    Click on Browse, find the language pack file you downloaded, and double click on it when you find it.
    Then click on Upload and Install on the Extension Manager page.

    3) After it’s been successfully installed, go to Extensions>Language Manager.

    4) Check the radio button next to English(United States) and then click on the Defualt icon in the upper right of the page to make this language pack your default language pack.

    If you want to edit how that date format is appearing, such as taking the time stamp off, go to language/en-US and open the en-US.ini file. Change the date format for LC2 in a similar way that I described above for editing the en-GB.ini file.

    For example, if you wanted to remove the time stamp, you would delete the %H:%M on the line of code for the DATE_FORMAT_LC2 within the en-US.ini file. Currently, that line of code is on line 11 of that file.

    When you update Joomla, your date format changes will remain in tact as long as the core Joomla team doesn’t create a new language directory named en-US as a new option.

    angie00 Friend
    #498744

    Tom,

    I’ve tried both ways you recommended and nothing is changing. Is there another language file that this particular date is referencing? All dates changed, except this area.

    Saguaros Moderator
    #498825

    Hi

    Could you specify which part this date belongs to? in article or in a module? a URL and screenshot would be helpful here.

    Regards

    angie00 Friend
    #499215

    Yes in Article. Menu link is set as Category Blog. I pm you the site.

    Saguaros Moderator
    #499226

    Hi

    If it’s published date in article view, you can check this file: templatesja_nexhtmlcom_contentarticledefault.php

    at approx line 122, you will see this code:

    [PHP]
    <?php if ($params->get(‘show_publish_date’)) : ?>
    <dd class=”published”>
    <?php echo JText::sprintf(‘COM_CONTENT_LAST_UPDATED’, JHtml::_(‘date’,$this->item->modified, JText::_(‘DATE_FORMAT_LC3’))); ?>
    </dd>
    <?php endif; ?>
    [/PHP]

    By default, it uses this format: DATE_FORMAT_LC3, you can change to another format defined in the language file like Tom suggested above (and english is default language in your site now 🙂 )

    Finally make sure that you clean JAT3 cache after making changes.

    angie00 Friend
    #499367

    Here is the current settings I have in language file:
    DATE_FORMAT_LC=”l, F j, Y”
    DATE_FORMAT_LC1=”l, F j, Y”
    DATE_FORMAT_LC2=”l, F j, Y H:i”
    DATE_FORMAT_LC3=”F j, Y”
    DATE_FORMAT_LC4=”F-j-Y”
    DATE_FORMAT_JS1=”F-j-Y”

    Which is why I am confused about why it is not formatting according to those settings. It wouldn’t matter if I changed the templatesja_nexhtmlcom_contentarticledefault .php because it should be reflecting the above format, correct?

    angie00 Friend
    #499507

    I’m not sure if it makes a difference but this seems to only affect the Category Blog> intro articles??? When I set it to Category Blog and show leading articles the date is formatted correctly.

    Saguaros Moderator
    #499519

    How did you change? you changed from DATE_FORMAT_LC3 to DATE_FORMAT_LC2, for example,

    or you change the format in DATE_FORMAT_LC3 ?

    angie00 Friend
    #499649

    I have done both:
    Changed language files in en-us.ini, en-gb.ini to
    DATE_FORMAT_LC=”l, F j, Y”
    DATE_FORMAT_LC1=”l, F j, Y”
    DATE_FORMAT_LC2=”l, F j, Y H:i”
    DATE_FORMAT_LC3=”F j, Y”
    DATE_FORMAT_LC4=”F-j-Y”
    DATE_FORMAT_JS1=”F-j-Y”

    and tried changing the Date_Format_LC2 to LC3 and vice versa. Nothing is affecting this date format. I don’t know why it’s not changing. 🙁

    Saguaros Moderator
    #499753

    Could you pm me admin as well as ftp account of your site? It’s better with a closer look 🙂

    angie00 Friend
    #499950

    Thanks, I pm you.

    angie00 Friend
    #501809

    Still needing help on this please!

    Saguaros Moderator
    #501868

    Hi

    Could you make screenshot / URL of page where you want to change the date?

Viewing 14 posts - 1 through 14 (of 14 total)

This topic contains 14 replies, has 3 voices, and was last updated by  Saguaros 11 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum