diff options
Diffstat (limited to 'src/strgen/strgen.h')
-rw-r--r-- | src/strgen/strgen.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/strgen/strgen.h b/src/strgen/strgen.h new file mode 100644 index 000000000..a38b1760d --- /dev/null +++ b/src/strgen/strgen.h @@ -0,0 +1,22 @@ +/* $Id$ */ + +/** @file strgen.h Language pack header for strgen (needs to match). */ + +#ifndef STRGEN_H +#define STRGEN_H + +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 + byte pad[2]; // pad header to be a multiple of 4 +}; + +assert_compile(sizeof(LanguagePackHeader) % 4 == 0); + +#endif /* STRGEN_H */ |