WordPress.org

Ready to get started?Download WordPress

Forums

Attitude
[resolved] Translation (8 posts)

  1. carolbz
    Member
    Posted 1 year ago #

    how can i do de translation of the theme for portuguese (brazilian)?

  2. Sanjiv
    Member
    Posted 1 year ago #

    Hi,

    If you are familiar with creating langauge files. Then you will have to create .po and .mo file for the portuguese language. If not then you can
    download poedit software here http://www.poedit.net/ Open the attitude.pot file within this theme with that software, write the respective translations in portuguese and create .po file which will also create the .mo file.
    If you find this hard to do, then let's wait and see if some our other users will provide the langauge file for portuguese and then we will make it available within the theme and then you can use it.

    Sanjiv
    Theme Horse Team

  3. carolbz
    Member
    Posted 1 year ago #

    Ok. i'll try.
    Where i must save these files?

  4. Sanjiv
    Member
    Posted 1 year ago #

    You can save these files inside attitude theme folder->library folder->languages folder

    Sanjiv
    Theme Horse Team

  5. checco.lnx
    Member
    Posted 1 year ago #

    Hi,
    I'm trying to translate the theme into italian.
    I've generated the 2 files (.po and .mo) with Poedit (attitude-it_IT.po and attitude-it_IT.mo). These files are inside wp-content/themes/attitude/library/languages folder.

    e.g. I want to translate "Read more" with "Leggi il resto":

    msgid "Read more"
    msgstr "Leggi il resto"

    but nothing: I continue to see the "Read more".

    Any idea?

    Thanks,

  6. checco.lnx
    Member
    Posted 1 year ago #

    Bad file names. From http://codex.wordpress.org

    The .mo files must use language-only filenames, like languages/de_DE.mo in your theme directory.
    Unlike plugin language files, a name like my_theme-de_DE.mo will NOT work.

    So, for italian: it_IT.po and it_IT.mo

  7. Sanjiv
    Member
    Posted 1 year ago #

    Hi,

    Yes, the files name should be like it_IT.po and it_IT.mo not attitude-it_IT.extension. The other thing is that now you will need to activate these langauge files for you site.
    So, to do this download the wp-config.php file, open and replace

    define('WPLANG', '' );

    with define
    ('WPLANG', 'it_IT' );

    Save the changes and upload this file.
    That's it.
    You can send these language files to support@themehorse.com if you like we will include these files within the theme from next version update and also give credit to you in the readme.txt file for helping us.

    Sanjiv
    Theme Horse Team

  8. checco.lnx
    Member
    Posted 1 year ago #

    You can send these language files to support@themehorse.com

    Ok, I'll do it.

    Checco

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.