Translation ready code format for taxonomy

_x( ‘Categories’, ‘taxonomy general name’ ) does it make taxonomy general name a text domain? wont it resulting in multiple translation? That taxonomy general name is the gettext or translation context used in the POT file. The text domain is the third parameter, which defaults to default. From the Codex: Sometimes a single term is … Read more

How to get custom translations from child theme to be loaded?

Actually my mistake, I was overriding the translation of the parent theme using it’s text domain for child theme, while I should have defined a different text domain for child theme and load both domains into child theme’s functions.php like this: add_action( ‘after_setup_theme’, ‘mr_load_textdomain’ ); function mr_load_textdomain(){ //for child load_theme_textdomain (MR_DOMAIN,get_stylesheet_directory().’/languages’); //for parent load_theme_textdomain (ET_DOMAIN,get_template_directory().’/lang’); … Read more

How to use my .mo file in the Divi child theme instead of file in a parent /builder directory?

its because there was different domain! I added another load_theme_textdomain and it works now. function my_lang_function() { load_theme_textdomain( “Divi”, get_stylesheet_directory() . “/lang” ); load_theme_textdomain( “et_builder”, get_stylesheet_directory() . “/lang/builder” ); } add_action( “after_setup_theme”, “my_lang_function” ); its my code in function.php of child-theme. is anything wrong with this code?

Qtranslate-X get raw post title value

post_title_ml property should be used to get a raw post value, instead of post_title $title = $post->post_title_ml To translate raw value translate_text filter can be used $english_title = apply_filters(‘translate_text’, $title, ‘en’); Or qtranxf_use_language() function $english_title = qtranxf_use_language(‘en’, $title, false, true);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)