Skip Navigation

[Resolved] The text "No items found" in several languages

This support ticket is created 4 years, 11 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)

This topic contains 4 replies, has 2 voices.

Last updated by Francisco Ramón Molina Busquiel 4 years, 11 months ago.

Assisted by: Waqar.

Author
Posts
#1400453
noitemsfound02.png
noitemsfound01.png

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,

#1400705

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

#1400777

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.

#1401391

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

#1401511

Thank you very much for your help Waqar!