Region & Language
The system has a comprehensive setup for defining regions and languages with an expensive list of properties attached to it:
| Value | Description |
|---|---|
| @decimal | Decimal separator [dot | comma] |
| @thousand | Thousand group separator [dot | comma | space | aprostrophe] |
| @datetime | Datetime format [US | EU | RAW] |
| @timezone | Timezone (+)HH:mm |
| @timezoneCity | The city defining the timezone. |
| @calendar | Calendar system [christian | buddhist | muslim] |
| @firstdayofweek | First day of week [monday | sunday] |
The settings may be included in the _directory.xml file, in a separate settings.xml file under /setup directory or may rely on system builtin settings.
<bs:lang>
Only shown in this language.
@code
Language code.
@default
Is default language [true].
<?xml version="1.0" encoding="UTF-8"?>
−
<bs:lang code="en" xmlns:bs="http://www.bootstrap-cms.org">
<bs:h1>Hello</bs:h1>
<bs:p>there...</bs:p>
</bs:lang>
[2 lines]
Hello there...
<bs:lang-group>
<bs:region>
Only shown in this region.
@code
Region (country) code.
@default
Is default region [true].
<?xml version="1.0" encoding="UTF-8"?>
−
<bs:region code="UK" xmlns:bs="http://www.bootstrap-cms.org">
<bs:h1>Hello</bs:h1>
<bs:p>there...</bs:p>
</bs:region>
[2 lines]
Hello there...
<bs:region-group>
Localization
The location system consist of 3 parts
- The settings.xml file defining the regions and languages
- The input controls displaying data in line of regional settings.
- The <bs:text> element taking care of regional settings.
<bs:text>
@datetype
If the @datatype attributes is set, then numeric and datetime displays will be adjusted to regional settings.
Standard Text
The system has a number of builtin but configuarable standard text labels for forms, tables, etc.
Standard Messages
The system has a number builtin but configuarable standard server messages.