comparison client/docs/developer.md @ 1802:70573eea890e

improve Translation process : improve package.json and update the documentation * update vue-gettext dependency * add script to automate the `make translations` process via yarn serve/build * delete run:both, it misses the step in serve/build * update the Documention according to the last changes
author Fadi Abbud <fadi.abbud@intevation.de>
date Tue, 15 Jan 2019 09:50:59 +0100
parents ec0a0542c221
children 922075a7d598
comparison
equal deleted inserted replaced
1801:11669276e197 1802:70573eea890e
73 - EN 73 - EN
74 - DE 74 - DE
75 - SK 75 - SK
76 - HU 76 - HU
77 - HR 77 - HR
78 - RS
79 - BiH
80 - BG 78 - BG
81 - RO 79 - RO
82 - UA
83 80
84 ## Our preferred translation cycle is as follows: 81 ## Our preferred translation cycle is as follows:
85 82
86 Application -> .po files -> Weblate -> .po files -> Application 83 Application -> .po files -> Weblate -> .po files -> Application
87 84
111 * `gettext` (e.g. from Debian gettext 0.19.8.1-9) 108 * `gettext` (e.g. from Debian gettext 0.19.8.1-9)
112 * `vue-gettext` and `easygettext` (e.g. via yarn or npm) 109 * `vue-gettext` and `easygettext` (e.g. via yarn or npm)
113 110
114 In order to extract the messages from the templates call `make makemessages`. 111 In order to extract the messages from the templates call `make makemessages`.
115 After that you have the `.po`-file which could be translated. 112 After that you have the `.po`-file which could be translated.
116 After translation, you have to call `make translations` to generate the `translations.json` 113
114 After translation, `make translations` has to be called to generate the `translations.json`, that is being done automatically via yarn serve/build.
117 which is consumed by `vue-gettext`. 115 which is consumed by `vue-gettext`.
118 116
119 The workflow is as follows: 117 The workflow is as follows:
120 118
121 `component.vue ---> /tmp/template.pot ---> app/locale/fr_FR/LC_MESSAGES/app.po ---> app/translations.json` 119 `component.vue ---> /tmp/template.pot ---> app/locale/fr_FR/LC_MESSAGES/app.po ---> app/translations.json`