i18n not working

Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9969
    netzperfekt
    Member

    It seems that i18n is not working on WP 4. get_locale() returns ‘de_DE’, but all texts are displayed on english. Can you please help?

    Thanks,
    Nils

    #9976
    Veena
    Moderator

    You can learn from http://www.solostream.com/blog/tutorials/translate-wordpress-theme/ about translating your site into your language. Pls make sure you add the entry for your language into wp-config.php file like this –

    define ('WPLANG', 'fr_FR');
    

    Pls use the pot files in ‘extinct/languages’ folder as a template to create .po files. http://www.poedit.net/ -Poedit is the popular free editor for creating .po and the corresponding binary .mo files.

    You may need to do an update in POEdit to see all the strings. Do reach out to us in case you find something that is not translation ready.

    #9981
    netzperfekt
    Member

    thanks, WPLANG and $locale are both set correctly, but i only see english texts.
    btw: define(‘WPLANG’) seems to be deprecated in WP 4 (https://wordpress.org/support/topic/broken-wplang-_e-functions-not-selecting-good-language)

    please help,
    nils

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Extinct Theme Support’ is closed to new topics and replies.