Home Forums Theme Support Dokan Translation and multi-language

This topic is: not resolved

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

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #15751

    Anders
    Participant
    Post count: 58

    Hi!

    How do I translate the theme into Norwegian? Is there any way I can make it a multi-language page?

    Anders ๐Ÿ˜‰

    #15753

    Tareq Hasan
    Keymaster
    Post count: 2831

    There is a language file in the /languages/ folder.

    1. Copy dokan.pot in you language, and open with poEdit
    2. File name structure is: LOCALE.po, e.g: en_US.po
    3. Translate

    #15762

    Anders
    Participant
    Post count: 58

    Thank you! But when I have translated it, how do I enable my language? Translation is complete, I have saved it as a nb_NO.po file, but nothing happens.

    And I want the user to choose if he is gonna read the english version or norwegian. How do I do that?

    Thank you ๐Ÿ™‚

    #15763

    Anders
    Participant
    Post count: 58

    I have changed this to nb_NO (the .po file):
    /**
    * Make theme available for translation
    * Translations can be filed in the /languages/ directory
    */
    load_theme_textdomain( ‘nb_NO', get_template_directory() . ‘/languages' );

    #15766

    Tareq Hasan
    Keymaster
    Post count: 2831

    Thats not how it works ๐Ÿ˜‰

    Open wp-config.php and find this define('WPLANG', '');. Change it like this: define('WPLANG', 'nb_NO');

    #15767

    Anders
    Participant
    Post count: 58

    Hmmmโ€ฆ Still does not work ๐Ÿ˜› Can it be a problem that I am using a multisite with at different theme for the other multisite pages?

    #15771

    Anders
    Participant
    Post count: 58

    I found out of it, thank you!

    But I still wonder: is there a way I can let the user choose the language to use with the Dokan Theme?

    Thanks!

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

The topic ‘Translation and multi-language’ is closed to new replies.