How to debug load_textdomain?

Would have loved to know that beforehand. Here is the solution to my problem, so others that are stuck might not be stuck on this for hours. WPML has a String Translation plugin. If it is activated, it seems that it passes before the load_textdomain in priority. And so, load_textdomain works in loading the file … Read more

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

Filter in Custom post type to find the parent post

Let’s if it helps you. Instead of adding a custom query var if we can use directly from url that might solve the issu. First make post_parent loadable from url. function make_post_parent_public_qv() { global $pagenow; if ( is_admin() && $pagenow == ‘edit.php’ ) $GLOBALS[‘wp’]->add_query_var( ‘post_parent’ ); } add_action( ‘init’, ‘make_post_parent_public_qv’ ); Now focus on the … Read more

load_plugin_text_domain() never works

why did u write $path: and not $path= in your first function code? Wait forget it, you have to privde the relative path, you’re providing the full path.. When using load_plugin_textdomain, you gotta use your plugin folder + your language files folder only; so if your language files are inside wp-content/plugins/your-plugin/languages, use load_plugin_textdomain( ‘your-plugin’, false, … Read more

Theme Checker Text Domain

_x() is for string with a context. So your second argument is just the context, and there is no text domain. Suggestion: $string = _x( ‘%1$s %2$s – %3$s %4$s’, # string to translate ‘recent comments 1 = gravatar, 2 = … ‘, # context for translators ‘thst’ # text domain ); $visible = sprintf( … Read more