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.
This topic is split from https://wpml.org/forums/topic/split-cant-translate-the-form-option/
Tagged: Compatibility
This topic contains 8 replies, has 2 voices.
Last updated by Dražen 1 year, 10 months ago.
Assisted by: Dražen.
Author | Posts |
---|---|
July 18, 2023 at 8:58 am #14056599 | |
maciejB-12 |
thank you for the configuration file. now i can translate form fields of type "radio", but i still don't see an option to translate form fields error messages. |
July 18, 2023 at 9:00 am #14056639 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+02:00) |
Hello, can you please share more information, is this message you added, or coming from a theme/plugin files? Please try to reproduce the issue on the same sandbox and share with me the steps you did and how can I see the problem. Login link: Regards, |
July 18, 2023 at 4:28 pm #14060981 | |
maciejB-12 |
As you can see, in the panel I can edit the error message of each field, as well as the general error and "Pre Submit Form Validation". But in the translation editor there are no these phrases for fields (string in Polish language:"To pole jest wymagane") and Pre Submit (string in Polish language:"Wypełnij pola!"). |
July 19, 2023 at 7:17 am #14062775 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+02:00) |
Hello, great, thanks for your time and effort. I have escalated to our compatibility team and will update you soon. Regards, |
July 19, 2023 at 12:34 pm #14066067 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+02:00) |
Hello, our team checked and fixed the issue. As last time, you can wait a day or two for use to update XML config file and it should work fine, You can add it manually via WPML > Settings > Custom XML configuration: <wpml-config> <gutenberg-blocks> <gutenberg-block type="kadence/form" translate="1"> <key name="messages"> <key name="*"> <key name="success" /> <key name="error" /> </key> </key> <key name="redirect" /> <key name="email"> <key name="*"> <key name="subject" /> <key name="fromName" /> </key> </key> <xpath>//div[contains(@class, "kadence-blocks-form-field")]/label/text()</xpath> <xpath>//div[contains(@class, "kadence-blocks-form-field")]/input/@*[name()='data-label' or name()='placeholder' or name()='value' or name()='data-required-message']</xpath> <xpath>//div[contains(@class, "kadence-blocks-form-field")]/textarea/@*[name()='data-label' or name()='placeholder']</xpath> <xpath>//div[contains(@class, "kadence-blocks-form-field")]/textarea</xpath> <xpath>//div[contains(@class, "kadence-blocks-form-field")]/span</xpath> <xpath>//div[contains(@class, "kadence-blocks-form-field")]/button</xpath> <xpath>//div[contains(@class, "kb-radio-item")]/label/text()</xpath> <xpath>//div[contains(@class, "wp-block-kadence-form")]/form/@data-error-message</xpath> </gutenberg-block> </gutenberg-blocks> </wpml-config> Thanks and regards, |
July 26, 2023 at 8:55 am #14101129 | |
maciejB-12 |
The last solution is ok, but only for the main error inforamation. There are still individual messages left (screen attached). I tried to add my own configuration to the XML, but unfortunately none of the ideas worked. |
July 26, 2023 at 9:20 am #14101463 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+02:00) |
Hello, probably depends on the field set. If you can show us on the sandbox site where it is added and what goes wrong, I will be sure to ping our compatibility team to check and add further XML. Please note some of the message might be coming from PHP files and would need to be translated via WPML String translation. Thanks, |
July 26, 2023 at 9:56 am #14102045 | |
maciejB-12 |
In the sandbox environment it works good :/ New threads created by Dražen and linked to this one are listed below: https://wpml.org/forums/topic/split-form-messages-not-translatable/ |
July 26, 2023 at 10:03 am #14102145 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+02:00) |
Hello, thanks for getting back. If not reproducible and not the same topic, then we will need to re-check it as a new case and in a new ticket I have just opened: - https://wpml.org/forums/topic/split-form-messages-not-translatable/ Let's continue there. Regards, |