[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [gettor/master] Install translations to $BASEDIR/share by default



commit cb3fb09b303bd9c955f7c5330c2f5f9b2f02f135
Author: Christian Fromme <kaner@xxxxxxxxxx>
Date:   Sat Mar 3 07:20:34 2012 +0100

    Install translations to $BASEDIR/share by default
---
 setup.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index 28064ff..890180e 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ from distutils.command.install_data import install_data as _install_data
 
 
 CONFIG_DEFAULTS = {
-   'BASEDIR':  "~/gettor",
+   'BASEDIR':  "~/",
 }
 
 class Config:
@@ -90,7 +90,8 @@ class installData(_install_data):
             if lang.startswith('.'):
                 continue
             basedirExpand = os.path.expanduser(config.BASEDIR)
-            lang_dir = os.path.join(basedirExpand, "i18n", lang, 'LC_MESSAGES')
+            lang_dir = os.path.join(basedirExpand, 'share', 'i18n', lang, 
+                                    'LC_MESSAGES')
             lang_file = os.path.join('build', 'locale', lang, 'LC_MESSAGES',
                                      'gettor.mo')
             self.data_files.append( (lang_dir, [lang_file]) )

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits