summaryrefslogtreecommitdiff
path: root/src/strgen/strgen.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-23 21:05:00 +0000
committerrubidium <rubidium@openttd.org>2009-04-23 21:05:00 +0000
commitff05dc844633aeb3b473ec403207beb6e63954bc (patch)
tree9cb91304e1bae9e82d0b1abd701bd14f9a00dc6c /src/strgen/strgen.h
parent208234a7a04027a2cff511447bc1f0ea2627741b (diff)
downloadopenttd-ff05dc844633aeb3b473ec403207beb6e63954bc.tar.xz
(svn r16129) -Feature-ish: configurable digit group separator per language with user override.
Diffstat (limited to 'src/strgen/strgen.h')
-rw-r--r--src/strgen/strgen.h28
1 files changed, 17 insertions, 11 deletions
diff --git a/src/strgen/strgen.h b/src/strgen/strgen.h
index 3bf104f8b..290ee1232 100644
--- a/src/strgen/strgen.h
+++ b/src/strgen/strgen.h
@@ -5,15 +5,21 @@
#ifndef STRGEN_H
#define STRGEN_H
+/** Header of a language file. */
struct LanguagePackHeader {
- uint32 ident; // 32-bits identifier
- uint32 version; // 32-bits of auto generated version info which is basically a hash of strings.h
- char name[32]; // the international name of this language
- char own_name[32]; // the localized name of this language
- char isocode[16]; // the ISO code for the language (not country code)
- uint16 offsets[32]; // the offsets
- byte plural_form; // plural form index
- byte text_dir; // default direction of the text
+ uint32 ident; ///< 32-bits identifier
+ uint32 version; ///< 32-bits of auto generated version info which is basically a hash of strings.h
+ char name[32]; ///< the international name of this language
+ char own_name[32]; ///< the localized name of this language
+ char isocode[16]; ///< the ISO code for the language (not country code)
+ uint16 offsets[32]; ///< the offsets
+
+ /** Thousand separator used for anything not currencies */
+ char digit_group_separator[8];
+ /** Thousand separator used for currencies */
+ char digit_group_separator_currency[8];
+ byte plural_form; ///< plural form index
+ byte text_dir; ///< default direction of the text
/**
* Windows language ID:
* Windows cannot and will not convert isocodes to something it can use to
@@ -22,9 +28,9 @@ struct LanguagePackHeader {
* what language it is in "Windows". The ID is the 'locale identifier' on:
* http://msdn.microsoft.com/en-us/library/ms776294.aspx
*/
- uint16 winlangid; // windows language id
- uint8 newgrflangid; // newgrf language id
- byte pad[3]; // pad header to be a multiple of 4
+ uint16 winlangid; ///< windows language id
+ uint8 newgrflangid; ///< newgrf language id
+ byte pad[3]; ///< pad header to be a multiple of 4
};
assert_compile(sizeof(LanguagePackHeader) % 4 == 0);