Is hint for translator compulsory while internationalizing a string containing variables?

The notes to translators aren’t required, as far as I can tell, but they will definitely help anyone out who’s trying to translate your plugin. You might want to think of them as best practices rather than requirements. As to your second question: Since WordPress 4.6 translations now take translate.wordpress.org as priority and so plugins … Read more

Plugin language always shows WP site language, not profile language

I found the solution: In the constructor I had to add this public function __construct() { // your code goes here add_action( ‘plugins_loaded’, [$this, ‘load_text_domain’] ); // your code goes here } public function load_text_domain() : void { load_plugin_textdomain(‘your-plugin-textdomain’); } This finally made sure that the language displayed followed the settings of the user profile … Read more

What programming language should I study to know WordPress very well?

WordPress functions are PHP. you should start here: https://developer.wordpress.org/ As the first steps I recommend to study: Theme development: https://codex.wordpress.org/Theme_Development The Loop: https://codex.wordpress.org/The_Loop And The WP theme hierarchy: https://developer.wordpress.org/themes/basics/template-hierarchy/

Can I set is_rtl() to true?

You’ve got two options: In wp-config.php, set $text_direction = “rtl”; If you’ve defined your own .po or .mo translation file for Pashto (is there really not one already?) there should be a string to translate value: ltr context: text direction Set the translation to be “rtl”. If that’s the user’s loaded locale then that will … Read more

How to send language string in email message body

You have a typo in your code, the function is __() with two underscores. You will also need to configure the textdomain ‘text-domain’ and have a valid translation for the end users’ browser settings for it to not default to english. // use two underscores in the method $message = __(“Hello Admin,”,’text-domain’); // assuming this … Read more

Internationalizing Plugin

You have to load text domain in your plugin: <?php function my_load_textdomain() { load_plugin_textdomain( ‘add-to-post-footer’, // text domain identifier false, // deprecated parameter plugin_basename(dirname( __FILE__ )) . ‘/languages’ ); // path to the languages directory } add_action(‘plugins_loaded’, ‘my_load_textdomain’);

Translate wordpress date from Italian to English

I do this with the One Backend Language plugin. This way, the WPLANG language is only used in the frontend, and another used in the admin area. There are more plugins that do this, some allow you to choose a language per user. The downside is that you can still be logged in when you … Read more

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