Is it possible to set locale to fetch for particular template and then reaming from other template
Added by twid twid over 10 years ago
Sorry question is not clear, But let me try to clarify my design.
I want to store page layout in one say template-layout.xml file, for example home page is in Home-layout.xml.
And other file for languages for example: english, russian, etc for i18n.
So now my scenario is to fetch layout from one template file(Home-layout.xml), Which is in default language(english) only.
And string used in that layout from respective language file for example Home_en.xml.
Can this be done?
Best Regards
Twid
Replies (3)
RE: Is it possible to set locale to fetch for particular template and then reaming from other template - Added by Koen Deforche over 10 years ago
Hey,
Yes, that's exactly what we do as well.
Regards,
koen
RE: Is it possible to set locale to fetch for particular template and then reaming from other template - Added by twid twid over 10 years ago
That's really very helpful...I need to examine Source tree, If don't mind can you point me to right direction
RE: Is it possible to set locale to fetch for particular template and then reaming from other template - Added by Wim Dumon over 10 years ago
In the Wt source files, you can take a look at src/xml/auth_css_theme.xml and auth_strings.xml. The auth_css_theme file uses the WTemplate tr function to look up translations for the placeholders of the strings.
BR,
Wim.