This thread is resolved. Here is a description of the problem and solution.
Problem:
Some strings are not being found in a custom plugin and can't scan the plugin.
Solution:
The plugin needed to be scanned via WPML -> Themes and plugins localization in "Strings in the plugins" section.
Relevant Documentation:
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, Exception, Go Global Application
This topic contains 6 replies, has 3 voices.
Last updated by Waqas Bin Hasan 1 year, 6 months ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
July 21, 2023 at 12:33 pm #14080043 | |
emilN-4 |
same as in here is the requested debug info. The history of the yesterday ticked (error appeared I was kicked out of the chat). Today I saw the email with the below: emilN-4 : Hi! I followed that topic: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/ Mateus Getulio : So that I can take a better look at this, could you please attach the Debug info? You can see how to retrieve it here: https://wpml.org/faq/provide-debug-information-faster-support/. In summary, these are the steps: - Go to WPML > Support > Debug Information Please don\'t post the debug info in the chat directly, use the Debug Info section bellow the chat area. The state of this thread is: |
July 23, 2023 at 6:41 am #14084043 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, while you are waiting for one of my colleagues to take over the ticket, let me share a reply. 1) Can you please share more info on what is the issue and what are you trying to achieve? 2) As I understand dev added some string for translation in the custom plugin and they are not translatable. If so, make sure they are added correctly: - The text must be wrapped in gettext calls. Let us know. Regards, |
July 23, 2023 at 7:55 am #14084073 | |
emilN-4 |
Hi! The previous texts he added appeared. The issues is this plugin is not available for scanning with WPml string translation and therefore the texts do not appear anywhere. Even in admin texts. I can give you admin access. |
July 24, 2023 at 7:56 am #14086639 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for contacting the support. I am assigned this ticket and 'll try my best to help you on the matter. Can you please tell which plugin is this? A plugin following WordPress standards should appear for scanning in WPML -> Themes and plugins Localization. Do you see it not listed there too? As per my understanding it seems to be a custom plugin, which may be out of scope of this forum. However, please provide me admin access to your website to check the issue in detail. Also provide detailed steps to reproduce the issue and links to pages in admin and on frontend. Remember to take full backup of your website and database before proceeding. However, a staging/test site is highly recommended, because I may need to try some changes/fixes on the site (including plugins & themes deactivation), which may cause conflicts with the live site otherwise. Please confirm it in your next reply or let me know if you do not agree with the mentioned. I've set your next reply as private to share this information safely. IMPORTANT: If you don't see the section for providing access information, do not write in the message box or the information may appear as public. See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security. Regards. |
July 24, 2023 at 2:19 pm #14090345 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the access and details. I was able to login and check for "Българизация" string which translates to "Bulgarisation" and if I search "Bulgarisation" (instead of Българизация), I can find it in ST (see attached). Although it showed 0 strings when I checked in WPML -> Themes and plugins localization -> Strings in the plugins, but simply selecting it and then clicking Scan selected plugin for strings, brought up several strings and I was able to find "company" (company ID...) strings (screenshots attached). Now you can go to ST (string translation), find and translate. |
July 24, 2023 at 2:55 pm #14090681 | |
emilN-4 |
Hi! Thanks! Where did you find this scanning shown on the 1st screen? I don't see this. I know only this: |
July 25, 2023 at 9:59 am #14095087 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Glad to know that issue has been resolved. You can always find all plugins and themes in WPML -> Theme and plugins localization and then in "Strings in the themes" or "Strings in the plugins" respectively. See attached. |
July 25, 2023 at 10:15 am #14095207 | |
emilN-4 |
Thanks a lot. I tested it and now I would know how to do it! 🙂 |