ImpressCMS has the Multilanguage feature, but it is referred to the use in the core or in the modules. If you like to use multilenguage for the themes you must make some changes in them. Of course, you could modify the ImpressCMS code too but it is more easy this possibility Smarty bassed. An ImpressCMS_theme is basically a html document with instructions specially make for Smarty and it has two main sections: HTML code and Smarty Code. This changes automatically according site content; however the HTML code stay without modifications and normally the images, links and texts that are not to generate by ImpressCMS (they are not dynamic) stay thus in all sections. It do a few more difficult to work in environments multi-language. Imagine that you have a theme with internal links supported by images; if an user request the site in English and the images look with Spanish text, although all site are translated the images will not change. It is the utility of this way that you will read.
The "theme.html" file
In this file we take the control of the functionality required and I tell to you that I had used this way a lot of times with success. Open the file theme.html and in the section add this code:
Preparing several languages
We'd suppose that the theme header contains a welcome text and we want prepare this text in the adequate language. It is very easy! You can start making different folders or files inside the theme folder, one for each language. Make (in the becoming folder) a file: welcome.html, for example. It only contains the text that you want to show in the right language, then in your file theme.html, just where you want to show the text you change the text to this code:
This little tutorial is an adaptation to ImpressCMS of the work published in Xoops-México. You can read the original tutorial (in spanish) here Credits: BITC3R0 Category: Themes Category: Welcome Index Page <[Languages ]>