Mercurial > gemma
changeset 2760:c6fba10926cc
client:correct a set of strings marking
* correct strings marking passing to UIBoxheader
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Thu, 21 Mar 2019 17:04:37 +0100 |
parents | 7badd99c9315 |
children | 71e7237110ba |
files | client/src/components/Bottlenecks.vue client/src/components/ImportApprovedGaugeMeasurement.vue client/src/components/ImportSoundingresults.vue client/src/components/ImportStretches.vue client/src/components/ImportWaterwayProfiles.vue client/src/components/importoverview/ImportOverview.vue client/src/components/importschedule/Importschedule.vue client/src/components/systemconfiguration/Systemconfiguration.vue client/src/components/usermanagement/Usermanagement.vue |
diffstat | 9 files changed, 41 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/Bottlenecks.vue Thu Mar 21 16:40:02 2019 +0100 +++ b/client/src/components/Bottlenecks.vue Thu Mar 21 17:04:37 2019 +0100 @@ -2,7 +2,7 @@ <div> <UIBoxHeader icon="ship" - title="Bottlenecks" + :title="bottlenecksLabel" :closeCallback="$parent.close" /> <UITableHeader @@ -144,6 +144,9 @@ "showSplitscreen" ]), ...mapState("bottlenecks", ["bottlenecksList"]), + bottlenecksLabel() { + return this.$gettext("Bottlenecks"); + }, sortIcon() { return this.sortDirection === "ASC" ? "sort-amount-down"
--- a/client/src/components/ImportApprovedGaugeMeasurement.vue Thu Mar 21 16:40:02 2019 +0100 +++ b/client/src/components/ImportApprovedGaugeMeasurement.vue Thu Mar 21 17:04:37 2019 +0100 @@ -2,7 +2,7 @@ <div class="d-flex flex-row"> <Spacer></Spacer> <div class="card sysconfig mt-2 shadow-xs w-100 h-100 mr-2"> - <UIBoxHeader icon="upload" title="Import approved gaugemeasurements" /> + <UIBoxHeader icon="upload" :title="importGaugmeasurmentLabel" /> <div class="card-body stretches-card"> <div class="w-95 ml-auto mr-auto mt-4 mb-4"> <div class="d-flex flex-column text-left w-25"> @@ -87,6 +87,11 @@ originator: "viadonau" }; }, + computed: { + importGaugmeasurmentLabel() { + return this.$gettext("Import approved gaugemeasurements"); + } + }, methods: { initialState() { this.uploadLabel = this.$gettext("choose file to upload");
--- a/client/src/components/ImportSoundingresults.vue Thu Mar 21 16:40:02 2019 +0100 +++ b/client/src/components/ImportSoundingresults.vue Thu Mar 21 17:04:37 2019 +0100 @@ -3,7 +3,7 @@ <div class="d-flex flex-row"> <Spacer></Spacer> <div class="card shadow-xs mt-2 mr-2 w-100 h-100"> - <UIBoxHeader icon="upload" title="Import Soundingresults" /> + <UIBoxHeader icon="upload" :title="importSoundingresultsLabel" /> <div v-if="editState"> <div v-for="(message, index) in messages" @@ -299,6 +299,9 @@ computed: { ...mapState("application", ["showContextBox"]), ...mapState("bottlenecks", ["bottlenecks"]), + importSoundingresultsLabel() { + return this.$gettext("Import Soundingresults"); + }, disableUploadButton() { if (this.importState === IMPORTSTATE.UPLOAD) return this.disableUpload; if (
--- a/client/src/components/ImportStretches.vue Thu Mar 21 16:40:02 2019 +0100 +++ b/client/src/components/ImportStretches.vue Thu Mar 21 17:04:37 2019 +0100 @@ -2,7 +2,7 @@ <div class="d-flex flex-column mb-3"> <UIBoxHeader icon="road" - title="Define Stretches" + :title="defineStretchesLabel" :closeCallback="$parent.close" /> <div v-if="!edit" class="mb-3"> @@ -322,6 +322,9 @@ ...mapState("map", ["identifiedFeatures", "currentMeasurement"]), ...mapGetters("user", ["isSysAdmin"]), ...mapState("imports", ["stretches"]), + defineStretchesLabel() { + return this.$gettext("Define Stretches"); + }, stretchesInStaging() { const result = []; for (let stretch of this.stretches) {
--- a/client/src/components/ImportWaterwayProfiles.vue Thu Mar 21 16:40:02 2019 +0100 +++ b/client/src/components/ImportWaterwayProfiles.vue Thu Mar 21 17:04:37 2019 +0100 @@ -2,7 +2,7 @@ <div class="d-flex flex-row"> <Spacer></Spacer> <div class="card sysconfig mt-2 shadow-xs w-100 h-100 mr-2"> - <UIBoxHeader icon="upload" title="Import Waterway Profiles" /> + <UIBoxHeader icon="upload" :title="importWaterwayProfilesLabel" /> <div class="card-body stretches-card"> <div class="w-95 ml-auto mr-auto mt-4 mb-4"> <div class="mb-4"> @@ -131,6 +131,11 @@ uploadFile: null }; }, + computed: { + importWaterwayProfilesLabel() { + return this.$gettext("Import Waterway Profiles"); + } + }, methods: { fileSelected(e) { const files = e.target.files || e.dataTransfer.files;
--- a/client/src/components/importoverview/ImportOverview.vue Thu Mar 21 16:40:02 2019 +0100 +++ b/client/src/components/importoverview/ImportOverview.vue Thu Mar 21 17:04:37 2019 +0100 @@ -2,7 +2,7 @@ <div class="overview"> <UIBoxHeader icon="clipboard-check" - title="Import review" + :title="importReviewLabel" :closeCallback="$parent.close" :actions="[{ callback: loadLogs, icon: 'redo' }]" /> @@ -164,6 +164,9 @@ "next" ]), ...mapGetters("imports", ["filters"]), + importReviewLabel() { + return this.$gettext("Import review"); + }, interval() { return [this.startDate, this.endDate]; }
--- a/client/src/components/importschedule/Importschedule.vue Thu Mar 21 16:40:02 2019 +0100 +++ b/client/src/components/importschedule/Importschedule.vue Thu Mar 21 17:04:37 2019 +0100 @@ -3,7 +3,7 @@ <Spacer></Spacer> <div class="mt-2 w-100"> <div class="card flex-grow-1 schedulecard shadow-xs"> - <UIBoxHeader icon="clock" title="Import Schedule" /> + <UIBoxHeader icon="clock" :title="importScheduleLabel" /> <div class="searchandfilter p-3 w-50 mx-auto"> <div class="searchgroup input-group"> <div class="input-group-prepend"> @@ -141,6 +141,9 @@ computed: { ...mapState("application", ["showSidebar"]), ...mapState("importschedule", ["schedules", "importScheduleDetailVisible"]), + importScheduleLabel() { + return this.$gettext("Import Schedule"); + }, spacerStyle() { return [ "spacer ml-3",
--- a/client/src/components/systemconfiguration/Systemconfiguration.vue Thu Mar 21 16:40:02 2019 +0100 +++ b/client/src/components/systemconfiguration/Systemconfiguration.vue Thu Mar 21 17:04:37 2019 +0100 @@ -2,7 +2,7 @@ <div class="d-flex flex-row"> <Spacer></Spacer> <div class="card sysconfig mt-2 shadow-xs"> - <UIBoxHeader icon="wrench" title="Systemconfiguration" /> + <UIBoxHeader icon="wrench" :title="systemconfigurationLabel" /> <div class="card-body text-left"> <PDFTemplates /> <ColorSettings v-if="isSysAdmin" /> @@ -46,7 +46,10 @@ ColorSettings: () => import("./ColorSettings") }, computed: { - ...mapGetters("user", ["isSysAdmin"]) + ...mapGetters("user", ["isSysAdmin"]), + systemconfigurationLabel() { + return this.$gettext("Systemconfiguration"); + } } }; </script>
--- a/client/src/components/usermanagement/Usermanagement.vue Thu Mar 21 16:40:02 2019 +0100 +++ b/client/src/components/usermanagement/Usermanagement.vue Thu Mar 21 17:04:37 2019 +0100 @@ -4,7 +4,7 @@ <div class="d-flex content py-2"> <div :class="userlistStyle"> <div class="card shadow-xs"> - <UIBoxHeader icon="users-cog" title="Users" /> + <UIBoxHeader icon="users-cog" :title="usersLabel" /> <UITableHeader :columns="[ { id: 'role', title: 'Role', class: 'col-1' }, @@ -166,6 +166,9 @@ "currentUser" ]), ...mapState("application", ["showSidebar"]), + usersLabel() { + return this.$gettext("Users"); + }, sendMailLabel() { return this.$gettext("Send testmail"); },