diff options
author | John Dennis <jdennis@redhat.com> | 2010-02-09 20:35:13 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-02-10 11:48:03 -0500 |
commit | 9fa5e4f118f616c6906155e4e390aa69b01651f7 (patch) | |
tree | 3d493cf1847f852932321338e421f6febb0cc560 /install/po/Makefile.in | |
parent | 4461a74403a3e931f5ca6f7a101ca66ff77d78e1 (diff) | |
download | freeipa-9fa5e4f118f616c6906155e4e390aa69b01651f7.tar.gz freeipa-9fa5e4f118f616c6906155e4e390aa69b01651f7.tar.xz freeipa-9fa5e4f118f616c6906155e4e390aa69b01651f7.zip |
Add i18n test
Diffstat (limited to 'install/po/Makefile.in')
-rw-r--r-- | install/po/Makefile.in | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/install/po/Makefile.in b/install/po/Makefile.in index 7a8631aff..bd1f8f973 100644 --- a/install/po/Makefile.in +++ b/install/po/Makefile.in @@ -154,6 +154,7 @@ POTFILES = $(PYTHON_POTFILES) $(C_POTFILES) .SUFFIXES: .SUFFIXES: .po .mo +.PHONY: all create-po update-po update-pot install mostlyclean clean distclean test_lang test all: $(po_files) @ @@ -208,10 +209,19 @@ install: $(mo_files) done mostlyclean: - rm -f *.mo + rm -rf *.mo test.po test_locale clean: mostlyclean distclean: clean rm -f Makefile +test_lang: + rm -rf test.po test_locale + $(MSGINIT) --no-translator -i $(DOMAIN).pot -o test.po + sed -i -r -e 's/^msgstr[ \t]+"(.*)"[ \t]*$$/msgstr "\xe2\x86\x92\1\xe2\x86\x90"/' test.po + $(MKDIR_P) test_locale/en_US/LC_MESSAGES + $(MSGFMT) -o test_locale/en_US/LC_MESSAGES/ipa.mo test.po + +test: test_lang + ./test_i18n.py |