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 February 22, 2014 at 10:32 pm #15751 AndersParticipant 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 😉 February 22, 2014 at 11:20 pm #15753 Tareq HasanKeymaster 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 February 23, 2014 at 5:58 pm #15762 AndersParticipant 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 🙂 February 23, 2014 at 7:52 pm #15763 AndersParticipant 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' ); February 23, 2014 at 11:15 pm #15766 Tareq HasanKeymaster 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'); February 24, 2014 at 12:27 am #15767 AndersParticipant 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? February 24, 2014 at 2:40 am #15771 AndersParticipant 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! Author Posts Viewing 7 posts - 1 through 7 (of 7 total) The topic ‘Translation and multi-language’ is closed to new replies.