Skip Navigation

[Gelöst] The text "No items found" in several languages

This support ticket is created vor 5 Jahren. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 4 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Francisco Ramón Molina Busquiel vor 5 Jahren.

Assistiert von: Waqar.

Author
Artikel
#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?
versteckter 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!