mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 14:41:39 +00:00
Fixed build bug where the qtlib po file wouldn't be copied to the build locale folder.
This commit is contained in:
6
build.py
6
build.py
@@ -117,9 +117,6 @@ 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")
|
||||
for lang in loc.get_langs('locale'):
|
||||
@@ -140,6 +137,9 @@ def build_localizations(ui, edition):
|
||||
elif ui == 'qt':
|
||||
loc.compile_all_po(op.join('qtlib', 'locale'))
|
||||
loc.merge_locale_dir(op.join('qtlib', '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'))
|
||||
|
||||
def build_updatepot():
|
||||
print("Building .pot files from source files")
|
||||
|
||||
Reference in New Issue
Block a user