mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Merge pull request #105 from Trollmen/master
Polish translation by TrollmenX Aka Łukasz Niemczyk
This commit is contained in:
@@ -440,6 +440,7 @@ both get displayed as
|
||||
<tr><td>Russian<td>rus
|
||||
<tr><td>French<td>fra
|
||||
<tr><td>Chinese<td>zho
|
||||
<tr><td>Polish<td>pol
|
||||
</table>
|
||||
|
||||
<h2 id="license">License</h2>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -79,6 +79,7 @@ const unsigned int boss_lang_spanish = boss::g_lang_spanish;
|
||||
const unsigned int boss_lang_russian = boss::g_lang_russian;
|
||||
const unsigned int boss_lang_french = boss::g_lang_french;
|
||||
const unsigned int boss_lang_chinese = boss::g_lang_chinese;
|
||||
const unsigned int boss_lang_polish = boss::g_lang_polish;
|
||||
|
||||
// BOSS cleanliness codes.
|
||||
const unsigned int boss_needs_cleaning_no = 0;
|
||||
|
||||
@@ -175,6 +175,7 @@ BOSS_API extern const unsigned int boss_lang_spanish; ///< Tells the API to pre
|
||||
BOSS_API extern const unsigned int boss_lang_russian; ///< Tells the API to preferentially select Russian messages.
|
||||
BOSS_API extern const unsigned int boss_lang_french; ///< Tells the API to preferentially select French messages.
|
||||
BOSS_API extern const unsigned int boss_lang_chinese; ///< Tells the API to preferentially select Chinese messages.
|
||||
BOSS_API extern const unsigned int boss_lang_polish; ///< Tells the API to preferentially select Polish messages.
|
||||
///@}
|
||||
|
||||
/*********************************//**
|
||||
|
||||
+3
-1
@@ -14,6 +14,8 @@
|
||||
# resources/l10n/fr/LC_MESSAGES/wxstd.mo
|
||||
# resources/l10n/zh/LC_MESSAGES/boss.mo
|
||||
# resources/l10n/zh/LC_MESSAGES/wxstd.mo
|
||||
# resources/l10n/pl/LC_MESSAGES/boss.mo
|
||||
# resources/l10n/pl/LC_MESSAGES/wxstd.mo
|
||||
# resources/polyfill.js
|
||||
# resources/script.js
|
||||
# resources/style.css
|
||||
@@ -63,7 +65,7 @@ if not os.path.exists(temp_path):
|
||||
# Now copy everything into the temporary folder.
|
||||
shutil.copy( os.path.join('..', 'build', 'BOSS.exe'), temp_path )
|
||||
|
||||
for lang in ['es', 'ru', 'fr', 'zh']:
|
||||
for lang in ['es', 'ru', 'fr', 'zh', 'pl']:
|
||||
os.makedirs(os.path.join(temp_path, 'resources', 'l10n', lang, 'LC_MESSAGES'))
|
||||
shutil.copy( os.path.join('..', 'resources', 'l10n', lang, 'LC_MESSAGES', 'boss.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') )
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace boss {
|
||||
const unsigned int g_lang_russian = 3;
|
||||
const unsigned int g_lang_french = 4;
|
||||
const unsigned int g_lang_chinese = 5;
|
||||
|
||||
const unsigned int g_lang_polish = 6;
|
||||
//Version numbers.
|
||||
const unsigned int g_version_major = 3;
|
||||
const unsigned int g_version_minor = 0;
|
||||
|
||||
@@ -47,6 +47,7 @@ namespace boss {
|
||||
extern const unsigned int g_lang_russian;
|
||||
extern const unsigned int g_lang_french;
|
||||
extern const unsigned int g_lang_chinese;
|
||||
extern const unsigned int g_lang_polish;
|
||||
|
||||
//Version numbers.
|
||||
extern const unsigned int g_version_major;
|
||||
|
||||
@@ -247,6 +247,8 @@ namespace boss {
|
||||
Construct(g_lang_french);
|
||||
else if (nameOrISOCode == "简体中文" || nameOrISOCode == "zho")
|
||||
Construct(g_lang_chinese);
|
||||
else if (nameOrISOCode == "Polski" || nameOrISOCode == "pol")
|
||||
Construct(g_lang_polish);
|
||||
else
|
||||
Construct(g_lang_any);
|
||||
}
|
||||
@@ -283,6 +285,11 @@ namespace boss {
|
||||
_isoCode = "zho";
|
||||
_locale = "zh.UTF-8";
|
||||
}
|
||||
else if (_code == g_lang_polish) {
|
||||
_name = "Polski";
|
||||
_isoCode = "pol";
|
||||
_locale = "pl.UTF-8";
|
||||
}
|
||||
}
|
||||
|
||||
unsigned int Language::Code() const {
|
||||
|
||||
@@ -84,6 +84,7 @@ namespace boss {
|
||||
vec.push_back(Language(g_lang_russian).Name());
|
||||
vec.push_back(Language(g_lang_french).Name());
|
||||
vec.push_back(Language(g_lang_chinese).Name());
|
||||
vec.push_back(Language(g_lang_polish).Name());
|
||||
return vec;
|
||||
}
|
||||
private:
|
||||
|
||||
@@ -249,6 +249,8 @@ bool BossGUI::OnInit() {
|
||||
wxLang = wxLANGUAGE_FRENCH;
|
||||
else if (lang.Code() == boss::g_lang_chinese)
|
||||
wxLang = wxLANGUAGE_CHINESE;
|
||||
else if (lang.Code() == boss::g_lang_polish)
|
||||
wxLang = wxLANGUAGE_POLISH;
|
||||
}
|
||||
|
||||
//Boost.Locale initialisation: Specify location of language dictionaries.
|
||||
|
||||
+30
-2
@@ -127,6 +127,7 @@ FunctionEnd
|
||||
!insertmacro MUI_LANGUAGE "Spanish"
|
||||
!insertmacro MUI_LANGUAGE "SimpChinese"
|
||||
!insertmacro MUI_LANGUAGE "French"
|
||||
!insertmacro MUI_LANGUAGE "Polish"
|
||||
!insertmacro MUI_RESERVEFILE_LANGDLL
|
||||
|
||||
;--------------------------------
|
||||
@@ -219,6 +220,21 @@ FunctionEnd
|
||||
LangString TEXT_MAIN ${LANG_SIMPCHINESE} "所有BOSS文件(除userlist和配置文件)"
|
||||
LangString TEXT_USERFILES ${LANG_SIMPCHINESE} "BOSS的userlist和配置文件。"
|
||||
|
||||
;--------------------------------
|
||||
;Polish (POLSKI) Strings
|
||||
|
||||
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "BOSS"
|
||||
VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "BOSS Development Team"
|
||||
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "© 2009-2014 BOSS Development Team"
|
||||
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "Instalator dla BOSS 3.0.0"
|
||||
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "3.0.0"
|
||||
|
||||
LangString TEXT_MESSAGEBOX ${LANG_ENGLISH} "BOSS jest już zainstalowany i musi zostać odinstalowany przed instalowaniem tej wersji. $\n$\nClick `OK` aby odinstalować lub `Cancel` aby anulować aktualizację."
|
||||
LangString TEXT_RUN ${LANG_ENGLISH}" Uruchom BOSS"
|
||||
LangString TEXT_SHOWREADME ${LANG_ENGLISH} "Czytaj Readme"
|
||||
LangString TEXT_MAIN ${LANG_ENGLISH} "Wszystkie pliki BOSS bez ustawień i plików użytkownika."
|
||||
LangString TEXT_USERFILES ${LANG_ENGLISH} "Wszystkie pliki BOSS oraz ustawienia użytkownika ."
|
||||
|
||||
;--------------------------------
|
||||
;Initialisations
|
||||
|
||||
@@ -300,7 +316,10 @@ FunctionEnd
|
||||
SetOutPath "$INSTDIR\resources\l10n\fr\LC_MESSAGES"
|
||||
File "..\resources\l10n\fr\LC_MESSAGES\wxstd.mo"
|
||||
File "..\resources\l10n\fr\LC_MESSAGES\boss.mo"
|
||||
|
||||
SetOutPath "$INSTDIR\resources\l10n\pl\LC_MESSAGES"
|
||||
File "..\resources\l10n\pl\LC_MESSAGES\wxstd.mo"
|
||||
File "..\resources\l10n\pl\LC_MESSAGES\boss.mo"
|
||||
|
||||
;Install settings file.
|
||||
SetOutPath "$LOCALAPPDATA\BOSS"
|
||||
File "..\resources\settings.yaml"
|
||||
@@ -331,7 +350,12 @@ FunctionEnd
|
||||
Push "Language:"
|
||||
Push "Language: fra"
|
||||
Call ReplaceLineStr
|
||||
|
||||
StrCmp $LANGUAGE ${LANG_POLISH} 0 +5
|
||||
Push "$LOCALAPPDATA\BOSS\settings.yaml"
|
||||
Push "Language:"
|
||||
Push "Language: pol"
|
||||
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.
|
||||
SetOutPath "$INSTDIR"
|
||||
@@ -400,6 +424,8 @@ FunctionEnd
|
||||
Delete "$INSTDIR\resources\l10n\zh\LC_MESSAGES\wxstd.mo"
|
||||
Delete "$INSTDIR\resources\l10n\fr\LC_MESSAGES\boss.mo"
|
||||
Delete "$INSTDIR\resources\l10n\fr\LC_MESSAGES\wxstd.mo"
|
||||
Delete "$INSTDIR\resources\l10n\pl\LC_MESSAGES\boss.mo"
|
||||
Delete "$INSTDIR\resources\l10n\pl\LC_MESSAGES\wxstd.mo"
|
||||
RMDir "$INSTDIR\resources\l10n\ru\LC_MESSAGES"
|
||||
RMDir "$INSTDIR\resources\l10n\ru"
|
||||
RMDir "$INSTDIR\resources\l10n\es\LC_MESSAGES"
|
||||
@@ -410,6 +436,8 @@ FunctionEnd
|
||||
RMDir "$INSTDIR\resources\l10n\zh"
|
||||
RMDir "$INSTDIR\resources\l10n\fr\LC_MESSAGES"
|
||||
RMDir "$INSTDIR\resources\l10n\fr"
|
||||
RMDir "$INSTDIR\resources\l10n\pl\LC_MESSAGES"
|
||||
RMDir "$INSTDIR\resources\l10n\pl"
|
||||
RMDir "$INSTDIR\resources\l10n"
|
||||
RMDir "$INSTDIR\resources"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user