How to Translate the theme ?

Marketplace Forums Themes Materialize Materialize Free Frequently Asked Questions How to Translate the theme ?

This topic contains 2 replies, has 3 voices, and was last updated by  Serge 4 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3358

    mythemes
    Keymaster

    The theme is “translation ready” but not contain the translated files for each language.

    Is need to translate the english file in to your language.

    Ho to do this ?

    Unpack the theme and go to the directory:

    materialize/media/ln/

    here you can see files en_Us.po and how-to-translate.txt

    please read the content from the file how to translate.

    how-to-translate.txt content:

    Firstly you'll need a tool allowing you to translate .po file into your language.
    
    You can use Poedit app, or CodeStyling  WordPress Plugin.
    http://www.poedit.net/
    http://www.code-styling.de/english/development/wordpress-plugin-codestyling-localization-en
    
    After you unzip the archive materialize.zip  you must have folder "materialize" with theme files.
    
    After this go to materialize/media/ln/ here you can see file en_US.po. Now here create new file,
    
    for example fr_FR.po and copy content from en_US.po to fr_FR.po ( to copy content use sample text editor ).
    
    After open fr_FR.po ( using poeditor ) and start translating each word to your language.
    
    After you finished, click button "Save Catalog", and it will create a new .mo file in the same folder.
    
    Then you'll need to open wp-config.php file from the root folder of your WordPress install, and replace this line:
    
    define ('WPLANG', '');
    
    with something like:
    
    define ('WPLANG', 'fr_FR');
    
    Then make sure that .mo file from materialize/media/ln/ folder of our theme has the same name as your language code: "fr_FR.mo"
    
    IMPORTANT: Is need by one .po file for each language, in case you want to use plugin qTranslateX to enable more languages.
    
    More information you can find here: http://www.catswhocode.com/blog/how-to-make-a-translatable-wordpress-theme
    

    Also you can use the plugin Loco Translate and you can translate the theme in live mode !

    plugin is here : https://wordpress.org/plugins/loco-translate/

    #4206

    gbartling
    Member

    Hi, tried everything a stated above, but my site still doesn’t translate the “read more’ button et cetera into Dutch. Mo files are names exactly and even putted into a new folder in /media, named ln (wasn’t there in the first place). Also putted it in languages folder. PLease advise!
    frisenzo.nl

    #4207

    Serge
    Keymaster

    The methods have changed a little so you just install Loco-translate plugin and use the Beginner’s guide

    Have a nice day.

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

You must be logged in to reply to this topic.

[email protected] budreaujeni