diff --git a/src/archive.py b/src/archive.py index cba9b243..ca0a85d8 100755 --- a/src/archive.py +++ b/src/archive.py @@ -8,6 +8,10 @@ # build/BOSS.exe # resources/graphvis # resources/svgweb +# resources/l10n/es/LC_MESSAGES/boss.mo +# resources/l10n/es/LC_MESSAGES/wxstd.mo +# resources/l10n/ru/LC_MESSAGES/boss.mo +# resources/l10n/ru/LC_MESSAGES/wxstd.mo # resources/polyfill.js # resources/script.js # resources/style.css @@ -32,12 +36,21 @@ if (len(sys.argv) > 1): if not os.path.exists(temp_path): os.makedirs(temp_path) - # Now copy everything into the temporary folder. shutil.copy( os.path.join('..', 'build', 'BOSS.exe'), temp_path ) shutil.copytree( os.path.join('..', 'resources', 'graphvis'), os.path.join(temp_path, 'resources', 'graphvis') ) shutil.copytree( os.path.join('..', 'resources', 'svgweb'), os.path.join(temp_path, 'resources', 'svgweb') ) + + +os.makedirs(os.path.join(temp_path, 'resources', 'l10n', 'es', 'LC_MESSAGES')) +os.makedirs(os.path.join(temp_path, 'resources', 'l10n', 'ru', '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', 'polyfill.js'), os.path.join(temp_path, 'resources') ) shutil.copy( os.path.join('..', 'resources', 'script.js'), os.path.join(temp_path, 'resources') ) shutil.copy( os.path.join('..', 'resources', 'style.css'), os.path.join(temp_path, 'resources') ) diff --git a/src/installer.nsi b/src/installer.nsi index 4385b560..ce3b8376 100644 --- a/src/installer.nsi +++ b/src/installer.nsi @@ -291,15 +291,15 @@ FunctionEnd ;Now install language files. SetOutPath "$INSTDIR\resources\l10n\ru\LC_MESSAGES" - ;File "..\resources\l10n\ru\LC_MESSAGES\messages.mo" - ;File "..\resources\l10n\ru\LC_MESSAGES\wxstd.mo" + File "..\resources\l10n\ru\LC_MESSAGES\boss.mo" + File "..\resources\l10n\ru\LC_MESSAGES\wxstd.mo" SetOutPath "$INSTDIR\resources\l10n\es\LC_MESSAGES" - ;File "..\resources\l10n\es\LC_MESSAGES\wxstd.mo" - ;File "..\resources\l10n\es\LC_MESSAGES\messages.mo" - SetOutPath "$INSTDIR\resources\l10n\de\LC_MESSAGES" + File "..\resources\l10n\es\LC_MESSAGES\wxstd.mo" + 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\messages.mo" + ;SetOutPath "$INSTDIR\resources\l10n\zh\LC_MESSAGES" + ;File "..\resources\l10n\zh\LC_MESSAGES\boss.mo" ;File "..\resources\l10n\zh\LC_MESSAGES\wxstd.mo" ;Install settings file. @@ -393,21 +393,21 @@ FunctionEnd RMDir /r "$INSTDIR\resources\svgweb" ;Remove language files. - Delete "$INSTDIR\resources\l10n\ru\LC_MESSAGES\messages.mo" + Delete "$INSTDIR\resources\l10n\ru\LC_MESSAGES\boss.mo" Delete "$INSTDIR\resources\l10n\ru\LC_MESSAGES\wxstd.mo" - Delete "$INSTDIR\resources\l10n\es\LC_MESSAGES\messages.mo" + 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\messages.mo" - Delete "$INSTDIR\resources\l10n\zh\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" RMDir "$INSTDIR\resources\l10n\ru\LC_MESSAGES" RMDir "$INSTDIR\resources\l10n\ru" RMDir "$INSTDIR\resources\l10n\es\LC_MESSAGES" 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\de\LC_MESSAGES" + ;RMDir "$INSTDIR\resources\l10n\de" + ;RMDir "$INSTDIR\resources\l10n\zh\LC_MESSAGES" + ;RMDir "$INSTDIR\resources\l10n\zh" RMDir "$INSTDIR\resources\l10n" RMDir "$INSTDIR\resources"