stable

Clone or download

Read-only

Prepare gettext extraction for Typescript

part of request #13702 Introduce Typescript in Vue apps No functional change expected. When you change a translated string in a Vue component, either with - v-translate - <translate> tag - $gettext (and variants) and you run `make generate-po`, then you will see a change in the corresponding ".po" file. Please check that Tracker color picker, Cardwall color picker (columns) and the "Move artifact" modal are still translated. Their "po" files have been split. ----- This contribution changes the build-manifest format: - "script" is replaced by "src" and is now consistent with all other gettext-related configuration. - "src" is a path to a folder where the extractor will search for all ".vue" files and extract translations from them. It also removes all "extract-gettext-cli" NPM scripts. This is now centralized in "generate-po". As a result, additional contributions will be needed to align external plugins. This contribution also removes the dependency on "easygettext". We instead have an internal script to extract gettext from Vue + Javascript and Vue + Typescript components. Change-Id: I029a965943588a933ff457d25c0504bbe5adda42

Modified Files

Name
M build-manifest.json +1 −1 Go to diff View file
M package-lock.json +333 −210 Go to diff View file
M package.json +9 −1 Go to diff View file
M plugins/agiledashboard/build-manifest.json +1 −1 Go to diff View file
M plugins/agiledashboard/www/js/package.json +1 −2 Go to diff View file
M plugins/create_test_env/build-manifest.json +1 −1 Go to diff View file
M plugins/create_test_env/scripts/package.json +1 −2 Go to diff View file
M plugins/crosstracker/build-manifest.json +1 −1 Go to diff View file
M plugins/crosstracker/scripts/package.json +1 −2 Go to diff View file
M plugins/document/build-manifest.json +1 −1 Go to diff View file
M plugins/document/scripts/package.json +1 −2 Go to diff View file
M plugins/git/build-manifest.json +3 −3 Go to diff View file
M plugins/git/www/scripts/package.json +1 −2 Go to diff View file
D plugins/git/www/scripts/permissions-per-group/package.json +0 −16 Go to diff View file
D plugins/git/www/scripts/repository/branch-tag-selector/package-lock.json +0 −5 Go to diff View file
D plugins/git/www/scripts/repository/branch-tag-selector/package.json +0 −16 Go to diff View file
M plugins/label/build-manifest.json +1 −1 Go to diff View file
M plugins/label/www/scripts/package.json +1 −2 Go to diff View file
M plugins/pullrequest/build-manifest.json +1 −1 Go to diff View file
M plugins/pullrequest/www/scripts/package.json +1 −2 Go to diff View file
M plugins/release_widget/build-manifest.json +1 −1 Go to diff View file
M plugins/release_widget/scripts/package.json +0 −1 Go to diff View file
M plugins/svn/build-manifest.json +1 −1 Go to diff View file
M plugins/svn/www/scripts/package.json +1 −2 Go to diff View file
M plugins/timetracking/build-manifest.json +2 −6 Go to diff View file
M plugins/timetracking/www/scripts/package.json +1 −2 Go to diff View file
M plugins/tracker/build-manifest.json +9 −5 Go to diff View file
R plugins/tracker/www/scripts/po/fr.po Go to diff View file
M plugins/tracker/www/scripts/artifact-action-buttons/src/modal.js +2 −2 Go to diff View file
M plugins/tracker/www/scripts/colorpicker/index.js +2 −2 Go to diff View file
A plugins/tracker/www/scripts/colorpicker/po/fr.po +23 −0 Go to diff View file
M plugins/tracker/www/scripts/package.json +1 −2 Go to diff View file
D plugins/tracker/www/scripts/permissions-per-group/package.json +0 −16 Go to diff View file
D plugins/tracker/www/scripts/workflow-transitions/package.json +0 −16 Go to diff View file
M src/www/scripts/package.json +0 −1 Go to diff View file
M tools/utils/generate-po.php +8 −8 Go to diff View file
M tools/utils/scripts/easygettext-loader.js +3 −3 Go to diff View file
A tools/utils/scripts/gettext/compile.js +80 −0 Go to diff View file
A tools/utils/scripts/gettext/constants.js +47 −0 Go to diff View file
A tools/utils/scripts/gettext/extract.js +547 −0 Go to diff View file
A tools/utils/scripts/vue-typescript-gettext-extractor-cli.js +141 −0 Go to diff View file