Single translation for many locales
Single translation for many locales
Single translation for many locales
Build a translation correcter plugin
You need to pass the text domain too. Assuming that you have the proper .mo and .po file, and loaded the text domain successfully: if( $_POST[“save”] === __( ‘Publish’, ‘text-domain’ ) ){ //do something } But this is not generally a good idea. You should do your checks based on something more certain, not a … Read more
Woocommerce has moved some settings to the WP customizer. Go to: WP admin menu -> Appearance -> Customizer -> Woocommerce -> Checkout. There you can set the Privacy & Terms.
I managed to do so using a plugin called IP2Location Redirection, then it worked well for me. It turned out that Geo Redirect hasn’t been compatible with latest versions of WordPress.
Turns out the .po file I was editing was not the correct one for my plugin. i’ve reconstructed the .po and .mo with the .pot file inside the plugin, and now translations works just fine.
What can be reason for no plugin-strings available under stable section on translate.wordpress.org?
The first question here is why don’t you want to duplicate your pages? I would very much advise to use a plugin like PolyLang or WMPL that do exactly that. qTranslate X is a plugin that does not duplicate pages. It just copies the content of all translations into one post. https://de.wordpress.org/plugins/qtranslate-x/
How can i merge the translations from one .po file into the source on another .po file?
Correcting the answer given by Max. To use this approach, the filter you need is gettext_with_context because your string is translated via _x() not __(). Note that the filtered argument passed is the translation, so you should check the source string ($text and $context) to ensure you’re filtering the correct item. add_filter( ‘gettext_with_context’, ‘added_translation’, 20, … Read more