commit 266bbc876c5730fa6223d6ff0562451d1fe075ea
parent 2c7ea87b745c2e6e2adc2614721b268fc7645003
Author: thomasv <thomasv@gitorious>
Date: Wed, 30 May 2012 14:56:35 +0200
create locale
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/setup.py b/setup.py
@@ -15,6 +15,9 @@ data_files=[
('/usr/share/app-install/icons/',['electrum.png'])
]
+if not os.path.exists('locale'):
+ os.mkdir('locale')
+
for lang in os.listdir('locale'):
if os.path.exists('locale/%s/LC_MESSAGES/electrum.mo'%lang):
data_files.append( ('/usr/share/locale/%s/LC_MESSAGES'%lang, ['locale/%s/LC_MESSAGES/electrum.mo'%lang]) )