How to have english digits in some posts with an rtl WordPress theme
How to have english digits in some posts with an rtl WordPress theme
How to have english digits in some posts with an rtl WordPress theme
allow arabic letters when register new account
Is it possible to set another language for debugging messages?
The text_direction property of the WP_Locale class defaults to ‘ltr’ as per it’s declaration, then may be modified in the class’s init() initialization function in wp-includes/locale.php (near line #207 in WP 4.5) with the following logic: // Set text direction. if ( isset( $GLOBALS[‘text_direction’] ) ) $this->text_direction = $GLOBALS[‘text_direction’]; /* translators: ‘rtl’ or ‘ltr’. This … Read more
Check the following function in your plugin: load_plugin_textdomain (); and be sure that the directory to languages folder is correct. This fixed the issue for above question.
Looking at the source load_plugin_textdomain takes three arguments: load_plugin_textdomain( $domain, $abs_rel_path = false, $plugin_rel_path = false ) It seems you are passing the absolute path to your language domain, as a relative path. Try: load_plugin_textdomain( ‘myplugin’, ABS_PATH_TO_LANGS_DIR);
Here’s a proper multisite solution: Install WordPress directly on the root of your domain mysite.de. After that, setup a multisite and chose the subdomain option (Yes, subdomain! It’s far more flexible and you can use it with subdirectories as well). WordPress will ask you to update wp-config.php and .htaccess. To the wp-config.php add the following … Read more
It seems there is no easy way to do this as load_plugin_textdomain() won’t work as expected when called from a child theme. A generic workaround was developed by Marius Vetrici but I’ve found it to be incompatible with Polylang under some circumstances. The most reliable solution I have found is explicitly loading the translation using … Read more
Run a filter on get_pagenum_link and you should be able to do what you want. The next_posts_link / previous_posts_link functions each call functions that in turn call other functions, which eventually route back to the get_pagenum_link function which provides a filter by the same name. It should give you the control you need, though post … Read more
The problem was that I had changed the ‘WP_CONTENT_DIR’ directory, and WordPress did not have writing permission to the new content folder, so it couldn’t create the ‘WP_CONTENT_DIR’/languages folder. After creating the languages folder in my new WP_CONTENT_DIR directory WordPress did the language upgrade successfully.