mirror of
https://github.com/gryf/wicd.git
synced 2025-12-19 20:38:00 +01:00
Compile translations after configure has run
This commit is contained in:
6
setup.py
6
setup.py
@@ -366,6 +366,9 @@ class configure(Command):
|
|||||||
item_in.close()
|
item_in.close()
|
||||||
shutil.copymode(original_name, final_name)
|
shutil.copymode(original_name, final_name)
|
||||||
|
|
||||||
|
trans = compile_translations(self.distribution)
|
||||||
|
trans.run()
|
||||||
|
|
||||||
class clear_generated(Command):
|
class clear_generated(Command):
|
||||||
description = 'clears out files generated by configure'
|
description = 'clears out files generated by configure'
|
||||||
|
|
||||||
@@ -600,7 +603,8 @@ try:
|
|||||||
data.append((wpath.pmutils, ['other/55wicd']))
|
data.append((wpath.pmutils, ['other/55wicd']))
|
||||||
print 'Using pid path', os.path.basename(wpath.pidfile)
|
print 'Using pid path', os.path.basename(wpath.pidfile)
|
||||||
print 'Language support for',
|
print 'Language support for',
|
||||||
for language in os.listdir('translations/'):
|
for pofile in glob('po/*.po'):
|
||||||
|
language = pofile.replace('po/', '').replace('.po', '')
|
||||||
print language,
|
print language,
|
||||||
data.append((wpath.translations + language + '/LC_MESSAGES/',
|
data.append((wpath.translations + language + '/LC_MESSAGES/',
|
||||||
['translations/' + language + '/LC_MESSAGES/wicd.mo']))
|
['translations/' + language + '/LC_MESSAGES/wicd.mo']))
|
||||||
|
|||||||
Reference in New Issue
Block a user