diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2021-07-23 16:38:52 +0200 |
|---|---|---|
| committer | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2021-07-23 16:38:52 +0200 |
| commit | d3d22a791baf475835786cb699e8a04819804e1b (patch) | |
| tree | e6117d79b6ebcdeb1d4bf7127921e1146c4725df /Makefile | |
| parent | 16a068da3ec80922d6305efe7405c94a56f7c048 (diff) | |
revert changes for https://develop.studip.de/trac/ticket/11711 as it breaks the build, re #5
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 39 |
1 files changed, 0 insertions, 39 deletions
@@ -86,42 +86,3 @@ optimize-icons: npm # dummy target to force update of "doc" target force_update: - - -LOCALES = en -NPM_BIN = $(shell npm bin) -VUE_GETTEXT_SOURCES = $(shell find ./resources -name '*.js' -o -name '*.vue' 2> /dev/null) -VUE_PO_FILE = js-resources.po -VUE_POT_FILE = ./locale/js-ressources.pot -VUE_TRANSLATIONS = ./resources/locales/translations.json -VUE_TRANSLATION_FILES ?= $(patsubst %,./resources/locales/%.json,$(LOCALES)) -VUE_LOCALE_FILES ?= $(patsubst %,./locale/%/LC_MESSAGES/$(VUE_PO_FILE),$(LOCALES)) - -vue-gettext-extract: $(VUE_POT_FILE) -vue-gettext-compile: $(VUE_TRANSLATION_FILES) -vue-gettext-clean:; rm -f $(VUE_POT_FILE) $(VUE_TRANSLATIONS) $(VUE_TRANSLATIONS) - -$(VUE_POT_FILE): $(VUE_GETTEXT_SOURCES) - $(NPM_BIN)/gettext-extract --quiet --attribute v-translate \ - --output $@ $(VUE_GETTEXT_SOURCES) - - @for lang in $(LOCALES); do \ - export PO_FILE=./locale/$$lang/LC_MESSAGES/$(VUE_PO_FILE); \ - if [ -f $$PO_FILE ]; then \ - msgmerge --lang=$$lang \ - -o $$PO_FILE \ - -C $$PO_FILE \ - ./locale/$$lang/LC_MESSAGES/studip.po $@ || break ;\ - msgattrib --set-obsolete --ignore-file=$(VUE_POT_FILE) -o $$PO_FILE $$PO_FILE; \ - msgattrib --no-obsolete -o $$PO_FILE $$PO_FILE; \ - else \ - msginit --no-translator --locale=$$lang --input=$@ --output-file=$$PO_FILE || break ; \ - msgattrib --no-wrap --no-obsolete -o $$PO_FILE $$PO_FILE || break; \ - fi; \ - done; - -$(VUE_TRANSLATIONS): $(VUE_LOCALE_FILES) - $(NPM_BIN)/gettext-compile --output $@ $(VUE_LOCALE_FILES) - -$(VUE_TRANSLATION_FILES): $(VUE_TRANSLATIONS) - php cli/vue-gettext-split-translations.php |
