1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Added support got gettext localizations under Cocoa.

This commit is contained in:
Virgil Dupras
2011-11-02 17:31:57 -04:00
parent 771f26ba0f
commit 6c75d3afdf
7 changed files with 21 additions and 6 deletions

View File

@@ -113,6 +113,9 @@ def build_localizations(ui, edition):
loc.compile_all_po('locale')
loc.compile_all_po(op.join('hscommon', 'locale'))
loc.merge_locale_dir(op.join('hscommon', 'locale'), 'locale')
if op.exists(op.join('build', 'locale')):
shutil.rmtree(op.join('build', 'locale'))
shutil.copytree('locale', op.join('build', 'locale'), ignore=shutil.ignore_patterns('*.po', '*.pot'))
if ui == 'cocoa':
print("Creating lproj folders based on .po files")
enlproj = op.join('cocoa', 'base', 'en.lproj')