Skip to content

Commit 4b806c4

Browse files
authored
Omit .po line numbers to prevent churn when code shifts (#517)
1 parent 82f617b commit 4b806c4

37 files changed

Lines changed: 3242 additions & 3241 deletions

File tree

‎scripts/update-translations.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -e
33
# extract new phrases
44
xgettext \
55
--from-code=UTF-8 \
6+
--add-location=file \
67
-o humanize.pot \
78
-k'_' \
89
-k'N_' \
@@ -17,7 +18,7 @@ for d in src/humanize/locale/*/; do
1718
locale="$(basename $d)"
1819
echo "$locale"
1920
# add them to locale files
20-
msgmerge -U src/humanize/locale/$locale/LC_MESSAGES/humanize.po humanize.pot
21+
msgmerge -U --add-location=file src/humanize/locale/$locale/LC_MESSAGES/humanize.po humanize.pot
2122
# compile to binary .mo
2223
msgfmt --check -o src/humanize/locale/$locale/LC_MESSAGES/humanize{.mo,.po}
2324
done

0 commit comments

Comments
 (0)