From c2efdd0968830f5111bc7e5c0af46c135d843d52 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Fri, 26 Jun 2020 14:35:15 +0200 Subject: [PATCH] more changes --- findtext.lua | 8 +++----- updatepo.sh | 1 + 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/findtext.lua b/findtext.lua index c092dc6e..1dac2e06 100644 --- a/findtext.lua +++ b/findtext.lua @@ -265,16 +265,14 @@ for _, file in ipairs(inputs) do end for textdomain, mtbl in pairs(messages) do - table.sort(messages[textdomain]) - - local last_msg + local last_msg = {} printf("# textdomain: %s\n", textdomain) for _, msg in ipairs(messages[textdomain]) do - if msg ~= last_msg then + if not last_msg[msg] then printf("%s=\n", msg) end - last_msg = msg + last_msg[msg] = true end end diff --git a/updatepo.sh b/updatepo.sh index cd374671..36c51001 100755 --- a/updatepo.sh +++ b/updatepo.sh @@ -22,6 +22,7 @@ for name in *; do cat $(find "$name/" -name '*.lua') >>"$luafile" lua "$p/findtext.lua" -o "$name/locale/template.txt" "$luafile" + continue # doesn't work as wanted, so not done echo "Updating translations for $name" pushd "$name/locale" for tl in *.tr; do -- 2.25.1