Line 0
Link Here
|
|
|
1 |
--- share/templates/create_default_templates.py.orig |
2 |
+++ share/templates/create_default_templates.py |
3 |
@@ -44,6 +44,8 @@ |
4 |
os.makedirs(destination_dir) |
5 |
shutil.copy(source, destination) |
6 |
|
7 |
+# do another loop to ensure we've copied all the translations before using them |
8 |
+for language in languages: |
9 |
# get translation with help of gettext |
10 |
translation = gettext.translation('inkscape', localedir=binary_dir + '/po/locale', languages=[language]) |
11 |
translated_string = translation.gettext(LAYER_STRING) |