1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 12:28:08 +01:00

Compile translations after configure has run

This commit is contained in:
David Paleino
2012-02-05 21:47:24 +01:00
parent 7ba68d27d0
commit 4f7ae6056d

View File

@@ -366,6 +366,9 @@ class configure(Command):
item_in.close()
shutil.copymode(original_name, final_name)
trans = compile_translations(self.distribution)
trans.run()
class clear_generated(Command):
description = 'clears out files generated by configure'
@@ -600,7 +603,8 @@ try:
data.append((wpath.pmutils, ['other/55wicd']))
print 'Using pid path', os.path.basename(wpath.pidfile)
print 'Language support for',
for language in os.listdir('translations/'):
for pofile in glob('po/*.po'):
language = pofile.replace('po/', '').replace('.po', '')
print language,
data.append((wpath.translations + language + '/LC_MESSAGES/',
['translations/' + language + '/LC_MESSAGES/wicd.mo']))