Skip Navigation

[Resolved] Problem with WPML and Views Content templates

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

Problem:
How to translate Content Template with WPML

Solution:
1. Content Templates must be created in the Default language
2. This default language can not be changed or the content template will not be available anymore after wards
3. You do Translate content (strings) of Content Templates with the WPML String Translation and Translation management.
4. In content templates you use the Toolset wpml shortcode to register the strings

Relevant Documentation:
https://toolset.com/documentation/multilingual-sites-with-types-and-views/
https://toolset.com/documentation/user-guides/translate-layouts/

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

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 4 replies, has 2 voices.

Last updated by paulw-2 8 years, 4 months ago.

Assisted by: Beda.

Author
Posts
#367175
Naamloos-6.jpg

Hi there,

We have a problem with the combination of WPML and Views (content templates).

Some of our content templates show up:
-when the default WPML language is on EN,
- the missing ones are showing up when default WPML language is on NL

Because we changed the default language in our development proces (from NL => EN) we thought this had something to do with it, so we thought to remove the content templates from NL, change the default language back to EN and placed the content templates back, the way it should be.

Somehow these templates still are only visible when de default language is set to NL.
We expected them to show up under EN.

In my opinion it would be the best way the overview shows all the rules with content templates and the pencil tels if a language version is available or not.

LANGUAGE SELECTOR
As i remember right, there also used to be a language selector on the wordpress topbar when opening the views section in the past. This is missing also.

Can you help us out to make all the content templates visible?
How do we get the language selector back on the wp-views section pages?

Thanks,

Paul

PS i've posted this issue also on wpml.org

#367232

This is a WPML related issue and .we handle only Toolset issues here.

I understand that the Plugins are made by the same Company but we have a didcated Support Forum for Translation related Problems.
The Supporters there are trained on the usage and debug process of WPML, while we here are specialized on Toolset usage, which includes the construction and setup of Content and display this.

Translation related problematics are handled here:
https://wpml.org/forums/forum/english-support/

Every post (also content Templates) that you want to translate will be created in a Language (usually your default language) and then translated to the secondary language
If the post does not exist (or content template) in your other languages, it means the translation is missing

Thank you

#367236

HI Beda,

I've posted it there as well.

What's weird is when i create a new views content template (which is wp-types) in default language EN, it won't show up in the page: views content templates.
When i change the default language to dutch it's there though.

I can't see what wpml has to do with that because it's about creating a wp-types content template which ends up wrongly...

Thanks,

Paul

#367246

It is a WPML related issue because the language administration is involved.

You can create Content Templates with Toolset without any issues, as long WPML is not enabled, correct?
The issue appears on a Translation/Language Screen depending setting, and not on a Toolset depending setting.

I honestly apologize that I can not be of any great help.
It would be much faster if you follow up with the WPML Support, because at the Time I set up a Local environment with WPML + Toolset, the WPML Supporter will already have a answer ready.

Can you share the Link to WPML Forum's ticket here so I can get in touch with the assigned supporter, to work together with him/her in case they need Toolset Assistance on the troubleshoot steps?

Thank you for your comprehension and patience.

#367252

It is a WPML related issue because the language administration is involved.

You can create Content Templates with Toolset without any issues, as long WPML is not enabled, correct?

Correct, but it ends up under the wrong 'non-default' language.
Since this happened after updating views a couple of releases ago.

Also the language selector in the wp-views page seems something for wp-types in my opinion.

I thought it might be something for wp-types to check and possibly fix.

I've contacted wpml simultaneously as well, and hope they can fix this.
Thanks for your time.

Paul

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