Recurring “_load_textdomain_just_in_time was called incorrectly”
Recurring “_load_textdomain_just_in_time was called incorrectly”
Recurring “_load_textdomain_just_in_time was called incorrectly”
How to use native wordpress translation domain inside a custom plugin? You would use __() without a textdomain, but this won’t work for you because that’s not how post status labels work. get_post_status doesn’t return the name of the post status, it returns a slug, e.g. pending not Pending. The solution is in the user … Read more
Localization PHP: How can I scan the theme to detect the addition of a new string to be internationalized?
Load textdomain in the website, not in the admin, based on user settings not general settings
Using Number in Text domain
Thanks all friends. Finally i found the problem. i must use fa_IR.mo instead of fa_IR.MO
The problem with your $item_info is that the variable is not initialized before your try to append to it. $item_info .= ‘String content’; is the exact same thing as $item_info = $item_info . ‘String content’;, so all you need is to check whether or not this variable exists: if (!isset($item_info)) { $item_info = ”; } … Read more
If I am correct (I am not familiar with the plugin itself) it actualy means that you have/use more then one text-domain in your function(s) or theme template(s) as in (just an example): _e( ‘Your Ad here’, ‘my-text-domain’ ) / _e( ‘Your Ad here’, ‘your-text-domain’ ) You should always use one text-domain for your functions … Read more
Custom post type translation
If anybody else is looking for the anwser , Here it is function load_txtdomain() { $locale = apply_filters( ‘plugin_locale’, get_locale(), ‘my-plugin’ ); load_textdomain( ‘my-plugin’, WP_LANG_DIR . ‘/my-plugin-‘ . $locale . ‘.mo’ ); } add_action(‘plugins_loaded’,’load_txtdomain’);