Skip to content

Commit

Permalink
Add target to generate .mo files
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoît Burnichon committed Nov 27, 2015
1 parent 23bd397 commit ecbf20e
Show file tree
Hide file tree
Showing 14 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ behat.yml
!/bin/developer
!/bin/setup
/tmp-assets

locale/*/LC_MESSAGES/*.mo
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.PHONY: i18n

PO_FILES := $(wildcard locale/*/LC_MESSAGES/phraseanet.po)
PO_FILES += $(wildcard locale/*/LC_MESSAGES/test.po)

i18n: $(PO_FILES:po=mo)

%.mo: %.po
msgfmt $< -o $@

Binary file removed locale/ar_SA/LC_MESSAGES/phraseanet.mo
Binary file not shown.
Binary file removed locale/ar_SA/LC_MESSAGES/test.mo
Binary file not shown.
Binary file removed locale/de_DE/LC_MESSAGES/phraseanet.mo
Binary file not shown.
Binary file removed locale/de_DE/LC_MESSAGES/test.mo
Binary file not shown.
Binary file removed locale/en_GB/LC_MESSAGES/phraseanet.mo
Binary file not shown.
Binary file removed locale/en_GB/LC_MESSAGES/test.mo
Binary file not shown.
Binary file removed locale/es_ES/LC_MESSAGES/phraseanet.mo
Binary file not shown.
Binary file removed locale/es_ES/LC_MESSAGES/test.mo
Binary file not shown.
Binary file removed locale/fr_FR/LC_MESSAGES/phraseanet.mo
Binary file not shown.
Binary file removed locale/fr_FR/LC_MESSAGES/test.mo
Binary file not shown.
Binary file removed locale/nl_NL/LC_MESSAGES/phraseanet.mo
Binary file not shown.
Binary file removed locale/nl_NL/LC_MESSAGES/test.mo
Binary file not shown.

0 comments on commit ecbf20e

Please sign in to comment.