change language

This support request was posted in BBQ by c3creaties

Request ID #5560 Resolved
  • 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 gesloten

    Can anyone help me with this?
    Thanks in advance
    kind regards
    Cedric

    anyone? I really have to launch this site end of this week.
    Thanks
    C

    Juanfra Aldasoro

    Hi 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.

    hi Juan,

    thanks! that helped al lot! Can i also change the way the hours are displayed?
    24h system in stead of AM-PM?
    Thanks
    C

    Juanfra Aldasoro

    Hi 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.

    great, 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

    Juanfra Aldasoro

    Hi Cedric,

    No problem, we’re on it 🙂

    Best,
    Juan.

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

This topic is marked as resolved

Only the topic author can re-open this thread.

Login to your Account

Welcome back! Please log in to your account by filling the fields below:

Forgot?

Not a member? Create a free account.

Create a Free Account

You're 27 seconds away from some awesome WordPress free stuff, benefits and more. Create a free account and have access to our free products, benefits and more!

Already have an account? Log in
Secure Server