Skip Navigation

[Resolved] Get the translate title of the checkboxes

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)

This topic contains 3 replies, has 2 voices.

Last updated by garenM 1 year, 10 months ago.

Assisted by: Waqar.

Author
Posts
#2541743

Hey Im using this shortocode https://toolset.com/forums/topic/get-all-custom-fields/ to get the titles from the checkboxes. I need to get the translated title but I didn't find any way. Can you please advise? The title checkboxes are translated from wpml string translation

#2542609

any update for this?

#2542635

Hi,

Thank you for contacting us and I'd be happy to assist.

To make the output of that custom shortcode translatable through the string translation, you can replace line # 24 in the code from:


$output .= $separator . $field_value_option_title;

With:


$output .= $separator . __( $field_value_option_title, 'mytextdomain' );

Note: Please change 'mytextdomain' with the actual domain that you see in the string translation editor.

I hope this helps and please let me know if you need further assistance.

regards,
Waqar

#2542657

My issue is resolved now. Thank you!