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: Feature request
This topic contains 3 replies, has 2 voices.
Last updated by Long Nguyen 1 year, 4 months ago.
Assisted by: Long Nguyen.
Author | Posts |
---|---|
July 25, 2023 at 2:34 pm #14097359 | |
alexC-33 |
Hi, We are experiencing an issue when activating the `gravityforms-multilingual` plugin; it hangs and eventually times out. I can see MySQL under heavy load, but once it eventually settles down I can see that it's added about ~19,000 strings to WPML String Translation. We have ~11 active Gravity Forms, and ~19 in the Trash. Each form has a 'US State' drop-down field, as well as a 'Country' field, of course these contain a lot of options. I can see the label and value both get added as translatable strings, for every country/state for every form- including trashed ones. We end up with about 30 new domains, one for each form (including the trashed forms), each with roughly 660 strings in. See attached image. Is there any way to prevent it from translating these particular fields, or perhaps share the translated fields/choices between each form? We can't realistically expect our translators to translate every state & country twice every single time we add a new form. Eventually we may end up with 100s of forms, so we'd have over 600 fields each time. Thanks, --- FYI: Each time I test this out, I restore my DB from a backup so it's fresh each time. I've tried activating the plugin with MySQL query logging enabled and I can see it rattling through the list of countries many, many times. All environments face the same problem, but my local environment has the timeout threshold set far higher so I can debug it. |
July 26, 2023 at 6:26 am #14099725 | |
Long Nguyen Supporter
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi Alex, Thank you for contacting WPML support, I'd be happy to help you with this issue. If you don't want to translate a string in a Gravity Form many times, please use the Advanced Translation Editor. The feature Translation Memory will help you to prevent doing that. Please read more about this feature in the documentation Look forward to your reply. |
July 26, 2023 at 8:44 am #14101063 | |
alexC-33 |
Thank you for getting back to me. We're already using the Advanced Translation Editor, so if those form field strings are auto-populated from memory then that should be acceptable. My main problem though is upon activation of the plugin, the website essentially crashes as it tries to create 19k translatable strings. Presumably every time we create a new form going forwards, it'll also churn through the creation of a further 600 strings. I'm assuming there's no avoiding this? It would be nice if we could activate the plugin without it automatically running this process. WPML doesn't pull out all strings for every post on activation does it, so why does it do this for Gravity Forms? Can't it create them as I set up the translation for each form? Cheers, |
July 26, 2023 at 10:11 am #14102245 | |
Long Nguyen Supporter
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, Currently, each GF form will be registered automatically with the corresponding domain in String Translation. And there isn't a way to prevent this. There is a feature request to prevent this process and I will add this ticket to increase the priority. Thanks. |