remove line number from translation string context to reduce diffs

The line numbers are almost meaningless with these text files, unlike code.
And they make lots of diffs that will cause all sorts of merge conflicts.

I also used this to do this change:
sed -i 's,^\(#: .*\):[0-9][0-9]*$,\1,g' po/*.pot
parent f0398f08
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -79,7 +79,7 @@ function generate_pot_file {
echo "Combining .pot files into $OUT_PO_FILE"
mkdir -p `dirname ${OUT_PO_FILE}`
msgcat -o ${OUT_PO_FILE} ${DIR_BUILD_PO}/*.pot
msgcat --add-location=file -o ${OUT_PO_FILE} ${DIR_BUILD_PO}/*.pot
}
#
......@@ -96,7 +96,7 @@ function update_po_files {
# The VERSION_CONTROL environment variable prevents a
# backup file from being written to ${SRC_TYPE}.LANG.po~
echo "Updating ${I18N_PO} with any changes from main .po file ${PO}."
VERSION_CONTROL=none msgmerge -U ${I18N_PO} ${PO}
VERSION_CONTROL=none msgmerge --add-location=file -U ${I18N_PO} ${PO}
done
fi
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment