stable

Clone or download

Read-only

request #10669: Be able to translate strings in javascript without angular

To translate strings, you must instantiate node-gettext, set the locale of that instance and use gettext_instance.gettext(). Extracting the strings to a .pot file is done through "make generate-po" Change-Id: I91baad79ae145cc1313a6ee4607d92462860489c

Modified Files

Name
M Makefile +1 −1 Go to diff View file
M plugins/tracker/build-manifest.json +7 −1 Go to diff View file
M plugins/tracker/include/Tracker/Widget/ProjectCrossTrackerSearchPresenter.php +15 −51 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +0 −24 Go to diff View file
M plugins/tracker/site-content/tuleap-tracker.pot +0 −24 Go to diff View file
M plugins/tracker/templates/widgets/project-cross-tracker-search-reading-mode.mustache +1 −5 Go to diff View file
M plugins/tracker/templates/widgets/project-cross-tracker-search-results.mustache +0 −1 Go to diff View file
M plugins/tracker/templates/widgets/project-cross-tracker-search-writing-mode.mustache +0 −18 Go to diff View file
M plugins/tracker/www/scripts/cross-tracker/po/fr.po +26 −5 Go to diff View file
M plugins/tracker/www/scripts/cross-tracker/po/template.pot +20 −6 Go to diff View file
M plugins/tracker/www/scripts/cross-tracker/src/app/index.js +18 −7 Go to diff View file
M plugins/tracker/www/scripts/cross-tracker/src/app/query-result-controller.js +4 −5 Go to diff View file
M plugins/tracker/www/scripts/cross-tracker/src/app/reading-mode/reading-mode-controller.js +6 −8 Go to diff View file
M plugins/tracker/www/scripts/cross-tracker/src/app/writing-mode/project-selector.js +5 −4 Go to diff View file
A plugins/tracker/www/scripts/cross-tracker/src/app/writing-mode/tracker-option.mustache +6 −0 Go to diff View file
M plugins/tracker/www/scripts/cross-tracker/src/app/writing-mode/tracker-selection-controller.js +7 −4 Go to diff View file
M plugins/tracker/www/scripts/cross-tracker/src/app/writing-mode/tracker-selector.js +13 −8 Go to diff View file
M plugins/tracker/www/scripts/package-lock.json +433 −422 Go to diff View file
M plugins/tracker/www/scripts/package.json +3 −0 Go to diff View file
M plugins/tracker/www/scripts/webpack.config.js +11 −4 Go to diff View file
M plugins/tracker/www/themes/BurningParrot/css/includes/_cross-tracker.scss +0 −6 Go to diff View file
M tools/rpm/tuleap.rhel6.spec +1 −1 Go to diff View file
M tools/rpm/tuleap.rhel7.spec +1 −1 Go to diff View file
A tools/utils/generate-po.php +148 −0 Go to diff View file
D tools/utils/generate-po.sh +0 −116 Go to diff View file