Hi!
I have created a view with Toolset, but the text "No items found" is hardcode, how can it be displayed in each language according to the language connected in WPML?
hidden link
Look at the screenshots.
Thanks for your help.
Regards,
Hi Francisco,
Thank you for contacting us and I'd be happy to assist.
As shown in your screenshot, the "No items found" text is by default, wrapped inside the "wpml-string" shortcode:
( ref: https://wpml.org/documentation/support/wpml-coding-api/shortcodes/#wpml-string )
This means that it is translation-ready and can be translated using WPML's "String Translation" feature:
https://wpml.org/documentation/getting-started-guide/string-translation/
Here is another useful guide on using this string translation feature:
https://toolset.com/documentation/translating-sites-built-with-toolset/wpml-string-shortcode/
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar
So, if I put any other text in this shortcode, will it automatically appear in the "String translation" of WPML?
Thanks for your help Waqar.
Hi Francisco,
Yes, as explained in those guides, you can make any static text in your views, translation-friendly, by wrapping it in that shortcode.
( as it will become available in "String translation" section of WPML )
regards,
Waqar
Thank you very much for your help Waqar!