try to use the same checks in the old makefiles for the po4a domains...

...as used by scons. (makefiles are probably not used anymore)

add the checks to the cmake mo stuff, too
This commit is contained in:
Nils Kneuper 2011-03-20 15:34:34 +00:00
parent e0093253bb
commit dfd9b70697
3 changed files with 7 additions and 5 deletions

View file

@ -213,9 +213,11 @@ endif(ENABLE_POT_UPDATE_TARGET)
if(ENABLE_NLS)
set(GETTEXT_MSGFMT_PARAMETER --check-format --check-domain )
if(ENABLE_POT_UPDATE_TARGET)
# Only set the verbose flag for maintainers.
set(GETTEXT_MSGFMT_PARAMETER -v)
set(GETTEXT_MSGFMT_PARAMETER -v ${GETTEXT_MSGFMT_PARAMETER} )
endif(ENABLE_POT_UPDATE_TARGET)
foreach(LINGUA ${LINGUAS})

View file

@ -26,5 +26,5 @@ MSGFMT = msgfmt
# generate .gmo files for po4a manpages
.po.gmo:
@lang=`echo $* | sed -e 's,.*/,,'`; \
echo "$(MSGFMT) -c --statistics -o /dev/null $${lang}.po"; \
$(MSGFMT) -c --statistics -o /dev/null $${lang}.po
echo "$(MSGFMT) --check-format --check-domain --statistics -o /dev/null $${lang}.po"; \
$(MSGFMT) --check-format --check-domain --statistics -o /dev/null $${lang}.po

View file

@ -26,5 +26,5 @@ MSGFMT = msgfmt
# generate .gmo files for po4a manpages
.po.gmo:
@lang=`echo $* | sed -e 's,.*/,,'`; \
echo "$(MSGFMT) -c --statistics -o /dev/null $${lang}.po"; \
$(MSGFMT) -c --statistics -o /dev/null $${lang}.po
echo "$(MSGFMT) --check-format --check-domain --statistics -o /dev/null $${lang}.po"; \
$(MSGFMT) --check-format --check-domain --statistics -o /dev/null $${lang}.po