stable

Clone or download

Read-only

Fix gettext extraction when no pot files

Since git #ee672d5d53dc917386921302875e63f34358d6cd, extraction of gettext in plugins vue files is broken, since absence of .pot files stops extraction in a given plugin. To test: 1. add <translate>plop</translate> in the <template> of a vue file, like plugins/document/scripts/document/components/User/UserBadge.vue 2. remove leftovers .pot files in plugins/document: $> find plugins/document -name "*.pot" -exec rm "{}" \; 3. generate po files: $> make generate-po 4. run `git status` => you should have `plugins/document/scripts/document/po/fr.po` that is updated The same in PHP in plugins/document/include. Part of story #12553: see flags that categorize my project in all project pages Change-Id: I058294459c5dacc9cac400930ee8b27b189afd30

Modified Files

Name
M tools/utils/generate-po.php +25 −15 Go to diff View file