Mercurial > gemma
comparison client/docs/developer.md @ 1879:9a2fbeaabd52 dev-pdf-generation
merging in from branch default
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Tue, 15 Jan 2019 10:07:10 +0100 |
parents | 70573eea890e |
children | 922075a7d598 |
comparison
equal
deleted
inserted
replaced
1878:f030182f82f1 | 1879:9a2fbeaabd52 |
---|---|
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` |