Support

Home Forums Event Espresso Premium Localization date

Localization date

Posted: January 30, 2014 at 7:13 am

Viewing 16 reply threads


Daniele Pavinato

January 30, 2014 at 7:13 am

Hi,

how can I change the language of dates? All months appears in english…


Dean

January 31, 2014 at 1:50 am

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/


Daniele Pavinato

February 6, 2014 at 2:07 am

And for adding a new string to a .po file?
I.e. there is ‘May’ but there isn’t for the abbreviation month. I need to insert a new line to tell to WordPress that May = ‘my abbreviated month in italian’


Dean

February 6, 2014 at 4:50 am

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.


Daniele Pavinato

February 6, 2014 at 10:35 am

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?
(En)May -> (IT)Mag

Thanks


Sidney Harrell

February 6, 2014 at 6:23 pm

After you edited the .po file, did you use it to generate a new .mo file with poedit?


Daniele Pavinato

February 7, 2014 at 3:32 am

Yes, I uploaded the .mo file generated by POedit…


Sidney Harrell

February 7, 2014 at 4:39 pm

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?


Daniele Pavinato

February 10, 2014 at 5:56 am

Yes, I have WordPress in italian.

No, the only area that is translated is your plugin


Seth Shoultes

  • Support Staff

February 11, 2014 at 12:18 pm

Do you have a URL to where this is happening?


Daniele Pavinato

February 12, 2014 at 12:53 am

http://www.meetingsarazanazzi.it/eventi/?ee=20


Daniele Pavinato

February 12, 2014 at 2:04 am

Have you found a solution to my problem?


Dean

February 13, 2014 at 5:57 am

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?


Daniele Pavinato

February 13, 2014 at 8:52 am

Absolutely not. I’m sure that WordPress is completely in italian…


Seth Shoultes

  • Support Staff

February 13, 2014 at 8:59 am

@Daniele I think what Dean meant to ask, is the site currently translated into Italian using WordPress.


Daniele Pavinato

February 21, 2014 at 6:52 am

Yes, the site is currently translated into italian.

What do you suggest me to do?


Josh

  • Support Staff

February 24, 2014 at 10:17 am

You could try translating those directly with the WordPress gettext function:

https://gist.github.com/joshfeck/4962940

Viewing 16 reply threads

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.

Event Espresso