Finished implementing Korean support.

This commit is contained in:
Oliver Hamlet
2015-01-06 19:50:01 +00:00
parent 809f8bef3b
commit 87b46adb5d
8 changed files with 28 additions and 5 deletions
+1
View File
@@ -582,6 +582,7 @@ msg:
<tr><td>Spanish<td>es
<tr><td>German<td>de
<tr><td>Danish<td>da
<tr><td>Korean<td>da
</table>
<h2 id="license">License</h2>
+2 -1
View File
@@ -485,6 +485,7 @@ var {
<li>Finnish: 3ventic
<li>French: Kaos
<li>German: lpradel
<li>Korean: SteamB23
<li>Polish: Łukasz Niemczyk
<li>Russian: Tokc.D.K.
<li>Spanish: Sharlikran
@@ -538,7 +539,7 @@ A copy of the license is included in the file named "GNU FDL v1.3.txt".</blockqu
</ul>
<h4>Additions</h4>
<ul>
<li>Danish translation.
<li>Danish and Korean translations.
<li>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.
<li><q>Copy Content</q> menu item to copy the plugin list and all information it contains to the clipboard as YAML-formatted text.
<li>A <q>Refresh Content</q> item has been added to the main menu, which re-scans plugin headers and updates LOOT's content.
+1
View File
@@ -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;
+1
View File
@@ -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. */
/**@}*/
/**********************************************************************//**
+1 -1
View File
@@ -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') )
+6
View File
@@ -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";
+2
View File
@@ -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<std::string> Names() {
std::vector<std::string> 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:
+14 -3
View File
@@ -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"