Mercurial > gemma
changeset 4721:b2119cf5c7fb
mark date for translation
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 17 Oct 2019 16:21:12 +0200 |
parents | b3b33e94cee8 |
children | 462d8f71da62 |
files | client/src/components/gauge/HydrologicalConditions.vue client/src/components/gauge/Waterlevel.vue |
diffstat | 2 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/gauge/HydrologicalConditions.vue Thu Oct 17 14:00:14 2019 +0200 +++ b/client/src/components/gauge/HydrologicalConditions.vue Thu Oct 17 16:21:12 2019 +0200 @@ -107,7 +107,7 @@ * Markus Kottländer <markus.kottlaender@intevation.de> * Fadi Abbud <fadi.abbud@intevation.de> */ - +import app from "@/main"; import { mapState, mapGetters } from "vuex"; import * as d3 from "d3"; import debounce from "debounce"; @@ -615,8 +615,8 @@ ? d3.timeFormat("%H:%M") : d3.timeMonth(date) < date ? d3.timeWeek(date) < date - ? d3.timeFormat("%b %d") - : d3.timeFormat("%b %d") + ? d3.timeFormat(app.$gettext("%a %d")) + : d3.timeFormat(app.$gettext("%b %d")) : d3.timeFormat("%B"))(date); }; return {
--- a/client/src/components/gauge/Waterlevel.vue Thu Oct 17 14:00:14 2019 +0200 +++ b/client/src/components/gauge/Waterlevel.vue Thu Oct 17 16:21:12 2019 +0200 @@ -117,6 +117,7 @@ * * Fadi Abbud <fadi.abbud@intevation.de> */ +import app from "@/main"; import { mapState, mapGetters } from "vuex"; import * as d3Base from "d3"; import { lineChunked } from "d3-line-chunked"; @@ -365,8 +366,8 @@ ? d3.timeFormat("%H:%M") : d3.timeMonth(date) < date ? d3.timeWeek(date) < date - ? d3.timeFormat("%a %d") - : d3.timeFormat("%b %d") + ? d3.timeFormat(app.$gettext("%a %d")) + : d3.timeFormat(app.$gettext("%b %d")) : d3.timeYear(date) < date ? d3.timeFormat("%B") : d3.timeFormat("%Y"))(date);