Thread Starter
koupmi
(@koupmi)
Any update about my issue?
Also after plugin update to latest version button stop working.
Thread Starter
koupmi
(@koupmi)
Even this doesnt work:
function change_translate_text( $translated_text ) {
if ( 'Old Text' === $translated_text ) {
$translated_text = 'New Text!';
}
return $translated_text;
}
add_filter( 'gettext', 'change_translate_text', 20 );
Please when asking for help refer to https://wordpress.org/support/topic/before-you-post-please-read/
Also before we can help you we need some idea of what you are trying to do. What are you trying to do? Your posting here so far is extremely confusing, and provides very little detail. We are volunteer coders, not psychics, so help us out please!
Thread Starter
koupmi
(@koupmi)
How i said in first message, problem is with translation of gift detail.
What i did:
1.add this XML to WPML:
<wpml-config>
<admin-texts>
<key name="giftwrap_details"/>
<key name="wc_fields_billing">
<key name="*">
<key name="label" /></key>
</key>
</admin-texts>
</wpml-config>
2. Found my string in String translation and translate it
But in frontend is still not translated text
Also i tried translate string with this to functions.php
function change_translate_text( $translated_text ) {
if ( 'Old Text' === $translated_text ) {
$translated_text = 'New Text!';
}
return $translated_text;
}
add_filter( 'gettext', 'change_translate_text', 20 );
But didnt worked.
PHP is 7.4.
All plugins and WordPress have latest version.
Please try specific, what more informations or debug you need.
-
This reply was modified 1 year, 11 months ago by koupmi.
Thread Starter
koupmi
(@koupmi)
What do you mean? Yes i read it all. Above i descripted, what i did. String ‘wcgwp_details’ is translated, but translation does not showing in frontend. Is there some step what missing? Please specific.
-
This reply was modified 1 year, 11 months ago by koupmi.
Sure you described what you did, but it all looks like Greek to me. I don’t write XML, I don’t support WPML. If you have followed the instructions here:
https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#strings-arent-selected-for-translation
and THAT is not working, let me know.
Thread Starter
koupmi
(@koupmi)
I followed.
You can see translated string here: https://ctrlv.cz/shots/2022/10/31/gmoe.png
But it didn’t show up on the frontend