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_CNA,
00037     ZH_TWN,
00038     HR_HRV,
00039     CZ_CZE,
00040     DA_DAN,
00041     NL_NLD,
00042     EN_ANY,     // Generic English (when only one game version exist)
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   // Use default language (i.e. none specified)
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 // TODO: Document this GUIO related function
00087 const String getGameGUIOptionsDescriptionLanguage(Common::Language lang);
00088 
00089 // TODO: Document this GUIO related function
00090 bool checkGameGUIOptionLanguage(Common::Language lang, const String &str);
00091 
00092 } // End of namespace Common
00093 
00094 #endif


Generated on Sat Mar 23 2019 05:01:45 for ResidualVM by doxygen 1.7.1
curved edge   curved edge