Skip Navigation

[Resolved] Using WPML with Views

This support ticket is created 2 years, 10 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.58 hours from now. Thank you for your understanding.

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 2 replies, has 2 voices.

Last updated by matthewC-9 2 years, 10 months ago.

Assisted by: Waqar.

Author
Posts
#2091019

Hi - I'm trying to translate some views using WPML. So far, the fields pulled in by the view are getting translated. But there are a few text strings built into the view itself, and I haven't been able to figure out how to translate those.

On /wp-admin/admin.php?page=wpml-translation-management%2Fmenu%2Fsettings, I have Views set to Translatable in the Post Types Translation section. But when I look at the list of views or go to edit an individual view, I don't see a translation option.

I found what look like some, but not all, of the relevant strings in the String Translation section. But adding a translation there has not made the relevant text show up where it should within the view.

What should I be doing differently to get that text translated?

Thanks!
Sarah

#2091407

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Sarah,

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

As explained in our documentation, when the page with the view is translated, its text should also become available for translation:
https://toolset.com/lesson-placement/lesson-placements-1707695-1720753/#translating-views

Can you please share temporary admin login details along with the example page where these untranslated strings can be seen?

Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.

regards,
Waqar

#2091551

I think I figured it out - it seems to work to go into the view and wrap the string in question in [wpml-string context="wpv-views"][/wpml-string] (as discussed in https://toolset.com/documentation/legacy-features/translating-legacy-workflows/wpml-string-shortcode/).

For what it's worth, I didn't see any way to do what https://toolset.com/lesson-placement/lesson-placements-1707695-1720753/#translating-views is talking about - possibly because I'm using legacy views on this site, not the blocks? Anyway, I think it's all set now.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.