(svn r21216) -Feature: [NewGRF] Allow specifying a "choice list" for plurals

This commit is contained in:
rubidium
2010-11-16 21:03:39 +00:00
parent ebf7b915b0
commit 18f0f1d81d
3 changed files with 26 additions and 8 deletions

View File

@@ -59,6 +59,7 @@ struct LanguageMap {
* both cases. Thus we are basically implementing a multi-map. */
SmallVector<Mapping, 1> gender_map; ///< Mapping of NewGRF and OpenTTD IDs for genders.
SmallVector<Mapping, 1> case_map; ///< Mapping of NewGRF and OpenTTD IDs for cases.
int plural_form; ///< The plural form used for this language.
int GetMapping(int newgrf_id, bool gender) const;
int GetReverseMapping(int openttd_id, bool gender) const;