From 12b3a13fbbe588a8667f6fb57f02530b7919fd95 Mon Sep 17 00:00:00 2001 From: thomasv Date: Fri, 18 May 2012 17:16:42 +0200 Subject: [PATCH 1/1] add si; minor fix --- mki18n.py | 6 +++--- setup.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mki18n.py b/mki18n.py index afdb960..5e584f7 100755 --- a/mki18n.py +++ b/mki18n.py @@ -21,6 +21,9 @@ for line in lines: print dicts +if not os.path.exists('locale'): + os.mkdir('locale') + cmd = 'xgettext -s --no-wrap -f app.fil --output=locale/messages.pot' print cmd @@ -31,9 +34,6 @@ s = f.read() f.close() s = s.replace('CHARSET', 'utf-8') -if not os.path.exists('locale'): - os.mkdir('locale') - for lang, strings in dicts.items(): ss = s[:] for k,v in strings.items(): diff --git a/setup.py b/setup.py index c38f129..4121700 100644 --- a/setup.py +++ b/setup.py @@ -13,6 +13,7 @@ setup(name = "Electrum", data_files=[ ('/usr/share/locale/de/LC_MESSAGES', ['locale/de/LC_MESSAGES/electrum.mo']), ('/usr/share/locale/fr/LC_MESSAGES', ['locale/fr/LC_MESSAGES/electrum.mo']), + ('/usr/share/locale/si/LC_MESSAGES', ['locale/si/LC_MESSAGES/electrum.mo']), ], py_modules = ['electrum.version', 'electrum.wallet', -- 1.7.1