Now need to change add english to my web i readed the wpml info but had some question.
First when create new translation of form, if had a script on save asociated , on save creed data, need create new script for every copy or add or in if secuence?
Using renden type function,,How do I specify which language I want?, same with creed and types fields. in creed i think that is value but no are any example how i use it. on types i dont found any clue.
Can it be specified that a certain role has a predefined language?
Define a exclusive layout for every language?
Hello Rafael and thank you for contacting the Toolset support.
First when create new translation of form, if had a script on save asociated , on save creed data, need create new script for every copy or add or in if secuence?
No need to have separate custom code for each language's form, WPML and Toolset should use the same form in all languages.
Using renden type function,,How do I specify which language I want?
I do not think there is such a feature. The language is defined by the URL/page currently visited depending on how you set up your languages' URL scheme(in folders, per domains, etc.) in WPML->Languages.
If you want to get the values in a different language, you will need to use WPML API to switch to the desired language and then use the functions as you always do. Then you switch back to the current language.
- https://wpml.org/wpml-hook/wpml_switch_language/
- https://wpml.org/wpml-hook/wpml_current_language/
Can it be specified that a certain role has a predefined language?
No. Unless you use custom code to redirect the user to a specific language based on the role.
Define a exclusive layout for every language?
Do you mean layouts from Toolset Layouts? No, WPML and Toolset should pick the layout translation. But you can implement custom code to a different layout per language. Check this example where we use a different layout based on the post's category https://toolset.com/forums/topic/different-layout-for-post-category/#post-922718
I hope this helps. Let me know if you have any questions.