WordPress Theme .pot Language File -
i've purchased wordpress theme has .pot language file @ below path:
./wp-content/themes/theme_name/include/languages/theme_name.pot
i've translated phrases poedit software , replaced new .pot file; didn't affect @ result!! phrases still in default language!
attend i've put below code wp-config.php file:
define('wplang', 'language_country');
and template has option disables small admin side translator , enables .pot file work phrases; , i've switched .pot file here.
i've done try&error on file name , file path, no success. i've named other things , other file extensions , changed file place:
./wp-content/themes/theme_name/include/languages/language_country.pot & .po & .mo ./wp-content/themes/theme_name/include/languages/theme_name-language_country.pot & .po & .mo ./wp-content/themes/theme_name/language_country.pot & .po & .mo ./wp-content/themes/theme_name/theme_name-language_country.pot & .po & .mo ./wp-content/languages/language_country.pot & .po & .mo ./wp-content/languages/theme_name-language_country.pot & .po & .mo ./wp-content/languages/themes/language_country.pot & .po & .mo ./wp-content/languages/themes/theme_name-language_country.pot & .po & .mo ./language_country.pot & .po & .mo ./theme_name-language_country.pot & .po & .mo
there "load_theme_textdomain" function used in php file @ path below:
./wp-content/themes/theme_name/include/function-regist.php
and the related part of code is:
// enable theme support localization add_action('init', 'gdl_word_translation'); function gdl_word_translation(){ global $gdl_admin_translator; if( $gdl_admin_translator == 'disable' ){ load_theme_textdomain( 'gdl_back_office', server_path . '/include/languages/' ); load_theme_textdomain( 'gdl_front_end', server_path . '/include/languages/' ); } }
now, should make work?!
Comments
Post a Comment