Posted: January 30, 2014 at 7:13 am
|
Hi, how can I change the language of dates? All months appears in english… |
|
Hi, The language files should hold that information, when WordPress itself doesn’t change it, so you could start by checking the translation file for your language as none are 100% complete. https://eventespresso.com/wiki/how-to-change-wording-with-poedit/ |
|
And for adding a new string to a .po file? |
|
Ahhh yes that’s an issue, there is no abbreviation for May. You can add a new string by opening up the .po file in a text editor (notepad, or similar, NOT Word!) and adding it there and saving. Then you must open it in poedit and just save, otherwise it won’t track the change. |
|
I have taken the event_espresso-it_IT.po file and edited it like you said. Then i copied the .mo file inside the upload/espresso/languages, but it doesn’t works. I have no time, because I need to launch the site. Can you give me the file updated? Thanks |
|
After you edited the .po file, did you use it to generate a new .mo file with poedit? |
|
Yes, I uploaded the .mo file generated by POedit… |
|
I took a look in the code, and it looks like we are passing the date through WordPress’s date_i18n function to let them handle translating the dates. It looks like that function is getting the month names from the wp_locale object. Do you have the WordPress language pack installed? Are the dates translating in other areas of the site? |
|
Yes, I have WordPress in italian. No, the only area that is translated is your plugin |
Do you have a URL to where this is happening? |
|
|
|
|
Have you found a solution to my problem? |
|
Hi, Sidney has confirmed that those dates are handled by WordPress, because generally when EE is translated so is the rest of the site. I have confirmed that when the main site is translated the dates will translate correctly. Are you planning to translate the site? |
|
Absolutely not. I’m sure that WordPress is completely in italian… |
@Daniele I think what Dean meant to ask, is the site currently translated into Italian using WordPress. |
|
|
Yes, the site is currently translated into italian. What do you suggest me to do? |
You could try translating those directly with the WordPress gettext function: |
|
The support post ‘Localization date’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.