ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

language.h

Go to the documentation of this file.
00001 /* ScummVM - Graphic Adventure Engine
00002  *
00003  * ScummVM is the legal property of its developers, whose names
00004  * are too numerous to list here. Please refer to the COPYRIGHT
00005  * file distributed with this source distribution.
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation; either version 2
00010  * of the License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
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_ANY,     // Generic Chinese (when only one game version exist)
00037     ZH_CNA,
00038     ZH_TWN,
00039     HR_HRV,
00040     CZ_CZE,
00041     DA_DAN,
00042     NL_NLD,
00043     EN_ANY,     // Generic English (when only one game version exist)
00044     EN_GRB,
00045     EN_USA,
00046     ET_EST,
00047     FI_FIN,
00048     FR_FRA,
00049     DE_DEU,
00050     GR_GRE,
00051     HE_ISR,
00052     HU_HUN,
00053     IT_ITA,
00054     JA_JPN,
00055     KO_KOR,
00056     LV_LAT,
00057     NB_NOR,
00058     PL_POL,
00059     PT_BRA,
00060     PT_POR,
00061     RU_RUS,
00062     SK_SVK,
00063     ES_ESP,
00064     SE_SWE,
00065     TR_TUR,
00066     UA_UKR,
00067     SR_SER,
00068 
00069     UNK_LANG = -1   // Use default language (i.e. none specified)
00070 };
00071 
00072 struct LanguageDescription {
00073     const char *code;
00074     const char *unixLocale;
00075     const char *description;
00076     Language id;
00077 };
00078 
00079 extern const LanguageDescription g_languages[];
00080 
00081 
00083 extern Language parseLanguage(const String &str);
00084 extern Language parseLanguageFromLocale(const char *locale);
00085 extern const char *getLanguageCode(Language id);
00086 extern const char *getLanguageLocale(Language id);
00087 extern const char *getLanguageDescription(Language id);
00088 
00089 // TODO: Document this GUIO related function
00090 const String getGameGUIOptionsDescriptionLanguage(Common::Language lang);
00091 
00092 // TODO: Document this GUIO related function
00093 bool checkGameGUIOptionLanguage(Common::Language lang, const String &str);
00094 
00095 } // End of namespace Common
00096 
00097 #endif


Generated on Sat May 23 2020 05:00:30 for ResidualVM by doxygen 1.7.1
curved edge   curved edge