I have 3 contexts (web) (en) and (de) all context have different templates:
(web) has template "Web Template"
(en) has template "EN Template"
(de) has template "DE Template"
When you create a translation with the "Create translation" button from the Babel Extra it takes the template from the context from where you create the translation.
So when you create a translation via (web) context for (en) context, It gives the created translation the template "Web Template" but I would like it to give it the template "EN Template"
Is this possible?
Thanks Novolo, I also posted to Mikrobi at his blog maybe he will make it work in future releas.
-
☆ A M B ☆
- 3,141 Posts
What’s the differences in those templates?
Perhaps you can make clever use of context settings or lexicons to narrow it down to just one template? Context setting for a logo for example.
Mostly headers and footers and some getResourceField with tv’s per language context
-
☆ A M B ☆
- 179 Posts
Use the lexicon, like:
[[%key? &topic=`topicname` &namespace=`namespace_name` &language=`en`]]
Example long:
[[%welcome? &topic=`messages` &namespace=`myprojectname` &language=`en`]]
Change the cultureKey system setting with a plugin binded to "OnInitCulture" and you can drop the "&language=". You can forget about "&topic=" if you do nat have a large number of entries which need to have a little organisation.
Example short:
[[%welcome? &namespace=`myprojectname`]]
For "en" you set the value to: "Welcome!"
For "de" you set the value to: "Willkommen!"
More in the docs (
http://rtfm.modx.com/display/revolution20/Internationalization)
best
Oliver