Mercurial > gemma
changeset 1426:acb4e493775e
client: add way to fix lost leading whitespaces in translations
* Add a class to the whole application to correct the vue-gettext
problems with removing whitespace, see assets/application.sass.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Thu, 29 Nov 2018 15:44:15 +0100 |
parents | c8fe86d1c270 |
children | 350e9a168bc8 |
files | client/src/assets/application.sass client/src/components/map/Identify.vue |
diffstat | 2 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/assets/application.sass Thu Nov 29 15:15:20 2018 +0100 +++ b/client/src/assets/application.sass Thu Nov 29 15:44:15 2018 +0100 @@ -78,3 +78,14 @@ margin-left: 0.5rem margin-right: 0.5rem margin-bottom: 1rem + +// needed to fix the whitespace problem of +// https://github.com/Polyconseil/vue-gettext/issues/80 +// use like +// <a href="..">link</a> +// <span v-translate class="fix-trans-space">contributors.</span> +// +// done centrally, so we can fix it centrally for better vue-gettext version +.fix-trans-space + &:before + content: " "
--- a/client/src/components/map/Identify.vue Thu Nov 29 15:15:20 2018 +0100 +++ b/client/src/components/map/Identify.vue Thu Nov 29 15:44:15 2018 +0100 @@ -50,7 +50,7 @@ <br> <translate>Some data</translate>© <a href="https://www.openstreetmap.org/copyright">OpenSteetMap</a> - <translate>contributors.</translate> + <span v-translate class="fix-trans-space">contributors.</span> </div> </div> </div>