Changes between Version 7 and Version 8 of code/doc/Language
- Timestamp:
- Apr 12, 2017, 11:15:53 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/doc/Language
v7 v8 1 1 = Language = 2 [[TracNav(TracNav/TOC_Development)]]3 2 4 3 == Description == 5 4 6 Language is a [wiki: singleton] that handles strings in different languages. It replaces hardcoded strings by labeled strings, where the coder only uses the label and the Language searches for the localised string in the [wiki:ConfigValueContainer configured] language-file. Every string has a fallback-value that is used if there is no localised version or no language was configured. The language can be configured by changing the ''language_'' entry in the [wiki:ConfigValueContainer config-file].5 Language is a [wiki:Singleton] that handles strings in different languages. It replaces hardcoded strings by labeled strings, where the coder only uses the label and the Language searches for the localised string in the [wiki:ConfigValueContainer configured] language-file. Every string has a fallback-value that is used if there is no localised version or no language was configured. The language can be configured by changing the ''language_'' entry in the [wiki:ConfigValueContainer config-file]. 7 6 8 7 A new language-entry can be added with the !AddLanguageEntry(label, fallbackstring) macro and the localisation can be retrieved with !GetLocalisation(label).