[Kimchi-devel] [RFC PATCH V2 27/31] Install plugin .mo files to default locale dir

Lucio Correia luciojhc at linux.vnet.ibm.com
Mon Jun 22 22:59:41 UTC 2015


This implements for plugins the changes done by commit
2e90908b8e79ff293298dfcd83b166dd06d361c3.

Signed-off-by: Lucio Correia <luciojhc at linux.vnet.ibm.com>
Signed-off-by: Gustavo Y. Ribeiro <gyr at linux.vnet.ibm.com>
---
 src/wok/config.py.in |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/wok/config.py.in b/src/wok/config.py.in
index c676f89..2935c40 100644
--- a/src/wok/config.py.in
+++ b/src/wok/config.py.in
@@ -92,12 +92,13 @@ class PluginPaths(Paths):
         if self.installed:
             self.conf_dir = '@sysconfdir@/wok/plugins.d'
             self.src_dir = os.path.join('@wokdir@', self.plugin_dir)
+            self.mo_dir = '@prefix@/share/locale'
         else:
             self.conf_dir = self.add_prefix(self.plugin_dir)
             self.src_dir = self.add_prefix(self.plugin_dir)
+            self.mo_dir = self.add_prefix(os.path.join(self.plugin_dir, 'mo'))
 
         self.ui_dir = self.add_prefix(os.path.join(self.plugin_dir, 'ui'))
-        self.mo_dir = self.add_prefix(os.path.join(self.plugin_dir, 'mo'))
         self.conf_file = os.path.join(self.conf_dir, '%s.conf' % name)
 
 
-- 
1.7.1




More information about the Kimchi-devel mailing list