New plugin translation does not work

After a heavy investigation, I understood what is happening. The solution to debug this was partially here but there were some php errors that´s why I got a blank page. So, after to test : Which language is called thanks with get_locale() Display WP_LANG_DIR to know where are language files are stored I tried to … Read more

Prevent WordPress updates from overriding custom language translations?

Modify your installation such that your custom Farsi language files are associated with a non-standard WPLANG value. For example, instead of the standard ‘fa_IR’, maybe try something non-standard like ‘farsi_IR’ (or even ‘myCustomFarsi_IR’). This way, when new WordPress versions are released for the “official” Farsi version, you will no longer get updated.

How to translate a WordPress.org plugin?

So to make plugin translatable via translate.wordpress.org you need to add text domain into main plugin’s file: /* * Plugin Name: My Plugin * Author: Plugin Author * Text Domain: my-plugin */ So to make theme translatable via translate.wordpress.org you need to add text domain into main theme’s file: /* * Theme Name: My Theme … Read more

How to add translation for a string

I do not know direct answer on your question but this maybe helps you. You can use plugin Loco translate or you can do it manually like this. _e( ‘Search’, ‘name_tag_of_translation’ ); Then go in wp-content/languages and there define what is you translation, in your case we talk about plugin, so you go: wp-content/languages/plugins and … Read more