[LyX/master] * lyx_pot.py - fix remerge examples/ noise in .po files

Pavel Sanda <[email protected]>
Newsgroups gmane.editors.lyx.cvs
Message-ID <[email protected]>
commit a868097335a42f236c7f8ea0226ea815210d00d4
Author: Pavel Sanda <[email protected]>
Date:   Fri Mar 20 19:38:37 2026 +0100

    * lyx_pot.py - fix remerge examples/ noise in .po files
    
    Random ordering of files causes spurious diffs in examples/ strings
    (we fixed that generally for other strings, but examples/ hide this
    routine in subcall).
---
 po/lyx_pot.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/po/lyx_pot.py b/po/lyx_pot.py
index b4fd016a79..03b62957ef 100755
--- a/po/lyx_pot.py
+++ b/po/lyx_pot.py
@@ -741,7 +741,7 @@ def examples_templates_l10n(input_files, output, base):
 def parseExamplesTemplates(file, seen, output):
   # Recursively iterate over subdirectories
   if os.path.isdir(file):
-      for sfile in glob.glob( os.path.join(file, '*') ):
+      for sfile in sorted(glob.glob( os.path.join(file, '*') )):
           parseExamplesTemplates(sfile, seen, output)
 
   filename = os.path.normpath(os.path.realpath(file)).split(os.sep)[-1]
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.