Skip to content
Snippets Groups Projects
Commit f2051823 authored by Bhabesh Bhabani Mukhopadhyay's avatar Bhabesh Bhabani Mukhopadhyay
Browse files

localization in Observation

parent 608cbdde
No related branches found
No related tags found
No related merge requests found
<template> <template>
<div id="observation" class="hello container"> <div id="observation" class="hello container">
<div ><router-link id='btnBack' class="btn btn-success " to="/" onclick="$('.offcanvas-collapse').toggleClass('open')">Back</router-link></div> <div ><router-link id='btnBack' class="btn btn-success " to="/" onclick="$('.offcanvas-collapse').toggleClass('open')">{{ $t("prop.back.label") }}</router-link></div>
<div class="row"> <div class="row">
<h1 ref='titleObservation'>{{ msg }}</h1> <h1 ref='titleObservation'>{{ msg }}</h1>
</div> </div>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<div v-if="isMounted" class="row"> <div v-if="isMounted" class="row">
<span v-html="mandatoryField"></span> <span v-html="mandatoryField"></span>
<router-link id="linkMap" ref='linkMap' :to="{name:'MapObservation', params: {observationId:observation.observationId,geoinfo:mapGeoinfo,isMapPanelVisible:newMapPanel,locationPointOfInterestId:mapLocationPointOfInterestId,observationHeader:observationHeader, observationText:observationText,observation:observation}}">Observation Map </router-link> <router-link id="linkMap" ref='linkMap' :to="{name:'MapObservation', params: {observationId:observation.observationId,geoinfo:mapGeoinfo,isMapPanelVisible:newMapPanel,locationPointOfInterestId:mapLocationPointOfInterestId,observationHeader:observationHeader, observationText:observationText,observation:observation}}">{{ $t("prop.observation.map.label") }}</router-link>
</div> </div>
<div v-if="mapGeoinfo" id="divMapGeoInfo" class="row"> <div v-if="mapGeoinfo" id="divMapGeoInfo" class="row">
<div v-if="isMounted" class="col"> <div v-if="isMounted" class="col">
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<div class="clearfix"/> <div class="clearfix"/>
<div> <div>
<div class="row"><button class="btn btn-success" v-on:click="showQuantification"><span><h5>Tell/kvantifiser</h5></span></button></div> <div class="row"><button class="btn btn-success" v-on:click="showQuantification"><span><h5>{{ $t("prop.observation.quantification.label") }}</h5></span></button></div>
<div v-if="isQuantification" class="row"> <div v-if="isQuantification" class="row">
<div v-if="isMounted" id='divSchemaForm' class="border border-primary rounded" > <div v-if="isMounted" id='divSchemaForm' class="border border-primary rounded" >
<button id="btnCloseQuantification" class="border border-primary rounded-circle" type="button" v-on:click="closeQuantification">x</button> <button id="btnCloseQuantification" class="border border-primary rounded-circle" type="button" v-on:click="closeQuantification">x</button>
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
</div> </div>
<div ref='divObservationText' > <div ref='divObservationText' >
<div class="row"><span v-html="mandatoryField"></span>Observation Detail</div> <div class="row"><span v-html="mandatoryField"></span> {{ $t("prop.observation.detail.label") }}</div>
<div class="row"><input ref="observationHeader" type="text" v-model="observationHeader"/></div> <div class="row"><input ref="observationHeader" type="text" v-model="observationHeader"/></div>
<div class="row"><textarea v-model="observationText" /></div> <div class="row"><textarea v-model="observationText" /></div>
</div> </div>
...@@ -75,8 +75,8 @@ ...@@ -75,8 +75,8 @@
<div v-if="observation.deleted"></div> <div v-if="observation.deleted"></div>
<div v-else class="float-right"> <div v-else class="float-right">
<button class="btn btn-secondary " v-on:click="saveObservation">Save</button> <button class="btn btn-secondary " v-on:click="saveObservation">{{$t("prop.save.label")}}</button>
<button v-show="isDeleteBttnVisible" class="btn btn-danger " v-on:click="callForRemoveObservation">Delete</button> <button v-show="isDeleteBttnVisible" class="btn btn-danger " v-on:click="callForRemoveObservation">{{$t("prop.delete.label")}}</button>
</div> </div>
<modal-simple <modal-simple
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
v-on:close="closeModalSimple" v-on:close="closeModalSimple"
> >
<template v-slot:header> <template v-slot:header>
!! ERROR !! {{$t("prop.alert.header.error.label")}}
</template> </template>
<template v-slot:body> <template v-slot:body>
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
{{ $t("prop.err.observation.geoinfo") }} {{ $t("prop.err.observation.geoinfo") }}
</div> </div>
<div v-show="isObservationHeaderEmpty"> <div v-show="isObservationHeaderEmpty">
{{ $t("Observation details can not be empty",) }} {{ $t("prop.err.observation.header.empty") }}
</div> </div>
</template> </template>
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
> >
<template v-slot:header> <template v-slot:header>
!! ALERT !! {{$t("prop.alert.header.label")}}
</template> </template>
<template v-slot:body> <template v-slot:body>
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
</template> </template>
<template v-slot:footer> <template v-slot:footer>
Please chose the option below : {{ $t("prop.alert.footer.label") }}
</template> </template>
</modal> </modal>
......
{ {
"startpage": "Start page", "startpage": "Start page",
"prop.welcome.header.text" : "Observation App", "prop.welcome.header.text" : "Observation App",
"prop.welcome.login.success.text" : "Welcome !! ", "prop.welcome.login.success.text" : "Welcome !! ",
"prop.welcome.card.description.text" : "VIPS is an automatic forecasting system for agricultural pests and diseases, developed by NIBIO (the Norwegian Institute of Bioeconomy Research) and Norsk landbruksrådgivning (The Norwegian agricultural extension service). ", "prop.welcome.card.description.text" : "VIPS is an automatic forecasting system for agricultural pests and diseases, developed by NIBIO (the Norwegian Institute of Bioeconomy Research) and Norsk landbruksrådgivning (The Norwegian agricultural extension service). ",
"prop.logout.header.text" : "Logout", "prop.logout.header.text" : "Logout",
"prop.logout.success.text" : "You successfully log out ", "prop.logout.success.text" : "You successfully log out ",
"prop.observation.date.label" : "Observation Date", "prop.observation.date.label" : "Observation Date",
"prop.observation.quantification.label" : "Tell/kvantifiser",
"prop.observation.detail.label" : "Observation Detail",
"prop.observation.map.label" : "Observation Map",
"prop.places.search.label" : "Search", "prop.back.label" : "Back",
"prop.save.label" : "Save",
"prop.delete.label" : "Delete",
"prop.places.search.label" : "Search",
"prop.login.systems.wrong.credential" : "Wrong username and/or password. Please try again.", "prop.login.systems.wrong.credential" : "Wrong username and/or password. Please try again.",
"prop.crop.category.empty.alert" : "Please select Crop category", "prop.crop.category.empty.alert" : "Please select Crop category",
"prop.alert.header.label" : "!! ALERT !!",
"prop.alert.header.error.label" : "!! ERROR !!",
"prop.alert.footer.label" : "Please chose the option below",
"prop.err.observation.date.empty" : "Observation Date can not be empty", "prop.err.observation.date.empty" : "Observation Date can not be empty",
"prop.err.observation.geoinfo" : "Geo location can not be empty !!", "prop.err.observation.geoinfo" : "Geo location can not be empty !!",
"prop.err.observation.header.empty" : "Observation details can not be empty", "prop.err.observation.header.empty" : "Observation details can not be empty",
"prop.err.observation.remove.msg" : "This Observation will remove !! Are you sure ?", "prop.err.observation.remove.msg" : "This Observation will remove !! Are you sure ?",
"prop.err.observation.remove.warn" : "This Observation will be removeed" "prop.err.observation.remove.warn" : "This Observation will be removeed"
} }
\ No newline at end of file
{ {
"startpage": "Startsiden", "startpage": "Startsiden",
"prop.welcome.header.text" : "Observation App", "prop.welcome.header.text" : "Observation App",
"prop.welcome.login.success.text" : "Velkommen !! ", "prop.welcome.login.success.text" : "Velkommen !! ",
"prop.welcome.card.description.text" : "VIPS (Varsling Innen PlanteSkadegjørere) er utviklet av NIBIO og Norsk Landbruksrådgiving. Rådgivningstjenesten registrerer angrep av skadegjørere i felt, mens NIBIO leverer klimadata og tar seg av utvikling, drift og vedlikehold av systemet. ", "prop.welcome.card.description.text" : "VIPS (Varsling Innen PlanteSkadegjørere) er utviklet av NIBIO og Norsk Landbruksrådgiving. Rådgivningstjenesten registrerer angrep av skadegjørere i felt, mens NIBIO leverer klimadata og tar seg av utvikling, drift og vedlikehold av systemet. ",
"prop.logout.header.text" : "Logout", "prop.logout.header.text" : "Logout",
"prop.logout.success.text" : "You successfully log out ", "prop.logout.success.text" : "You successfully log out ",
"prop.observation.date.label" : "Observation Date", "prop.observation.date.label" : "Observation Date",
"prop.observation.quantification.label" : "Tell/kvantifiser",
"prop.observation.detail.label" : "Observation Detail",
"prop.observation.map.label" : "Observation Map",
"prop.places.search.label" : "Search", "prop.back.label" : "Back",
"prop.save.label" : "Save",
"prop.delete.label" : "Delete",
"prop.login.systems.wrong.credential" : "Wrong username and/or password. Please try again.", "prop.places.search.label" : "Search",
"prop.crop.category.empty.alert" : "Please select Crop category",
"prop.login.systems.wrong.credential" : "Wrong username and/or password. Please try again.",
"prop.crop.category.empty.alert" : "Please select Crop category",
"prop.alert.header.label" : "!! ALERT !!",
"prop.alert.header.error.label" : "!! ERROR !!",
"prop.alert.footer.label" : "Please chose the option below",
"prop.err.observation.date.empty" : "Observation Date can not be empty", "prop.err.observation.date.empty" : "Observation Date can not be empty",
"prop.err.observation.geoinfo" : "Geo location can not be empty !!", "prop.err.observation.geoinfo" : "Geo location can not be empty !!",
"prop.err.observation.header.empty" : "Observation details can not be empty", "prop.err.observation.header.empty" : "Observation details can not be empty",
"prop.err.observation.remove.msg" : "This Observation will remove !! Are you sure ?", "prop.err.observation.remove.msg" : "This Observation will remove !! Are you sure ?",
"prop.err.observation.remove.warn" : "This Observation will be removed" "prop.err.observation.remove.warn" : "This Observation will be removed"
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment