This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Tagged: Compatibility
This topic contains 7 replies, has 3 voices.
Last updated by Marcel 1 year, 1 month ago.
Assisted by: Marcel.
Author | Posts |
---|---|
September 28, 2023 at 4:13 pm #14483699 | |
nikolaosM |
Hello, I have activated the WC Cancel Order Pro plugin https://wordpress.org/plugins/wc-cancel-order/ . I have setted some custom cancellation options, but I can not find them in string translation to translate them. I was able to find the default strings that the plugin adds but I want to use the custom ones. How can I fix this? Thanks! |
October 1, 2023 at 3:12 pm #14493445 | |
Christopher Amirian Supporter
Languages: English (English ) Timezone: Asia/Yerevan (GMT+04:00) |
Hi there, I will add the first reply before this ticket is assigned to one of my colleagues. Please follow the steps below to find the strings of the plugin options and register them for translation: If the issue persists, I created a clean installation of WordPress and WPML. Please install the plugin in question there and replicate the issue so we can check: hidden link Thanks. |
October 2, 2023 at 7:40 am #14495029 | |
nikolaosM |
Hello, I had already made the steps the instuctions you sent me reffer to, but i was not able to find the strings. I have added the plugin to the demo site. You can see the settings under woocommerce -> settings -> wc cancel. The strings in the box are the ones i want to translate hidden link . I was able to translate the ones you see now, since they are the default ones that the plugin adds. I have not changed anything in the strings you see. Try adding a new one or removing the dots from the existing ones and see if you can translate them after. In order to see the strings you have to make an order and them follow the link that appears in the transactional email you will receive. |
October 2, 2023 at 1:40 pm #14498449 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Hi, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it. Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you. IMPORTANT Best Regards |
October 3, 2023 at 12:04 pm #14504365 | |
nikolaosM |
Hello again, I haven't heard back from you since yesterday and I would like this problem to be fixed as soon as possible since you are getting pressure from our client. Thanks! |
October 3, 2023 at 3:47 pm #14506801 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Hi, thanks for the info! I was able to find the string. Click on "Cancel Request", but don't finish the process: hidden link. Then you can see my "translated", which has a "GR" prefix before the actual string. You can find the strings for translation in this filter: hidden link. Best Regards |
October 4, 2023 at 7:30 am #14510185 | |
nikolaosM |
Yes I know you were able to find this strings. As I said I was also able to find this strings since they are the default strings the plugin adds. As I said if you change this strings or add a new one you can not find them in string translation. This is the problem I am having, I am not able to translate the custom strings, not the default ones. Please read the messages more cereful so we do not waste time. I will not add any new string or change the default ones so you can do it yourself and regenerate the problem. As I said you can see the strings in Woocommerce -> Settings -> WC Cancel and see the screenshot I have sent. |
October 4, 2023 at 8:00 am #14510409 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Hi,
That is expected because you need to make a new scan. Let me explain: I registered those strings via "Look for strings while pages are rendered". You only had the admin strings (hidden link) registered, which are including all lines inside one single string, even changes on the WooCommerce input field. This string has a pending update. Ignore it. I made a change to the WooCommerce input field (adding "TEST") and my already translated string from the default textdomain "wc-cancel-order" got the update and is viewable on the Frontend. This option will look for all viewable getText() calls on the Frontend when I open it. If I add a new line, "This is a new line." you will most likely search now for the string in String Translation OUTSIDE of the admin_texts_wc_cancel_settings textdomain and not find it. If you reactivate the "Look for strings while pages are rendered" option, you will find my changed string (Others TEST) and my new line and be able to translate it: hidden link. This is the option I used: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#auto-register-strings-for-translation. Best Regards |
October 4, 2023 at 10:18 am #14511701 | |
nikolaosM |
My issue is resolved now! Thanks for the help! |