[Pkg-anonymity-tools] [onionshare] 117/140: updated windows release files to support translations split into multiple files (#146)

Ulrike Uhlig u-guest at moszumanska.debian.org
Mon Sep 29 20:33:54 UTC 2014


This is an automated email from the git hooks/post-receive script.

u-guest pushed a commit to branch master
in repository onionshare.

commit a75c56145274227dc5328d6500f470e75fa5a15b
Author: Micah Lee <micah at micahflee.com>
Date:   Mon Sep 22 11:25:20 2014 -0700

    updated windows release files to support translations split into multiple files (#146)
---
 setup/onionshare-win.spec | 11 +++++++++++
 setup/onionshare.nsi      | 26 ++++++++++++++++++++++++--
 2 files changed, 35 insertions(+), 2 deletions(-)

diff --git a/setup/onionshare-win.spec b/setup/onionshare-win.spec
index 5d673ca..1a6f3d7 100644
--- a/setup/onionshare-win.spec
+++ b/setup/onionshare-win.spec
@@ -9,6 +9,17 @@ a.datas += [
     ('images/server_stopped.png', 'images/server_stopped.png', 'DATA'),
     ('images/server_started.png', 'images/server_started.png', 'DATA'),
     ('images/server_working.png', 'images/server_working.png', 'DATA'),
+    ('locale/de.json', 'locale/de.json', 'DATA'),
+    ('locale/en.json', 'locale/en.json', 'DATA'),
+    ('locale/es.json', 'locale/es.json', 'DATA'),
+    ('locale/fi.json', 'locale/fi.json', 'DATA'),
+    ('locale/fr.json', 'locale/fr.json', 'DATA'),
+    ('locale/it.json', 'locale/it.json', 'DATA'),
+    ('locale/nl.json', 'locale/nl.json', 'DATA'),
+    ('locale/no.json', 'locale/no.json', 'DATA'),
+    ('locale/pt.json', 'locale/pt.json', 'DATA'),
+    ('locale/ru.json', 'locale/ru.json', 'DATA'),
+    ('locale/tr.json', 'locale/tr.json', 'DATA'),
 ]
 pyz = PYZ(a.pure)
 exe = EXE(pyz,
diff --git a/setup/onionshare.nsi b/setup/onionshare.nsi
index 3c931a7..efdae3e 100644
--- a/setup/onionshare.nsi
+++ b/setup/onionshare.nsi
@@ -56,7 +56,6 @@ Section "install"
     File "${BINPATH}\onionshare\onionshare.pyc"
     File "${BINPATH}\onionshare\socks.py"
     File "${BINPATH}\onionshare\socks.pyc"
-    File "${BINPATH}\onionshare\strings.json"
     File "${BINPATH}\onionshare\strings.py"
     File "${BINPATH}\onionshare\strings.pyc"
     File "${BINPATH}\onionshare\web.py"
@@ -82,6 +81,18 @@ Section "install"
     File "${BINPATH}\images\server_stopped.png"
     File "${BINPATH}\images\server_started.png"
     File "${BINPATH}\images\server_working.png"
+    SetOutPath "$INSTDIR\locale"
+    File "${BINPATH}\locale\de.json"
+    File "${BINPATH}\locale\en.json"
+    File "${BINPATH}\locale\es.json"
+    File "${BINPATH}\locale\fi.json"
+    File "${BINPATH}\locale\fr.json"
+    File "${BINPATH}\locale\it.json"
+    File "${BINPATH}\locale\nl.json"
+    File "${BINPATH}\locale\no.json"
+    File "${BINPATH}\locale\pt.json"
+    File "${BINPATH}\locale\ru.json"
+    File "${BINPATH}\locale\tr.json"
 
     # dependencies
     SetOutPath $INSTDIR
@@ -185,7 +196,6 @@ Section "uninstall"
     Delete "$INSTDIR\onionshare\onionshare.pyc"
     Delete "$INSTDIR\onionshare\socks.py"
     Delete "$INSTDIR\onionshare\socks.pyc"
-    Delete "$INSTDIR\onionshare\strings.json"
     Delete "$INSTDIR\onionshare\strings.py"
     Delete "$INSTDIR\onionshare\strings.pyc"
     Delete "$INSTDIR\onionshare\web.py"
@@ -209,6 +219,17 @@ Section "uninstall"
     Delete "$INSTDIR\images\server_stopped.png"
     Delete "$INSTDIR\images\server_started.png"
     Delete "$INSTDIR\images\server_working.png"
+    Delete "$INSTDIR\locale\de.json"
+    Delete "$INSTDIR\locale\en.json"
+    Delete "$INSTDIR\locale\es.json"
+    Delete "$INSTDIR\locale\fi.json"
+    Delete "$INSTDIR\locale\fr.json"
+    Delete "$INSTDIR\locale\it.json"
+    Delete "$INSTDIR\locale\nl.json"
+    Delete "$INSTDIR\locale\no.json"
+    Delete "$INSTDIR\locale\pt.json"
+    Delete "$INSTDIR\locale\ru.json"
+    Delete "$INSTDIR\locale\tr.json"
     Delete "$INSTDIR\qt4_plugins\accessible\qtaccessiblewidgets4.dll"
     Delete "$INSTDIR\qt4_plugins\graphicssystems\qglgraphicssystem4.dll"
     Delete "$INSTDIR\qt4_plugins\iconengines\qsvgicon4.dll"
@@ -254,6 +275,7 @@ Section "uninstall"
     rmDir "$INSTDIR\onionshare"
     rmDir "$INSTDIR\onionshare_gui"
     rmDir "$INSTDIR\images"
+    rmDir "$INSTDIR\locale"
     rmDir "$INSTDIR\Include"
     rmDir "$INSTDIR\qt4_plugins\accessible"
     rmDir "$INSTDIR\qt4_plugins\bearer"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/onionshare.git



More information about the Pkg-anonymity-tools mailing list