diff --git a/setup.py b/setup.py index 2b4a6cc..6eec875 100755 --- a/setup.py +++ b/setup.py @@ -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']))