[Resolved] How to change the type "numeric" into "text"
This thread is resolved. Here is a description of the problem and solution.
Problem: You are unable to translate certain strings in WPML because they are locked and detected as 'numeric' instead of 'text'. These strings are related to WooCommerce email settings for subscription manual renewal reminders. Solution: The strings are locked because they are pre-configured to always be available for translation within WPML's String Translation. If these strings are showing as 'numeric' and have no value, it is likely because they are empty in the WooCommerce email settings. To resolve this, you need to fill in the subject and heading fields in the WooCommerce settings at WooCommerce > Settings > Emails > Subscription Manual Renewal Reminder. Once these fields are populated, the strings will appear as 'text' in the 'Translate texts in admin screens' and will be available for translation in WPML -> String Translation.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at https://wpml.org/forums/forum/english-support/.
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.
Background of the issue:
I would like to translate strings but WPML won’t let me do it because they are locked. The strings must be like type 'text' and not 'numeric'.
In particular these:
[woocommerce_asp_erws_customer_subscription_manual_renewal_reminder_settings]subject
[woocommerce_asp_erws_customer_subscription_manual_renewal_reminder_settings|heading
Symptoms:
WPML won’t let me translate strings because they are locked.
Questions:
How to change the type 'numeric' into 'text'?
Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with the first debugging steps and try to help with the issue quickly.
As I can see in your image, it says it is registered and locked, which means it is already added for translation, and this rule is set by a plugin, as part of WPML compatibility.
So, simply you should go to WPML > String translation and search for that string and translate.
Languages: English (English )Portuguese (Brazil) (Português )
Timezone: America/Sao_Paulo (GMT-03:00)
Hello,
I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. 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.
Our Debugging Procedures
I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link
Please, let me know if you need any additional details. Have a nice day.
Languages: English (English )Portuguese (Brazil) (Português )
Timezone: America/Sao_Paulo (GMT-03:00)
Hello Andrea,
Thank you for sharing that access.
I checked it and the reason those fields are locked is that they're pre-configured to always be available for translation within String Translation. In other words, it is not that you can't add them to the string translation, they're locked so they're always available.
Moreover, they're detected as numeric and showing no value, because they're empty inside the WooCommerce email settings here(WooCommerce > Settings > Emails > Subscription Manual Renewal Reminder):
hidden link
As a test, I temporarily added a subject to the renewal reminder email. After doing it, the string showed as 'text' in the 'Translate texts in admin screens' and was available for translation inside WPML -> String Translation, please check the screenshots. I reverted the subject to the previous state.