From 6160aec4efa198290bb9b2eefe9fd5075b7c9ff0 Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Mon, 3 Feb 2014 21:50:20 +0000 Subject: [PATCH] Updated readme and packaging scripts for French translation. --- docs/BOSS Readme.html | 1 + src/archive.py | 5 +++++ src/installer.nsi | 7 +++++++ 3 files changed, 13 insertions(+) diff --git a/docs/BOSS Readme.html b/docs/BOSS Readme.html index a1c49bc1..bc47a814 100644 --- a/docs/BOSS Readme.html +++ b/docs/BOSS Readme.html @@ -346,6 +346,7 @@ To translate the BOSS application:
  • Russian
  • Spanish
  • Simplified Chinese +
  • French
  • Open Poedit and select File->Preferences, then in the Editor tab ensure that the checkbox for the Automatically compile .mo file on save setting is checked. Click OK to close the preferences window.
  • If you are starting a new translation, select File->New catalogue from POT file... and choose the template file you downloaded. In the Catalog properties dialog, just click OK without changing anything. diff --git a/src/archive.py b/src/archive.py index 418e9451..510ed059 100644 --- a/src/archive.py +++ b/src/archive.py @@ -10,6 +10,8 @@ # resources/l10n/es/LC_MESSAGES/wxstd.mo # resources/l10n/ru/LC_MESSAGES/boss.mo # resources/l10n/ru/LC_MESSAGES/wxstd.mo +# resources/l10n/fr/LC_MESSAGES/boss.mo +# resources/l10n/fr/LC_MESSAGES/wxstd.mo # resources/polyfill.js # resources/script.js # resources/style.css @@ -61,10 +63,13 @@ 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') ) shutil.copy( os.path.join('..', 'resources', 'polyfill.js'), os.path.join(temp_path, 'resources') ) diff --git a/src/installer.nsi b/src/installer.nsi index e1a9cfa6..bc465e72 100644 --- a/src/installer.nsi +++ b/src/installer.nsi @@ -281,6 +281,9 @@ FunctionEnd ;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" ;Install settings file. SetOutPath "$LOCALAPPDATA\BOSS" @@ -374,6 +377,8 @@ FunctionEnd ;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\fr\LC_MESSAGES\boss.mo" + Delete "$INSTDIR\resources\l10n\fr\LC_MESSAGES\wxstd.mo" RMDir "$INSTDIR\resources\l10n\ru\LC_MESSAGES" RMDir "$INSTDIR\resources\l10n\ru" RMDir "$INSTDIR\resources\l10n\es\LC_MESSAGES" @@ -382,6 +387,8 @@ FunctionEnd ;RMDir "$INSTDIR\resources\l10n\de" ;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" RMDir "$INSTDIR\resources"