Mercurial > gemma
diff client/src/components/map/Identify.vue @ 1416:3af7ad9717e2
Client: add a set fo marked translation
* add some marked transaltions in the templates.
and update the corresponding .po files.
* remove trailing whitespace and improve the formating in some files
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Thu, 29 Nov 2018 11:08:02 +0100 |
parents | 1a7c8ea22392 |
children | 2d1fc72491b9 |
line wrap: on
line diff
--- a/client/src/components/map/Identify.vue Thu Nov 29 11:02:51 2018 +0100 +++ b/client/src/components/map/Identify.vue Thu Nov 29 11:08:02 2018 +0100 @@ -1,54 +1,59 @@ <template> - <div :class="['box ui-element rounded bg-white text-nowrap', { expanded: showIdentify }]"> - <div style="width: 20rem"> - <h6 class="mb-0 py-2 px-3 border-bottom d-flex align-items-center"> - <font-awesome-icon icon="info" class="mr-2"></font-awesome-icon> - <translate>Identified</translate> - <font-awesome-icon - icon="times" - class="ml-auto text-muted" - @click="$store.commit('application/showIdentify', false)" - ></font-awesome-icon> - </h6> - <div class="d-flex flex-column features p-3 flex-grow-1 text-left"> - <div v-if="currentMeasurement"> - <b> - {{ currentMeasurement.quantity }} - ({{ currentMeasurement.unitSymbol }}): - </b><br> - <small>{{ currentMeasurement.value }}</small> - </div> - <div v-for="(feature, i) of identifiedFeatures" :key="feature.getId()" > - <div v-if="feature.getId()" :class="{ 'mt-2': i }"> - <b>{{ feature.getId().replace(/[.][^.]*$/,"") /* cut away everything from the last . to the end */}}:</b> - <small - v-for="(value, key) in prepareProperties(feature)" - :key="key" - > - <div v-if="value">{{key}}:{{value}}</div> - </small> - </div> - </div> - <div v-if="!currentMeasurement && !identifiedFeatures.length" class="text-muted small text-center my-auto"> - <translate>No features identified.</translate> - </div> - </div> - <div class="versioninfo border-top p-3 text-left"> - <translate>This app uses </translate><i>gemma</i>,<translate> which is Free Software under</translate> - <br> - AGPL-3.0-or-later - <translate> without warranty, see docs for details.</translate><br> + <div :class="['box ui-element rounded bg-white text-nowrap', { expanded: showIdentify }]"> + <div style="width: 20rem"> + <h6 class="mb-0 py-2 px-3 border-bottom d-flex align-items-center"> + <font-awesome-icon icon="info" class="mr-2"></font-awesome-icon> + <translate>Identified</translate> + <font-awesome-icon + icon="times" + class="ml-auto text-muted" + @click="$store.commit('application/showIdentify', false)" + ></font-awesome-icon> + </h6> + <div class="d-flex flex-column features p-3 flex-grow-1 text-left"> + <div v-if="currentMeasurement"> + <b> + {{ currentMeasurement.quantity }} + ({{ currentMeasurement.unitSymbol }}): + </b> + <br> + <small>{{ currentMeasurement.value }}</small> + </div> + <div v-for="(feature, i) of identifiedFeatures" :key="feature.getId()"> + <div v-if="feature.getId()" :class="{ 'mt-2': i }"> + <b>{{ feature.getId().replace(/[.][^.]*$/,"") /* cut away everything from the last . to the end */}}:</b> + <small v-for="(value, key) in prepareProperties(feature)" :key="key"> + <div v-if="value">{{key}}:{{value}}</div> + </small> + </div> + </div> + <div + v-if="!currentMeasurement && !identifiedFeatures.length" + class="text-muted small text-center my-auto" + > + <translate>No features identified.</translate> + </div> + </div> + <div class="versioninfo border-top p-3 text-left"> + <translate>This app uses</translate> + <i>gemma</i>, + <translate>which is Free Software under</translate> + <br>AGPL-3.0-or-later + <translate>without warranty, see docs for details.</translate> + <br> - <a href="https://hg.intevation.de/gemma/file/tip"><translate>source-code</translate></a> - {{ versionStr }} - <br> - © via donau. ⓔ Intevation. - <br><translate>Some data </translate>© - <a href="https://www.openstreetmap.org/copyright">OpenSteetMap</a> - <translate>contributors.</translate> - </div> - </div> + <a href="https://hg.intevation.de/gemma/file/tip"> + <translate>source-code</translate> + </a> + {{ versionStr }} + <br>© via donau. ⓔ Intevation. + <br> + <translate>Some data</translate>© + <a href="https://www.openstreetmap.org/copyright">OpenSteetMap</a> + <translate>contributors.</translate> + </div> </div> + </div> </template> <style lang="sass" scoped>