Added German language.

This commit is contained in:
lpradel
2014-07-05 18:24:46 +02:00
parent f8a8c4f5db
commit ee530bd341
5 changed files with 12 additions and 0 deletions
+1
View File
@@ -81,6 +81,7 @@ const unsigned int loot_lang_chinese = loot::Language::chinese;
const unsigned int loot_lang_polish = loot::Language::polish;
const unsigned int loot_lang_brazilian_portuguese = loot::Language::brazilian_portuguese;
const unsigned int loot_lang_finnish = loot::Language::finnish;
const unsigned int loot_lang_german = loot::Language::german;
// LOOT cleanliness codes.
const unsigned int loot_needs_cleaning_no = 0;
+1
View File
@@ -179,6 +179,7 @@ LOOT_API extern const unsigned int loot_lang_chinese; ///< Tells the API to pre
LOOT_API extern const unsigned int loot_lang_polish; ///< Tells the API to preferentially select Polish messages.
LOOT_API extern const unsigned int loot_lang_brazilian_portuguese; ///< Tells the API to preferentially select Brazilian Portuguese messages.
LOOT_API extern const unsigned int loot_lang_finnish; ///< Tells the API to preferentially select Finnish messages.
LOOT_API extern const unsigned int loot_lang_german; ///< Tells the API to preferentially select German messages.
///@}
/*********************************//**
+6
View File
@@ -242,6 +242,8 @@ namespace loot {
Construct(Language::brazilian_portuguese);
else if (nameOrCode == Language(Language::finnish).Name() || nameOrCode == Language(Language::finnish).Locale())
Construct(Language::finnish);
else if (nameOrCode == Language(Language::german).Name() || nameOrCode == Language(Language::german).Locale())
Construct(Language::german);
else
Construct(Language::english);
}
@@ -276,6 +278,10 @@ namespace loot {
_name = "suomi";
_locale = "fi";
}
else if (_code == Language::german) {
_name = "Deutsch";
_locale = "de";
}
else {
_name = "English";
_locale = "en";
+2
View File
@@ -79,6 +79,7 @@ namespace loot {
static const unsigned int polish = 6;
static const unsigned int brazilian_portuguese = 7;
static const unsigned int finnish = 8;
static const unsigned int german = 9;
static std::vector<std::string> Names() {
std::vector<std::string> vec;
@@ -90,6 +91,7 @@ namespace loot {
vec.push_back(Language(Language::polish).Name());
vec.push_back(Language(Language::brazilian_portuguese).Name());
vec.push_back(Language(Language::finnish).Name());
vec.push_back(Language(Language::german).Name());
return vec;
}
private:
+2
View File
@@ -302,6 +302,8 @@ bool LOOT::OnInit() {
wxLang = wxLANGUAGE_PORTUGUESE_BRAZILIAN;
else if (lang.Code() == loot::Language::finnish)
wxLang = wxLANGUAGE_FINNISH;
else if (lang.Code() == loot::Language::german)
wxLang = wxLANGUAGE_GERMAN;
}
//Boost.Locale initialisation: Specify location of language dictionaries.