This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Tagged: 

Language files

  • Creator
    Topic
  • #23351
    rohmer
    Member

    Hi
    How I have to name the language file for Italian? ‘denali_it_IT.mo’?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #23356
    Jason Bobich
    Keymaster

    Hello,

    In the WordPress world, they refer to translating WordPress as “localization” and so this theme comes “localization-ready”.

    This is the complete guide to get you started:

    http://codex.wordpress.org/Translating_WordPress

    Specifically to the theme, there is a file called denali.po located in the “lang” folder of the theme. You download that file and translate the contents line by line. This process will be easier to manage if you use a program like poEdit, for example. That way you’ll be able to translate the file with a user-friendly interface and not a text editor.

    Then you save the file with your language code as the file name (ex: fr_FR.po for French, en_BR.po for British, etc). When you do this, poEdit will also create a second file for you with the same name ending in “.mo”. Then you need to upload these two new files back to “lang” folder of the theme on your live site.

    In order for the above process to work, you need to actually have your WordPress site set to be in your language. You do that by changing the language code in your wp-config.php file (which is found in the root directory or your WordPress installation). Here’s a guide on that process:

    http://codex.wordpress.org/Installing_WordPress_in_Your_Language

    How I have to name the language file for Italian? ‘denali_it_IT.mo’?

    So your files will be named it_IT.po and it_IT.mo. This will be the same for all themes you use.

    #23362
    rohmer
    Member

    Thanks for your detailled instructions. Thought localization filename must be named ‘Danali-it_IT.mo’ as you can see on other themes. But I’ve translated and it’s working fine. Thank you!!

    #23364
    Jason Bobich
    Keymaster

    I was just looking through WordPress instructions and I think they now have it setup where you can also use the theme’s text domain in the file name, if you choose to make it more specific.

    So, to answer your original question it would be “themeblvd” — so themeblvd-it_IT.po and themeblvd-it_IT.mo. I’ve never personally done it this way, but it says here you can! 🙂

    #23365
    Jason Bobich
    Keymaster

    I should also let you know that if you’re just looking to do a basic translation of the strings on the frontend of your website, I have a plugin that allows you to avoid dealing with WordPress localization that integrates into our themes.

    https://wordpress.org/plugins/theme-blvd-string-swap/

    #23375
    rohmer
    Member

    Thank you verry much!! You can close this ticket.
    Best, Michael

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.