locale/Makefile in foreman_puppet-5.1.3 vs locale/Makefile in foreman_puppet-6.0.0

- old
+ new

@@ -12,10 +12,11 @@ MOFILE = $(DOMAIN).mo POFILES = $(shell find . -name '$(DOMAIN).po') MOFILES = $(patsubst %.po,%.mo,$(POFILES)) POXFILES = $(patsubst %.po,%.pox,$(POFILES)) EDITFILES = $(patsubst %.po,%.edit.po,$(POFILES)) +JSFILES = $(shell find ../app/assets/javascripts/*/locale -name '$(DOMAIN).js') %.mo: %.po mkdir -p $(shell dirname $@)/LC_MESSAGES msgfmt -o $(shell dirname $@)/LC_MESSAGES/$(MOFILE) $< @@ -40,21 +41,23 @@ for f in $(shell find ./ -name "*.po") ; do \ msguniq $$f -o $$f ; \ done tx-pull: $(EDITFILES) - tx pull -f + cd .. && tx pull -f for f in $(EDITFILES) ; do \ sed -i 's/^\("Project-Id-Version: \).*$$/\1$(DOMAIN) $(VERSION)\\n"/' $$f; \ done tx-update: tx-pull @echo - @echo Run rake plugin:gettext[$(DOMAIN)] from the Foreman installation, then make -C locale mo-files to finish + @echo Run rake plugin:gettext[$(DOMAIN)] from the Foreman installation + @echo then run rake plugin:po_to_json[$(DOMAIN)] from the Foreman installation + @echo then run make -C locale mo-files to finish @echo mo-files: $(MOFILES) - git add $(POFILES) $(POTFILE) ../locale/*/LC_MESSAGES + git add $(POFILES) $(POTFILE) $(JSFILES) ../locale/*/LC_MESSAGES git commit -m "i18n - pulling from tx" @echo @echo Changes commited! @echo