- # Merge in the PO files
- if options.langs:
- langs = options.langs.split(',')
- else:
- langs = all_langs(gettext_directory)
-
- for lang in langs:
- language_directory = os.path.join(gettext_directory, lang)
- if options.verbose:
- print 'Merging translations for %s in %s' % (lang, language_directory)
- pos = merge_pos(transl, lang, language_directory)
+ if os.path.exists(gettext_directory):
+ # Merge in the PO files
+ if options.langs:
+ langs = options.langs.split(',')
+ else:
+ langs = all_langs(gettext_directory)