diff --git a/docs/LOOT Metadata Syntax.html b/docs/LOOT Metadata Syntax.html
index 1ab44556..fba0970e 100644
--- a/docs/LOOT Metadata Syntax.html
+++ b/docs/LOOT Metadata Syntax.html
@@ -582,6 +582,7 @@ msg:
| Korean | da
License
diff --git a/docs/LOOT Readme.html b/docs/LOOT Readme.html
index a662b8c2..711dcbe0 100644
--- a/docs/LOOT Readme.html
+++ b/docs/LOOT Readme.html
@@ -485,6 +485,7 @@ var {
Finnish: 3ventic
French: Kaos
German: lpradel
+ Korean: SteamB23
Polish: Łukasz Niemczyk
Russian: Tokc.D.K.
Spanish: Sharlikran
@@ -538,7 +539,7 @@ A copy of the license is included in the file named "GNU FDL v1.3.txt".
Additions
- - Danish translation.
+
- Danish and Korean translations.
- If LOOT can't detect any installed games, it now launches to the settings dialog, where the game settings can be edited to allow a game to be detected.
Copy Content menu item to copy the plugin list and all information it contains to the clipboard as YAML-formatted text.
- A
Refresh Content item has been added to the main menu, which re-scans plugin headers and updates LOOT's content.
diff --git a/src/api/api.cpp b/src/api/api.cpp
index 427c0ff6..00363c86 100644
--- a/src/api/api.cpp
+++ b/src/api/api.cpp
@@ -81,6 +81,7 @@ const unsigned int loot_lang_brazilian_portuguese = loot::Language::brazilian_po
const unsigned int loot_lang_finnish = loot::Language::finnish;
const unsigned int loot_lang_german = loot::Language::german;
const unsigned int loot_lang_danish = loot::Language::danish;
+const unsigned int loot_lang_korean = loot::Language::korean;
// LOOT cleanliness codes.
const unsigned int loot_needs_cleaning_no = 0;
diff --git a/src/api/api.h b/src/api/api.h
index 4b4de8e0..91f4de8d 100644
--- a/src/api/api.h
+++ b/src/api/api.h
@@ -243,6 +243,7 @@ extern "C"
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. */
LOOT_API extern const unsigned int loot_lang_danish; /**< Tells the API to preferentially select Danish messages. */
+ LOOT_API extern const unsigned int loot_lang_korean; /**< Tells the API to preferentially select Korean messages. */
/**@}*/
/**********************************************************************//**
diff --git a/src/archive.py b/src/archive.py
index 858a28c6..7400f310 100644
--- a/src/archive.py
+++ b/src/archive.py
@@ -126,7 +126,7 @@ def createAppArchive(archive_path):
shutil.copy( os.path.join('..', 'build', 'Release', 'icudtl.dat'), temp_path )
# Translation files.
- for lang in ['es', 'ru', 'fr', 'zh_CN', 'pl', 'pt_BR', 'fi', 'de', 'da']:
+ for lang in ['es', 'ru', 'fr', 'zh_CN', 'pl', 'pt_BR', 'fi', 'de', 'da', 'ko']:
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') )
diff --git a/src/backend/helpers.cpp b/src/backend/helpers.cpp
index b9a3b2c1..253d11f0 100644
--- a/src/backend/helpers.cpp
+++ b/src/backend/helpers.cpp
@@ -265,6 +265,8 @@ namespace loot {
Construct(Language::german);
else if (nameOrCode == Language(Language::danish).Name() || nameOrCode == Language(Language::danish).Locale())
Construct(Language::danish);
+ else if (nameOrCode == Language(Language::korean).Name() || nameOrCode == Language(Language::korean).Locale())
+ Construct(Language::korean);
else
Construct(Language::english);
}
@@ -307,6 +309,10 @@ namespace loot {
_name = "Dansk";
_locale = "da";
}
+ else if (_code == Language::korean) {
+ _name = "한국어";
+ _locale = "ko";
+ }
else {
_name = "English";
_locale = "en";
diff --git a/src/backend/helpers.h b/src/backend/helpers.h
index a5dfb2a6..cd187f88 100644
--- a/src/backend/helpers.h
+++ b/src/backend/helpers.h
@@ -87,6 +87,7 @@ namespace loot {
static const unsigned int finnish = 8;
static const unsigned int german = 9;
static const unsigned int danish = 10;
+ static const unsigned int korean = 11;
static std::vector Names() {
std::vector vec;
@@ -100,6 +101,7 @@ namespace loot {
vec.push_back(Language(Language::finnish).Name());
vec.push_back(Language(Language::german).Name());
vec.push_back(Language(Language::danish).Name());
+ vec.push_back(Language(Language::korean).Name());
return vec;
}
private:
diff --git a/src/installer.nsi b/src/installer.nsi
index d85162f4..d6de37d0 100644
--- a/src/installer.nsi
+++ b/src/installer.nsi
@@ -131,6 +131,7 @@ FunctionEnd
!insertmacro MUI_LANGUAGE "Polish"
!insertmacro MUI_LANGUAGE "Finnish"
!insertmacro MUI_LANGUAGE "Danish"
+ !insertmacro MUI_LANGUAGE "Korean"
!insertmacro MUI_RESERVEFILE_LANGDLL
;--------------------------------
@@ -270,19 +271,19 @@ FunctionEnd
;--------------------------------
;Korean (한국어) Strings
-
+
VIAddVersionKey /LANG=${LANG_KOREAN} "ProductName" "LOOT"
VIAddVersionKey /LANG=${LANG_KOREAN} "CompanyName" "LOOT Team"
VIAddVersionKey /LANG=${LANG_KOREAN} "LegalCopyright" "© 2009-2015 LOOT Team"
VIAddVersionKey /LANG=${LANG_KOREAN} "FileDescription" "LOOT 0.7.0 인스톨러"
VIAddVersionKey /LANG=${LANG_KOREAN} "FileVersion" "0.7.0"
-
+
LangString TEXT_MESSAGEBOX ${LANG_KOREAN} "Loot가 이미 설치되있으며, 진행하기 전에 제거해야합니다. $\n$\n'확인'을 클릭하면 이전 버전을 제거하며, '취소'를 클릭하면 업그레이드를 취소합니다."
LangString TEXT_RUN ${LANG_KOREAN} "LOOT 실행"
LangString TEXT_SHOWREADME ${LANG_KOREAN} "추가 정보 보기"
LangString TEXT_MAIN ${LANG_KOREAN} "유저리스트와 설정을 제외한 LOOT의 모든 파일."
LangString TEXT_USERFILES ${LANG_KOREAN} "LOOT의 유저리스트와 설정 파일."
-
+
;--------------------------------
;Initialisations
@@ -383,6 +384,8 @@ FunctionEnd
File "..\resources\l10n\de\LC_MESSAGES\loot.mo"
SetOutPath "$INSTDIR\resources\l10n\da\LC_MESSAGES"
File "..\resources\l10n\da\LC_MESSAGES\loot.mo"
+ SetOutPath "$INSTDIR\resources\l10n\ko\LC_MESSAGES"
+ File "..\resources\l10n\ko\LC_MESSAGES\loot.mo"
;Install settings file.
@@ -435,6 +438,11 @@ FunctionEnd
Push "Language:"
Push "Language: da"
Call ReplaceLineStr
+ StrCmp $LANGUAGE ${LANG_KOREAN} 0 +5
+ Push "$LOCALAPPDATA\LOOT\settings.yaml"
+ Push "Language:"
+ Push "Language: ko"
+ Call ReplaceLineStr
;Add Start Menu shortcuts. Set out path back to $INSTDIR otherwise the shortcuts start in the wrong place.
;Set Shell Var Context to all so that shortcuts are installed for all users, not just admin.
@@ -515,6 +523,7 @@ FunctionEnd
Delete "$INSTDIR\resources\l10n\fi\LC_MESSAGES\loot.mo"
Delete "$INSTDIR\resources\l10n\de\LC_MESSAGES\loot.mo"
Delete "$INSTDIR\resources\l10n\da\LC_MESSAGES\loot.mo"
+ Delete "$INSTDIR\resources\l10n\ko\LC_MESSAGES\loot.mo"
RMDir "$INSTDIR\resources\l10n\ru\LC_MESSAGES"
RMDir "$INSTDIR\resources\l10n\ru"
RMDir "$INSTDIR\resources\l10n\es\LC_MESSAGES"
@@ -533,6 +542,8 @@ FunctionEnd
RMDir "$INSTDIR\resources\l10n\de"
RMDir "$INSTDIR\resources\l10n\da\LC_MESSAGES"
RMDir "$INSTDIR\resources\l10n\da"
+ RMDir "$INSTDIR\resources\l10n\ko\LC_MESSAGES"
+ RMDir "$INSTDIR\resources\l10n\ko"
RMDir "$INSTDIR\resources\l10n"
RMDir "$INSTDIR\resources"
|