Merge pull request #69 from rlinehan/update-i18n-files
(maint) Update i18n files
This commit is contained in:
commit
53abf04ee5
2 changed files with 8 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,3 +4,4 @@ pom.xml
|
||||||
/.lein*
|
/.lein*
|
||||||
/resources/locales.clj
|
/resources/locales.clj
|
||||||
/resources/**/Messages*.class
|
/resources/**/Messages*.class
|
||||||
|
/dev-resources/i18n/bin
|
||||||
|
|
|
@ -35,7 +35,7 @@ endef
|
||||||
export LOCALES_CLJ_CONTENTS
|
export LOCALES_CLJ_CONTENTS
|
||||||
|
|
||||||
|
|
||||||
i18n: update-pot msgfmt
|
i18n: msgfmt
|
||||||
|
|
||||||
# Update locales/messages.pot
|
# Update locales/messages.pot
|
||||||
update-pot: locales/messages.pot
|
update-pot: locales/messages.pot
|
||||||
|
@ -85,12 +85,11 @@ resources/$(BUNDLE_DIR)/Messages_%.class: locales/%.po | resources
|
||||||
resources/$(BUNDLE_DIR)/Messages_$(MESSAGE_LOCALE).class: locales/messages.pot | resources
|
resources/$(BUNDLE_DIR)/Messages_$(MESSAGE_LOCALE).class: locales/messages.pot | resources
|
||||||
msgfmt --java2 -d resources -r $(BUNDLE).Messages -l $(MESSAGE_LOCALE) $<
|
msgfmt --java2 -d resources -r $(BUNDLE).Messages -l $(MESSAGE_LOCALE) $<
|
||||||
|
|
||||||
# Translators use this when they update translations; this copies any
|
# Use this to initialize translations. Updating the PO files is done
|
||||||
# changes in the pot file into their language-specific po file
|
# automatically through a CI job that utilizes the scripts in the project's
|
||||||
locales/%.po: locales/messages.pot
|
# `bin` file, which themselves come from the `clj-i18n` project.
|
||||||
@if [ -f $@ ]; then \
|
locales/%.po: | locales
|
||||||
msgmerge -U $@ $< && touch $@; \
|
@if [ ! -f $@ ]; then \
|
||||||
else \
|
|
||||||
touch $@ && msginit --no-translator -l $(*F) -o $@ -i $<; \
|
touch $@ && msginit --no-translator -l $(*F) -o $@ -i $<; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -118,7 +117,7 @@ You can use the following targets:
|
||||||
|
|
||||||
i18n: refresh all the files in locales/ and recompile resources
|
i18n: refresh all the files in locales/ and recompile resources
|
||||||
update-pot: extract strings and update locales/messages.pot
|
update-pot: extract strings and update locales/messages.pot
|
||||||
locales/LANG.po: refresh or create translations for LANG
|
locales/LANG.po: create translations for LANG
|
||||||
msgfmt: compile the translations into Java classes; this step is
|
msgfmt: compile the translations into Java classes; this step is
|
||||||
needed to make translations available to the Clojure code
|
needed to make translations available to the Clojure code
|
||||||
and produces Java class files in resources/
|
and produces Java class files in resources/
|
||||||
|
|
Loading…
Reference in a new issue