Browse Source

Added support for combined language codes.

pull/18/head
Simon Eisenmann 11 years ago
parent
commit
c3de2bb7f6
  1. 6
      src/i18n/Makefile

6
src/i18n/Makefile

@ -32,6 +32,10 @@ extract: @@ -32,6 +32,10 @@ extract:
update:
for lang in $(LANGUAGES) ; do \
$(PYBABEL) update -l $$lang -i messages.pot -o messages-$$lang.po ; \
l=$$lang ; \
if echo $$l | grep -q -; then \
l=`echo $$lang | awk '{split($$0,a,"-"); printf "%s_%s", a[1],toupper(a[2])}'` ; \
fi ; \
$(PYBABEL) update -l $$l -i messages.pot -o messages-$$lang.po ; \
done

Loading…
Cancel
Save