Up to 50 percent off

Translation and multi-language

This topic contains 6 reply and 2 voices, and was last updated by Anders 10 years, 8 months ago
Viewing 6 Posts - 1 through 6 (of 6 total)
Author Posts
February 22, 2014 at 10:32 pm 15751
Anders 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 Hasan Tareq Hasan

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
Anders Anders

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
Anders Anders

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 Hasan Tareq Hasan

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
Anders Anders

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
Anders Anders

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 6 Posts - 1 through 6 (of 6 total)