Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef COMMON_LANGUAGE_H
00024 #define COMMON_LANGUAGE_H
00025
00026 #include "common/scummsys.h"
00027
00028 namespace Common {
00029
00030 class String;
00031
00035 enum Language {
00036 ZH_CNA,
00037 ZH_TWN,
00038 HR_HRV,
00039 CZ_CZE,
00040 DA_DAN,
00041 NL_NLD,
00042 EN_ANY,
00043 EN_GRB,
00044 EN_USA,
00045 ET_EST,
00046 FI_FIN,
00047 FR_FRA,
00048 DE_DEU,
00049 GR_GRE,
00050 HE_ISR,
00051 HU_HUN,
00052 IT_ITA,
00053 JA_JPN,
00054 KO_KOR,
00055 LV_LAT,
00056 NB_NOR,
00057 PL_POL,
00058 PT_BRA,
00059 PT_POR,
00060 RU_RUS,
00061 SK_SVK,
00062 ES_ESP,
00063 SE_SWE,
00064 UA_UKR,
00065
00066 UNK_LANG = -1
00067 };
00068
00069 struct LanguageDescription {
00070 const char *code;
00071 const char *unixLocale;
00072 const char *description;
00073 Language id;
00074 };
00075
00076 extern const LanguageDescription g_languages[];
00077
00078
00080 extern Language parseLanguage(const String &str);
00081 extern Language parseLanguageFromLocale(const char *locale);
00082 extern const char *getLanguageCode(Language id);
00083 extern const char *getLanguageLocale(Language id);
00084 extern const char *getLanguageDescription(Language id);
00085
00086
00087 const String getGameGUIOptionsDescriptionLanguage(Common::Language lang);
00088
00089
00090 bool checkGameGUIOptionLanguage(Common::Language lang, const String &str);
00091
00092 }
00093
00094 #endif