mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Updated packaging scripts to include Chinese translation.
This commit is contained in:
+6
-9
@@ -12,6 +12,8 @@
|
||||
# resources/l10n/ru/LC_MESSAGES/wxstd.mo
|
||||
# resources/l10n/fr/LC_MESSAGES/boss.mo
|
||||
# resources/l10n/fr/LC_MESSAGES/wxstd.mo
|
||||
# resources/l10n/zh/LC_MESSAGES/boss.mo
|
||||
# resources/l10n/zh/LC_MESSAGES/wxstd.mo
|
||||
# resources/polyfill.js
|
||||
# resources/script.js
|
||||
# resources/style.css
|
||||
@@ -61,15 +63,10 @@ if not os.path.exists(temp_path):
|
||||
# Now copy everything into the temporary folder.
|
||||
shutil.copy( os.path.join('..', 'build', 'BOSS.exe'), temp_path )
|
||||
|
||||
os.makedirs(os.path.join(temp_path, 'resources', 'l10n', 'es', 'LC_MESSAGES'))
|
||||
os.makedirs(os.path.join(temp_path, 'resources', 'l10n', 'ru', 'LC_MESSAGES'))
|
||||
os.makedirs(os.path.join(temp_path, 'resources', 'l10n', 'fr', 'LC_MESSAGES'))
|
||||
shutil.copy( os.path.join('..', 'resources', 'l10n', 'es', 'LC_MESSAGES', 'boss.mo'), os.path.join(temp_path, 'resources', 'l10n', 'es', 'LC_MESSAGES') )
|
||||
shutil.copy( os.path.join('..', 'resources', 'l10n', 'es', 'LC_MESSAGES', 'wxstd.mo'), os.path.join(temp_path, 'resources', 'l10n', 'es', 'LC_MESSAGES') )
|
||||
shutil.copy( os.path.join('..', 'resources', 'l10n', 'ru', 'LC_MESSAGES', 'boss.mo'), os.path.join(temp_path, 'resources', 'l10n', 'ru', 'LC_MESSAGES') )
|
||||
shutil.copy( os.path.join('..', 'resources', 'l10n', 'ru', 'LC_MESSAGES', 'wxstd.mo'), os.path.join(temp_path, 'resources', 'l10n', 'ru', 'LC_MESSAGES') )
|
||||
shutil.copy( os.path.join('..', 'resources', 'l10n', 'fr', 'LC_MESSAGES', 'boss.mo'), os.path.join(temp_path, 'resources', 'l10n', 'fr', 'LC_MESSAGES') )
|
||||
shutil.copy( os.path.join('..', 'resources', 'l10n', 'fr', 'LC_MESSAGES', 'wxstd.mo'), os.path.join(temp_path, 'resources', 'l10n', 'fr', 'LC_MESSAGES') )
|
||||
for lang in ['es', 'ru', 'fr', 'zh']:
|
||||
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') )
|
||||
|
||||
|
||||
shutil.copy( os.path.join('..', 'resources', 'polyfill.js'), os.path.join(temp_path, 'resources') )
|
||||
|
||||
+12
-12
@@ -294,9 +294,9 @@ FunctionEnd
|
||||
File "..\resources\l10n\es\LC_MESSAGES\boss.mo"
|
||||
;SetOutPath "$INSTDIR\resources\l10n\de\LC_MESSAGES"
|
||||
;File "..\resources\l10n\de\LC_MESSAGES\wxstd.mo"
|
||||
;SetOutPath "$INSTDIR\resources\l10n\zh\LC_MESSAGES"
|
||||
;File "..\resources\l10n\zh\LC_MESSAGES\boss.mo"
|
||||
;File "..\resources\l10n\zh\LC_MESSAGES\wxstd.mo"
|
||||
SetOutPath "$INSTDIR\resources\l10n\zh\LC_MESSAGES"
|
||||
File "..\resources\l10n\zh\LC_MESSAGES\boss.mo"
|
||||
File "..\resources\l10n\zh\LC_MESSAGES\wxstd.mo"
|
||||
SetOutPath "$INSTDIR\resources\l10n\fr\LC_MESSAGES"
|
||||
File "..\resources\l10n\fr\LC_MESSAGES\wxstd.mo"
|
||||
File "..\resources\l10n\fr\LC_MESSAGES\boss.mo"
|
||||
@@ -321,11 +321,11 @@ FunctionEnd
|
||||
Push "Language:"
|
||||
Push "Language: spa"
|
||||
Call ReplaceLineStr
|
||||
;StrCmp $LANGUAGE ${LANG_SIMPCHINESE} 0 +5
|
||||
; Push "$LOCALAPPDATA\BOSS\settings.yaml"
|
||||
; Push "Language:"
|
||||
; Push "Language: cmn"
|
||||
; Call ReplaceLineStr
|
||||
StrCmp $LANGUAGE ${LANG_SIMPCHINESE} 0 +5
|
||||
Push "$LOCALAPPDATA\BOSS\settings.yaml"
|
||||
Push "Language:"
|
||||
Push "Language: zho"
|
||||
Call ReplaceLineStr
|
||||
StrCmp $LANGUAGE ${LANG_FRENCH} 0 +5
|
||||
Push "$LOCALAPPDATA\BOSS\settings.yaml"
|
||||
Push "Language:"
|
||||
@@ -396,8 +396,8 @@ FunctionEnd
|
||||
Delete "$INSTDIR\resources\l10n\es\LC_MESSAGES\boss.mo"
|
||||
Delete "$INSTDIR\resources\l10n\es\LC_MESSAGES\wxstd.mo"
|
||||
;Delete "$INSTDIR\resources\l10n\de\LC_MESSAGES\wxstd.mo"
|
||||
;Delete "$INSTDIR\resources\l10n\zh\LC_MESSAGES\boss.mo"
|
||||
;Delete "$INSTDIR\resources\l10n\zh\LC_MESSAGES\wxstd.mo"
|
||||
Delete "$INSTDIR\resources\l10n\zh\LC_MESSAGES\boss.mo"
|
||||
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"
|
||||
RMDir "$INSTDIR\resources\l10n\ru\LC_MESSAGES"
|
||||
@@ -406,8 +406,8 @@ FunctionEnd
|
||||
RMDir "$INSTDIR\resources\l10n\es"
|
||||
;RMDir "$INSTDIR\resources\l10n\de\LC_MESSAGES"
|
||||
;RMDir "$INSTDIR\resources\l10n\de"
|
||||
;RMDir "$INSTDIR\resources\l10n\zh\LC_MESSAGES"
|
||||
;RMDir "$INSTDIR\resources\l10n\zh"
|
||||
RMDir "$INSTDIR\resources\l10n\zh\LC_MESSAGES"
|
||||
RMDir "$INSTDIR\resources\l10n\zh"
|
||||
RMDir "$INSTDIR\resources\l10n\fr\LC_MESSAGES"
|
||||
RMDir "$INSTDIR\resources\l10n\fr"
|
||||
RMDir "$INSTDIR\resources\l10n"
|
||||
|
||||
Reference in New Issue
Block a user