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

Ajax – gettext without a plugin

I did manage to solve this later on by using WPML, but over time found that WPML is quite bloaty and slow, support not very good, and if you need only 1 language (but original strings for theme are in English and the language you need is not) or perhaps 2, you do not need … Read more

I can’t translate text in my plugin using a .mo file, load_plugin_textdomain() function is always false

(Revised answer) The simple answer is because WordPress could not find the MO file, despite the file itself exists (in the plugin’s languages directory). And here’s why: The MO file needs to be named following this format: {text-domain}-{locale}.mo, and {text-domain}-{locale}.po for the PO file. See Loading Text Domain for further information. So you’re trying to … Read more

WordPress For Urdu Language

WordPress is community translated. For a good number of languages, the translation is relatively complete and follows high quality standards. The codex page on WordPress in your language reports: WordPress in Urdu – اردو is ongoing, but slow. Need more contributors. So in essence: No, WP is not entirely translated to Urdu yet. You could … Read more