Hi @arsenalemusica
I’m sorry to hear you are facing issues.
Can you tell me specifically what strings aren’t translating so I may overlook this for you and on what page are these strings found.
Thread Starter
anonymized-14293447
(@anonymized-14293447)
hello Andrew, the string is this:
#: pages/levels.php:54 shortcodes/pmpro_account.php:94 pages/account.php:33
#: pages/levels.php:57 pages/levels.php:72 pages/levels.php:75
#: pages/levels.php:78 pages/levels.php:123 shortcodes/pmpro_account.php:59
#: shortcodes/pmpro_account.php:60 shortcodes/pmpro_account.php:61
#: pages/levels.php:64
msgid "Renew"
msgstr "Rinnovo"
But I cannot show you the page because it’s on the user backend. However, it’s in the list of subscrition plans, in the current subscribed plan, button “renew”.
There was another string but right now I cannot remember 🙂
Thanks for sharing this, looking at this it shows that the strings are reflecting.
We’re looking into this from our end further.
Thread Starter
anonymized-14293447
(@anonymized-14293447)
hello again, I was wondering that there might be a partially configured bundle. As explained in Loco tutorial, could you help providing an XML format of the bundle? It might resolve the problem of some strings not translating.
You may be able to get the XML file by navigating to https://translate.ww.wp.xz.cn/projects/wp-plugins/paid-memberships-pro/ and select your locale and branch/tag.
Once this is done, you should be able to scroll to the bottom and there should be an export option of this and file type.
Thread Starter
anonymized-14293447
(@anonymized-14293447)
hello Andrew, I have tried to load a xml bundle (even if Loco says that it is well configured) and got an error: Expected <bundle> document element plugins/loco-translate/src/config/XMLModel.php#73
So I think this procedure is not working.
Do you suggest another way? After all I’m just trying to apply a few strings that are not translated.
Thread Starter
anonymized-14293447
(@anonymized-14293447)
In order to solve this issue I had to force it:
// QUICKLY TRANSLATE ANY STRINGS THAT DON'T GET TRANSLATED
add_filter('gettext', 'translate_text');
add_filter('ngettext', 'translate_text');
function translate_text($translated) {
$translated = str_ireplace('Renew', 'rinnovo', $translated);
$translated = str_ireplace('any other text', 'your translation', $translated);
return $translated;
}
…but please consider reviewing it for your next releases. Cheers