more changes
This commit is contained in:
parent
fbe62fc84e
commit
c2efdd0968
|
@ -265,16 +265,14 @@ for _, file in ipairs(inputs) do
|
||||||
end
|
end
|
||||||
|
|
||||||
for textdomain, mtbl in pairs(messages) do
|
for textdomain, mtbl in pairs(messages) do
|
||||||
table.sort(messages[textdomain])
|
local last_msg = {}
|
||||||
|
|
||||||
local last_msg
|
|
||||||
printf("# textdomain: %s\n", textdomain)
|
printf("# textdomain: %s\n", textdomain)
|
||||||
|
|
||||||
for _, msg in ipairs(messages[textdomain]) do
|
for _, msg in ipairs(messages[textdomain]) do
|
||||||
if msg ~= last_msg then
|
if not last_msg[msg] then
|
||||||
printf("%s=\n", msg)
|
printf("%s=\n", msg)
|
||||||
end
|
end
|
||||||
last_msg = msg
|
last_msg[msg] = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@ for name in *; do
|
||||||
cat $(find "$name/" -name '*.lua') >>"$luafile"
|
cat $(find "$name/" -name '*.lua') >>"$luafile"
|
||||||
lua "$p/findtext.lua" -o "$name/locale/template.txt" "$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"
|
echo "Updating translations for $name"
|
||||||
pushd "$name/locale"
|
pushd "$name/locale"
|
||||||
for tl in *.tr; do
|
for tl in *.tr; do
|
||||||
|
|
Loading…
Reference in New Issue