Site languages
Saurus CMS allows to set up multilingual websites. You can add new languages, translate software's glossary and system messages.
Multilingual websites
Different language versions of the website are called with ?lang parameter where the value represents the abbreviation of the language name. For example, to switch the site to English, you should write the following URL:
http://www.sitename.com/?lang=en
This sets a cookie in your web browser which is held during the browser session. To build the language navigation in your templates you can omit the site root: ?lang=en.
If you point directly to some page in the web content like http://www.sitename.com/?id=1234, you do not need to add the ?lang parameter. If the page is in different language than the users' current session, the session language is updated automatically.
Adding site languages
In order to add new language to your site, proceed as follows:- Choose Admin > Languages > Languages from tools menu. You will see a list of existing languages, site encodings and radio buttons which define which language is first displayed to the site visitors and which is used by default by the software user interface.
- Click N-button to create new language.
- From the dropdown choose you language from the list. This is necessary for CMS to match glossaries when importing translations. Fill in the language abbreviation and save.
Creating root section and system messages
Root (or home) section is parent to all 1-st level sections and is normally not displayed in the visible site hierarchy. System section is parent to Recycle Bin and all system messages.
To create root and system sections you need to:
- Go to Admin > Languages > Language settings.
- Choose your language form the dropdown top right.
- Click N-buttons to create the sections. You do not need to choose the templates or any options for the sections, just fill in the names.
- After creating the system section, you can click additional N-buttons to create sections which represents the Recycle Bin, Polls archive and several articles with system messages such as "Page not found".
In this page you can also insert special articles which are not located in a site hierarchy nor found by the site search. They can be displayed if you put direct links to them using the ID of the articles. These can be useful for adding site footer or banners for example.
Defining master templates
Each language version has its own master template which is used as default when the user has not overrided it in the section editor window. When you have created new language you also need to define the master template for this language version.
- Go to Admin > Templates > Master templates.
- Choose the option Saurus API and appropriate template name from the dropdown list. The option CMS refers to deprecated functionality and displays hard coded navigation and functionality.
Glossary
Saurus CMS uses a number system strings which can be translated using built-in glossary. Most common system strings like "Read more", "Results", "Add comments" can be found and changed via Admin > Languages > Glossary from the tools menu.
User interface language
The administrator can choose from list of languages when logging in to the system. The list contains all site languages which have enough amount of interface translations in the Glossary.
You can change the user interface language also by adding ?lang parameter to the Admin section:
http://www.sitename.com/admin/?lang=en
RSS