Override parent theme translation on child theme
I have a parent theme that uses correctly load_theme_textdomain() to load all the translated strings in many languages.
I have a parent theme that uses correctly load_theme_textdomain() to load all the translated strings in many languages.
I was wandering… All the translation functions (__(), _e(), _x() and so on) use the current/active language. Is there a way to get a translation from another language than the current one? For example, I’m on a French page and I want and english translation: how to?
I want to translate this plugin.
I’ve found that any WordPress theme uses this functions, but I don’t understand what is the purpose of it and what is it, in this case 'themify'?
Here are some examples in Themify functions.php:
The goal is to offer a button/select drop-down or similar to switch the public interface1) language on the fly.
I’d like to have the backend of WordPress in English and use a different locale for the frontend
I’m trying to do a string replacement using gettext filter (source):
Hi I was translating one of my plugins in “CodeStyling Localization”. when I update my plugin my translation erased. Is there anyway to find it ? And How can I backup my translation (I don’t want to waste my time next time :))
I have a bi-lingual blog with English as the main language and Arabic. Currently I use the post “Custom Field” to indicate that the post is Arabic and I use that in my child theme to change the direction to RTL and the text translation to Arabic, however, I do that manually which means I fully customize the theme with strings in both languages and pick the correct one based on the custom field value and also set the direction for the html tags for the post title, body and comments. It is working, however, changing the theme later means I need to redo everything. I am also trying to use a comment plugin “wpDiscuz” but there is no easy way to control the language other than editing the plugin itself which I don’t want to do since I want to be able to update it easily and not redo the changes after every update.
I know that I can get my translations into JavaScript doing: