14 #include <unicode/coll.h>
25 static const uint32_t
IDENT = 0x474E414C;
71 if (strcmp(gender_str, this->genders[i]) == 0)
return i;
84 if (strcmp(case_str, this->cases[i]) == 0)
return i;
94 std::filesystem::path
file;
LanguageList _languages
The actual list of language meta data.
const LanguageMetadata * _current_language
The currently loaded language.
const LanguageMetadata * GetLanguage(uint8_t newgrflangid)
Get the language with the given NewGRF language ID.
static const uint8_t MAX_NUM_GENDERS
Maximum number of supported genders.
std::unique_ptr< icu::Collator > _current_collator
Collator for the language currently in use.
std::vector< LanguageMetadata > LanguageList
Type for the list of language meta data.
static const uint8_t CASE_GENDER_LEN
The (maximum) length of a case/gender string.
bool ReadLanguagePack(const LanguageMetadata *lang)
Read a particular language.
static const uint8_t MAX_NUM_CASES
Maximum number of supported cases.
Types related to strings.
@ TEXT_TAB_END
End of language files.