Skip to content
Snippets Groups Projects

Copy all translation files before using them

Merged Brett T. Warden requested to merge bwarden/inkscape:patch-1 into master
All threads resolved!
1 file
+ 2
0
Compare changes
  • Side-by-side
  • Inline
@@ -44,6 +44,8 @@ for language in languages:
os.makedirs(destination_dir)
shutil.copy(source, destination)
# do another loop to ensure we've copied all the translations before using them
for language in languages:
# get translation with help of gettext
translation = gettext.translation('inkscape', localedir=binary_dir + '/po/locale', languages=[language])
translated_string = translation.gettext(LAYER_STRING)
Loading