]> git.lyx.org Git - lyx.git/blobdiff - po/lyx_pot.py
Initialize bool member of Package in default constructor
[lyx.git] / po / lyx_pot.py
index a58d8bfe06404d14ae3093f0cb10258244554d59..761e3dd0e6df4faaba56ff637591a7ffa573f68c 100755 (executable)
@@ -654,6 +654,13 @@ if __name__ == '__main__':
 
     input_files += args
 
+    # Ensure a unique sorting of input files and ignore the order in which they
+    # are given on the command line. This is important to avoid huge
+    # pseudo-diffs in the generated .pot file which would then end up in the
+    # .po files as well. We had this situation for years with people using
+    # different build systems to remerge .po files.
+    input_files.sort()
+
     if input_type == 'ui':
         ui_l10n(input_files, output, base)
     elif input_type == 'latexfonts':