create locale

This commit is contained in:
thomasv 2012-05-30 14:56:35 +02:00
parent 2c7ea87b74
commit 266bbc876c
1 changed files with 3 additions and 0 deletions

View File

@ -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]) )