diff --git a/util/updatepo.sh b/util/updatepo.sh
index 1fc72337337f865ce5aa41f05a947320bd2438c2..f4a401f2cb71a2fe0a38ae0fe72c203f54642378 100755
--- a/util/updatepo.sh
+++ b/util/updatepo.sh
@@ -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 \