Trim obsolete translations from PO files. These are translations for
text which does not exist in the original English document any more.
This commit is contained in:
parent
f51fb1c52d
commit
502f6e6848
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=50677
2 changed files with 3 additions and 1 deletions
|
@ -82,6 +82,7 @@ ITSTOOL?= ${PREFIX}/bin/itstool
|
||||||
|
|
||||||
JING?= ${PREFIX}/bin/jing
|
JING?= ${PREFIX}/bin/jing
|
||||||
|
|
||||||
|
MSGATTRIB?= ${PREFIX}/bin/msgattrib
|
||||||
MSGFMT?= ${PREFIX}/bin/msgfmt
|
MSGFMT?= ${PREFIX}/bin/msgfmt
|
||||||
MSGMERGE?= ${PREFIX}/bin/msgmerge
|
MSGMERGE?= ${PREFIX}/bin/msgmerge
|
||||||
|
|
||||||
|
|
|
@ -366,7 +366,8 @@ ${PO_LANG}.po: ${DOC}.translate.xml
|
||||||
@${ITSTOOL} -o ${PO_LANG}.po.tmp ${DOC}.translate.xml
|
@${ITSTOOL} -o ${PO_LANG}.po.tmp ${DOC}.translate.xml
|
||||||
@( if [ -f "${PO_LANG}.po" ]; then \
|
@( if [ -f "${PO_LANG}.po" ]; then \
|
||||||
echo "${PO_LANG}.po exists, merging" ; \
|
echo "${PO_LANG}.po exists, merging" ; \
|
||||||
${MSGMERGE} -o ${PO_LANG}.po.new ${PO_LANG}.po ${PO_LANG}.po.tmp ;\
|
${MSGMERGE} -o ${PO_LANG}.po.new ${PO_LANG}.po ${PO_LANG}.po.tmp ; \
|
||||||
|
${MSGATTRIB} --no-obsolete -o ${PO_LANG}.po.new ${PO_LANG}.po ; \
|
||||||
${MV} ${PO_LANG}.po.new ${PO_LANG}.po ; \
|
${MV} ${PO_LANG}.po.new ${PO_LANG}.po ; \
|
||||||
${RM} ${PO_LANG}.po.tmp ; \
|
${RM} ${PO_LANG}.po.tmp ; \
|
||||||
else \
|
else \
|
||||||
|
|
Loading…
Reference in a new issue