Skip Navigation

[Resolved] Translate Form Label

This support ticket is created 3 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Puntorosso 3 years, 8 months ago.

Assisted by: Waqar.

Author
Posts
#2014217

How do I translate this form label with WPML?
hidden link

I cannot find it on String Translation.

#2014635

Hi,

For any text, that is not appearing in the String Translation section on its own, you can wrap it inside the "wpml-string" shortcode.
( ref: https://wpml.org/documentation/support/wpml-coding-api/shortcodes/#wpml-string )

Example:


[cred_generic_field type='checkbox' field='example-checkbox']
{
"required":0,
"default":"1",
"label":"[wpml-string context="toolset-forms-123"]Example Checkbox Field Label[/wpml-string]"
}
[/cred_generic_field]

Note: you can replace "123" with your actual form's ID.

After the form has been updated, please make sure to visit the page with this form on the front-end, which will make it available in the String Translation section.

regards,
Waqar

#2015001

My issue is resolved now. Thank you!