git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
2c7ea87
)
create locale
author
thomasv
<thomasv@gitorious>
Wed, 30 May 2012 12:56:35 +0000 (14:56 +0200)
committer
thomasv
<thomasv@gitorious>
Wed, 30 May 2012 12:56:35 +0000 (14:56 +0200)
setup.py
patch
|
blob
|
history
diff --git
a/setup.py
b/setup.py
index
509d410
..
e0b4591
100644
(file)
--- 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]) )