mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Merge pull request #182 from lpradel/german-translation
Added: German translation
This commit is contained in:
@@ -447,6 +447,7 @@ both get displayed as
|
||||
<tr><td>Brazilian Portuguese<td>pt_BR
|
||||
<tr><td>Russian<td>ru
|
||||
<tr><td>Spanish<td>es
|
||||
<tr><td>German<td>de
|
||||
</table>
|
||||
|
||||
<h2 id="license">License</h2>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
///@}
|
||||
|
||||
/*********************************//**
|
||||
|
||||
+3
-1
@@ -18,6 +18,8 @@
|
||||
# resources/l10n/pl/LC_MESSAGES/wxstd.mo
|
||||
# resources/l10n/fi/LC_MESSAGES/loot.mo
|
||||
# resources/l10n/fi/LC_MESSAGES/wxstd.mo
|
||||
# resources/l10n/de/LC_MESSAGES/loot.mo
|
||||
# resources/l10n/de/LC_MESSAGES/wxstd.mo
|
||||
# resources/report/report.html
|
||||
# resources/report/require.js
|
||||
# resources/report/polyfill.js
|
||||
@@ -70,7 +72,7 @@ if not os.path.exists(temp_path):
|
||||
# Now copy everything into the temporary folder.
|
||||
shutil.copy( os.path.join('..', 'build', 'LOOT.exe'), temp_path )
|
||||
|
||||
for lang in ['es', 'ru', 'fr', 'zh_CN', 'pl', 'pt_BR', 'fi']:
|
||||
for lang in ['es', 'ru', 'fr', 'zh_CN', 'pl', 'pt_BR', 'fi', 'de']:
|
||||
os.makedirs(os.path.join(temp_path, 'resources', 'l10n', lang, 'LC_MESSAGES'))
|
||||
shutil.copy( os.path.join('..', 'resources', 'l10n', lang, 'LC_MESSAGES', 'loot.mo'), os.path.join(temp_path, 'resources', 'l10n', lang, 'LC_MESSAGES') )
|
||||
shutil.copy( os.path.join('..', 'resources', 'l10n', lang, 'LC_MESSAGES', 'wxstd.mo'), os.path.join(temp_path, 'resources', 'l10n', lang, 'LC_MESSAGES') )
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -287,6 +287,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.
|
||||
|
||||
+26
-1
@@ -124,7 +124,7 @@ FunctionEnd
|
||||
|
||||
!insertmacro MUI_LANGUAGE "English"
|
||||
!insertmacro MUI_LANGUAGE "Russian"
|
||||
;!insertmacro MUI_LANGUAGE "German"
|
||||
!insertmacro MUI_LANGUAGE "German"
|
||||
!insertmacro MUI_LANGUAGE "Spanish"
|
||||
!insertmacro MUI_LANGUAGE "SimpChinese"
|
||||
!insertmacro MUI_LANGUAGE "French"
|
||||
@@ -237,6 +237,21 @@ FunctionEnd
|
||||
LangString TEXT_MAIN ${LANG_FINNISH} "Kaikki LOOTin tiedostot paitsi käyttäjälistat ja asetukset."
|
||||
LangString TEXT_USERFILES ${LANG_FINNISH} "LOOTin käyttäjälistat ja asetukset."
|
||||
|
||||
;--------------------------------
|
||||
;German Strings
|
||||
|
||||
VIAddVersionKey /LANG=${LANG_GERMAN} "ProductName" "LOOT"
|
||||
VIAddVersionKey /LANG=${LANG_GERMAN} "CompanyName" "LOOT Team"
|
||||
VIAddVersionKey /LANG=${LANG_GERMAN} "LegalCopyright" "© 2009-2014 LOOT Team"
|
||||
VIAddVersionKey /LANG=${LANG_GERMAN} "FileDescription" "Installationsprogramm LOOT 0.6.0"
|
||||
VIAddVersionKey /LANG=${LANG_GERMAN} "FileVersion" "0.6.0"
|
||||
|
||||
LangString TEXT_MESSAGEBOX ${LANG_GERMAN} "LOOT ist bereits installiert und muss zunächst deinstalliert werden. $\n$\nKlicken Sie auf 'OK', um die frühere Version zu deinstallieren oder auf 'Abbrechen', um diese Installation abzubrechen."
|
||||
LangString TEXT_RUN ${LANG_GERMAN} "LOOT starten"
|
||||
LangString TEXT_SHOWREADME ${LANG_GERMAN} "Readme öffnen"
|
||||
LangString TEXT_MAIN ${LANG_GERMAN} "Alle LOOT Dateien mit Ausnahme der Benutzerlisten-Dateien und Konfigurationsdateien."
|
||||
LangString TEXT_USERFILES ${LANG_GERMAN} "LOOT Benutzerlisten-Dateien und Konfigurationsdateien."
|
||||
|
||||
;--------------------------------
|
||||
;Initialisations
|
||||
|
||||
@@ -326,6 +341,9 @@ FunctionEnd
|
||||
SetOutPath "$INSTDIR\resources\l10n\fi\LC_MESSAGES"
|
||||
File "..\resources\l10n\fi\LC_MESSAGES\wxstd.mo"
|
||||
File "..\resources\l10n\fi\LC_MESSAGES\loot.mo"
|
||||
SetOutPath "$INSTDIR\resources\l10n\de\LC_MESSAGES"
|
||||
File "..\resources\l10n\de\LC_MESSAGES\wxstd.mo"
|
||||
File "..\resources\l10n\de\LC_MESSAGES\loot.mo"
|
||||
|
||||
|
||||
;Install settings file.
|
||||
@@ -367,6 +385,11 @@ FunctionEnd
|
||||
Push "$LOCALAPPDATA\LOOT\settings.yaml"
|
||||
Push "Language:"
|
||||
Push "Language: fi"
|
||||
Call ReplaceLineStr
|
||||
StrCmp $LANGUAGE ${LANG_GERMAN} 0 +5
|
||||
Push "$LOCALAPPDATA\LOOT\settings.yaml"
|
||||
Push "Language:"
|
||||
Push "Language: de"
|
||||
Call ReplaceLineStr
|
||||
|
||||
;Add Start Menu shortcuts. Set out path back to $INSTDIR otherwise the shortcuts start in the wrong place.
|
||||
@@ -457,6 +480,8 @@ FunctionEnd
|
||||
RMDir "$INSTDIR\resources\l10n\pt_BR"
|
||||
RMDir "$INSTDIR\resources\l10n\fi\LC_MESSAGES"
|
||||
RMDir "$INSTDIR\resources\l10n\fi"
|
||||
RMDir "$INSTDIR\resources\l10n\de\LC_MESSAGES"
|
||||
RMDir "$INSTDIR\resources\l10n\de"
|
||||
RMDir "$INSTDIR\resources\l10n"
|
||||
RMDir "$INSTDIR\resources"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user