Don't add line number to comment when running updatepo.sh
authorest31 <MTest31@outlook.com>
Tue, 1 Sep 2015 23:34:37 +0000 (01:34 +0200)
committerest31 <MTest31@outlook.com>
Tue, 1 Sep 2015 23:34:37 +0000 (01:34 +0200)
Otherwise, this updates all .po files for all line numbers that changed
since the last time updatepo.sh was run. We still add the filename, but
this information shouldn't change too often.

xgettext beginning with 0.18.4 supports this feature.

util/updatepo.sh

index 1fc72337337f865ce5aa41f05a947320bd2438c2..f4a401f2cb71a2fe0a38ae0fe72c203f54642378 100755 (executable)
@@ -50,7 +50,7 @@ cd ..
 potfile=po/minetest.pot
 xgettext --package-name=minetest \
        --sort-by-file \
-       --add-location \
+       --add-location=file \
        --keyword=N_ \
        --keyword=wgettext \
        --keyword=fgettext \