Skip Navigation

[Resolved] How to translate the Filter and Loop Output Integration Editor with WPML?

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to translate some text in the Filter and Loop Output Integration editor.

Solution: Wrap the text in a wpml string shortcode, and translate the text using WPML String Translation:

[wpml-string context='your-context-name' name='Add a demand']Add a demand[/wpml-string]

Relevant Documentation: https://wpml.org/documentation/getting-started-guide/string-translation/

This support ticket is created 7 years, 2 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.

Our next available supporter will start replying to tickets in about 1.45 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by Jeffrey 7 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#572959

How to translate Filter and Loop Output Integration Editor? as I put some html code on that,

 <p style="text-align: center;">[wpv-conditional if="( '[wpv-items-count]' gt '0' )"] <button type="button" class="btn btn-primary btn-lg"><a href="<em><u>hidden link</u></em>"><i class="fa fa-plus-circle" aria-hidden="true"></i>  Add a  demand</a></button></p>[/wpv-conditional]
[wpv-filter-meta-html]
[wpv-layout-meta-html]

I just want to show a link with button to add new post, if the number of post = 0, so I think it should be put on Filter and Loop Output Integration Editor. but if so, it can not be translate with WPML. Thank you for your help!

#573051

Hi, if you're talking about the "Add a demand" text string, you can wrap that in a wpml-string shortcode. Then the text can be translated with WPML String Translation:

[wpml-string context='your-context-name' name='Add a demand']Add a demand[/wpml-string]
#574227

Got it ,Thanks