- c3creaties April 14, 2015 at 5:21 pm
hi,
i would like to change the language of this theme.
for example the business hours. Now it’s displayed as:
Monday 11:30 AM — 02:00 PM
Tuesday Closed
…
While in Dutch it should be:
Maandag 11:30u – 14:00u
Dinsdag geslotenCan anyone help me with this?
Thanks in advance
kind regards
Cedricc3creaties April 15, 2015 at 6:41 pmanyone? I really have to launch this site end of this week.
Thanks
CJuanfra Aldasoro April 15, 2015 at 10:35 pmHi Cedric,
Thanks for writing
Sorry for the late response. I’ll happily help you with this issue.
The best way to translate site strings is to translate directly the .po and .mo files. This has to do with the system that WordPress has for translating strings.
Personally, I like to use the program Poedit, you can get a copy over here: http://poedit.net/
First, download and install Poedit. Then, see that within the theme files there’s a folder named “/lang”. Over there you can find the translatable files. So, you’ll need to do the following:
1. Open the file in Poedit.
On the left, there’s a box with the original message (in English) from the POT file. Beside that box is where you add your translation.
2. Go to File → Save as… to save your translations in a PO file. (must be named with the language identifier. For example for dutch, If I’m not wrong, it would be nl_NL.po and nl_NL.mo )
3. When you are finished translating, go to File → Save as… again to generate the MO file.Finally, you need to be running your WordPress install in the language you are trying to have the translation in.
Best,
Juan.c3creaties April 16, 2015 at 8:41 amhi Juan,
thanks! that helped al lot! Can i also change the way the hours are displayed?
24h system in stead of AM-PM?
Thanks
CJuanfra Aldasoro April 16, 2015 at 2:47 pmHi Cedric,
No problem. I’m happy to help.
Regarding time format, there’s an option over the Theme Options panel (in the “Business Setup” section) – you can set that directly from there. You need to understand a little bit of formatting dates with PHP (which honestly, is really straightforward) – http://codex.wordpress.org/Formatting_Date_and_Time
Best,
Juan.c3creaties April 16, 2015 at 2:55 pmgreat, that was indeed easy.
You can consider this ticket as closed!
Thank you
(i have al couple of others still open, if you’re feeling bored :-))
C
This topic is marked as resolved
Only the topic author can re-open this thread.