ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

cannot change the months name

March 12, 2012 5:57am

Subscribe [1]
  • #1 / Mar 12, 2012 5:57am

    m007

    88 posts

    Hi,
    In archive by months the name of the months are in English even if I changed the core_lang.php file with the names in another language. I also changed the name of the months using the translation utility, I cleared the cache but nothing happened on the archive page
    There is another place where I have to change that names?
    Thanks
    I’m using EE 2.4 with no specific add-ons

  • #2 / Mar 12, 2012 4:37pm

    Dan Decker

    7338 posts

    Hi m007,

    Using the translation utility can be a bit of a booger. There are a couple of steps you have to take that aren’t outlined in the User Guide. I’ll try to explain those here.

    When you use the Translation Utility to make a language translation, you have to take the translated files found in /system/expressionengine/translations and place them into a folder named after the language. Then you have to place that folder into /system/expressionengine/language.

    Once you have the new translation in the language folder, you can then select that language in the Control Panel. You can set it as the ExpressionEngine default in Admin->General Configuration or for your member account under your localization settings.

    Cheers,

  • #3 / Mar 13, 2012 3:56am

    m007

    88 posts

    Hi Dan
    I followed your steps but the months in archive are still in English. Like I said I modified the name of the months in core_lang.php default file with no results so I wonder if {month} tag reads from another file?
    Thanks!

  • #4 / Mar 13, 2012 6:06pm

    Sean C. Smith

    3818 posts

    Hi m007,

    Did you change your language preference in your personal user account? You need to change it in your user account as well as for the site in general. In the CP click your username in the top right red box and then click on Localization Settings and change your language there.

    After doing this does the language then work as expected?

    Sean

  • #5 / Mar 14, 2012 3:58am

    m007

    88 posts

    Hi Sean

    I’ve done all that but still the names of the months are still in English. I checked again the core_lang.php files, the names are in another language but still in Archive page they appear in English. I cleared the cache and I really don’t know what to do as it becomes very frustrating. Must be another place where these names are stored.
    Thanks!
    I’m using EE 2.4 of course

  • #6 / Mar 15, 2012 3:47pm

    Sean C. Smith

    3818 posts

    Hi moo7,

    I just tested this on my sandbox install 2.4.0. I used the translation utility and changed all the months, both short and long name, to Korean equivalents. I then moved that file to the Korean folder inside the langauges folder. Next I changed the install language to Korean and finally my personal account preferences to use Korean language.

    Then in my template I used the following code copied from the docs:

    {exp:channel:month_links channel="test" limit="50"}
        {month}, {year}
    
    {/exp:channel:month_links}

    which output the following:

    삼월, 2012
    이월, 2012

    What is your template code? Have you tried creating a new member and setting their language preference to the new language and testing?

    Sean

  • #7 / Mar 16, 2012 2:49am

    m007

    88 posts

    Hi Sean

    I followed exactly the same steps as described, even more I have changed the month’s name in the original core_lang.php file as well, but still the output is in English
    The code in template is absolutely similar with yours (except the short names)
    Thanks!

  • #8 / Mar 17, 2012 6:44pm

    Dan Decker

    7338 posts

    Hi m007,

    I did a search against all the files in ExpressionEngine for “January” to see if it turns up in any other language files. It’s is also in calendar_lang.php

    You can try making the changes there as well. However, I think the best plan is to use a fresh copy of the english pack to take out any changes you have made. Then run through the process as Sean and I have described.

    When you use the translation utility, do you see your changes reflected in the file that is created?

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases