Translation not working in sprinf variable
You can not translated dynamic strings with he translation API, you can translate only static strings that you know in advance.
You can not translated dynamic strings with he translation API, you can translate only static strings that you know in advance.
In wp-includes/l10n.php you will find the function get_locale(). It offers a filter; you can set the language and ignore the constant: function get_locale() { global $locale; if ( isset( $locale ) ) return apply_filters( ‘locale’, $locale ); // WPLANG is defined in wp-config. if ( defined( ‘WPLANG’ ) ) $locale = WPLANG; // If multisite, … Read more
What are the downsides to uploading filenames in different languages?
Convert your site to a multisite, then … Create a second site. Set the site language to Persian in Options/General. Set the language of the first site to English. You can install a plugin to link translated posts like MultilingualPress (disclosure: I was the lead developer for that plugin for a long time). You can … Read more
Thx to the comments I found the plugin: Debug MO Translations It returns a list of all searched and loaded MO files. The source code is provided on github: https://github.com/closemarketing/debug-mo-translations
You should edit the theme and add the use of translation API https://codex.wordpress.org/I18n_for_WordPress_Developers at the appropriate places.
# if you want to enqueue your style in you theme, rtl or else function theme_enqueue_scripts() { # enqueue style in your theme wp_register_style( ‘rtl’, get_template_directory_uri() . ‘/css/rtl.css’, array(), ‘1.0.0’ ); wp_enqueue_style( ‘rtl’ ); } add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_scripts’ ); # if you need enqueue this, just if theme is rtl , copy this function function … Read more
Japanese characters not showing properly
How to use get_post_type_archive_link for a given language?
Create a custom page to use in all the sites, A multisite question