mirror of
https://github.com/bdnugget/freeminer.git
synced 2026-11-07 06:57:27 +00:00
updatepo: Drop strings that are obsolete for >1 script run
This automatically removes old (and unused) translation strings such that the amount of garbage is kept in bounds.
This commit is contained in:
1 parent
15f41eb82e
commit
3dd99e1492
1 file changed
+4
-1
+4
-1
@@ -82,7 +82,10 @@ for lang in $langs ; do # note the missing quotes around $langs
|
||||
pofile=po/$lang/luanti.po
|
||||
if test -e $pofile; then
|
||||
echo "[$lang]: updating strings"
|
||||
msgmerge --update --sort-by-file $pofile $potfile
|
||||
# Drop old strings *before* updating such that they can be re-used
|
||||
# until this script is run again.
|
||||
msgattrib --output-file=$pofile --no-obsolete $pofile
|
||||
msgmerge --update --backup=none --sort-by-file $pofile $potfile
|
||||
else
|
||||
# This will ask for the translator identity
|
||||
echo "[$lang]: NEW strings"
|
||||
|
||||
Reference in new issue
Block a user