Translate theme only

I got back to this issue today and I solved it like a boss thanks to the Zanto plugin. Just to recap, I was trying to translate the front-end of only one site from a multisite setup with the least possible hassle while leaving every other site unchanged. All I did was copy the general … Read more

Add a string to file .pot using Poedit

Well, the way I work with Poedit is: Open Poedit Open the .pot file with Poedit Define the language of the translation Find the info you want to translate on the left collumn Place the translation on the right collumn Save the .po Compile the .mo Save both on the ‘language’ folder of the theme … Read more

Translate pages and URLs without duplicating

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 to override default WordPress core language 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