Skip Navigation

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: 

This topic contains 6 replies, has 2 voices.

Last updated by Dražen 1 year, 6 months ago.

Assisted by: Dražen.

Author Posts
July 12, 2023 at 6:11 am #14019033

maciejB-12

Thank you. I have one more problem. This time I can't translate the form option (from radio field). Notice that the translation editor does not show these options ("Opcja1", "Opcja2").

July 12, 2023 at 6:16 am #14019051

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

I created a minimal installation of WordPress, WPML, and all necessary WPML add-ons.

You can access the WordPress dashboard using the link below:
- hidden link

Kindly follow the steps below:
- Set up WPML
- Install the necessary plugins.
- Try to replicate the issue.
- Share with me step by step guide on how can I check the issue

This will help us to report the probable issue to the compatibility team and solve the possible problem faster.

Regards,
Drazen

July 12, 2023 at 9:41 am #14021761

maciejB-12

Ok, You can check this:
hidden link

The "Available options" can't translate

July 12, 2023 at 1:10 pm #14024545

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for getting back and taking the time to reproduce.

I have confirmed the issue and escalated the ticket to our compatibility team.

I will update you as soon as I have some news.

Regards,
Drazen

July 13, 2023 at 11:01 am #14031493

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

our team checked and some configuration was missing for the radio options.

We will update the XML configuration and it should work fine in a day or two.

- hidden link

If you wish and don't want to wait you can also add this new XML configuration manually to 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']</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>
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

- Make a small change to the default language and re-translate.

Kind regards,
Drazen

July 18, 2023 at 8:33 am #14055861
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.
E.g. "This field cannot be empty!".

New threads created by Dražen and linked to this one are listed below:

https://wpml.org/forums/topic/split-translate-form-fields-error-messages/

July 18, 2023 at 8:59 am #14056601

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

great, glad to hear that.

We limit 1 issue per 1 ticket, to keep things clear and easy to follow. I have opened a new ticket for your new issue:

- https://wpml.org/forums/topic/split-translate-form-fields-error-messages/

Since the original issue of this ticket is resolved I advise closing this one and continue our conversation in the new ticket.

Regards,
Drazen