 Osama Mersal
WPML Supporter since 02/2020
Languages:
English (English )
Arabic (العربية )
Timezone:
Africa/Cairo (GMT+03:00)
|
Hi,
I've checked the issue and found that when using automatic translation, the quotation marks are turned into arrows, but they work correctly when translated manually using the Advanced Translation Editor. That's why the issue doesn't happen on the staging site.
For example, please check this page. (hidden link)
Currently, I'm consulting our ATE team regarding the issue, and I'll update you as soon as I get their reply.
Thanks for your cooperation and patience
Regards,
Osama
|
 jeffJ-5
|
Ok, thank you for the update.
|
 Osama Mersal
WPML Supporter since 02/2020
Languages:
English (English )
Arabic (العربية )
Timezone:
Africa/Cairo (GMT+03:00)
|
Hi,
Thanks for your patience. Our 2nd tier support team has found that the issue is not related to ATE but WordPress translation.
The es_ES.mo file contains a translation for the quote, which translates it to the angular quotation mark.
They were able to fix the issue by the following workaround:
1- Run the following query in your database manager
UPDATE `wp_icl_mo_files_domains` SET `last_modified` = 1
WHERE `last_modified` IS NOT NULL
2- Go to WPML > Theme and plugin localization
3- Run the process that says that there were changes detected in .mo files and make sure to scan the "WordPress" context (Kindly check this hidden link)
4- Go to WPML > String Translation
5- Search first for "«"
6- Open the string, remove the translation and use the button to copy original
7- Search now for "»"
8- Open the string, remove the translation and use the button to copy original
9- Visit front-end (hidden link)
Would you please let me know if these steps helped you fix the issue?
Thanks for your cooperation
Regards,
Osama
|
 jeffJ-5
|
Thank you for those instructions. We will follow these instructions and get back to you to confirm in a few days. Our developer is out of the office until Monday.
|
 Osama Mersal
WPML Supporter since 02/2020
Languages:
English (English )
Arabic (العربية )
Timezone:
Africa/Cairo (GMT+03:00)
|
Hi,
Sure, please take your time and let me know if these steps fixed the issue.
Thanks,
Osama
|
 jeffJ-5
|
Hello Osama,
We have followed the instructions, but we are still stuck.
In Step 1, our wp_icl_mo_files_domains table is empty, so that command doesn’t do anything.
Then in step 3, there’s nothing to run because it doesn’t say that any changes have been detected.
And then Steps 5-8, when we search for the double angle quotes, « and », we get zero results for either one.
What do you recommend now?
|
 Osama Mersal
WPML Supporter since 02/2020
Languages:
English (English )
Arabic (العربية )
Timezone:
Africa/Cairo (GMT+03:00)
|
Hi,
This issue happens because of the default WordPress translation file (es_ES.mo); hence the translation of the quotes are double arrows. Kindly check this page. (hidden link)
I suggest importing the WordPress default file to your language folder inside the wp-content folder and editing it to fix the issue.
Thanks,
Osama
|
 jeffJ-5
|
Thanks for your quick reply. We've modified the es_ES.mo file, and it seems to be working correctly now.
We are not sure, however, what the longer-term implications of this change will be. When updates to the site are made in the future (either to the WPML plugin or WordPress core code), will the changes we've made to the file be maintained, or is there a chance it will be overwritten?
|
 Osama Mersal
WPML Supporter since 02/2020
Languages:
English (English )
Arabic (العربية )
Timezone:
Africa/Cairo (GMT+03:00)
|
Hi,
It's great to hear that the issue seems to be fixed. 🙂
WPML shouldn't overwrite this edit, but I'm not sure if updating the WordPress core will change it, but you know the fix now and can do it if that happens.
I hope this helps you. If you need further info, please let me know.
Best regards,
Osama
|