Skip to content

Commit 1f666e8

Browse files
committed
Adss missing control localzation
Signed-off-by: Daniel Kastl <[email protected]>
1 parent 7a5eec9 commit 1f666e8

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

config/locales/en.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,11 @@ en:
9999
upload: "Upload GeoJSON"
100100
fullscreen: "Toggle full-screen"
101101
rotate: "Reset rotation"
102-
zoom-in: "Zoom in"
103-
zoom-out: "Zoom out"
102+
zoom_in: "Zoom in"
103+
zoom_out: "Zoom out"
104+
point: "Point editor"
105+
linestring: "Line editor"
106+
polygon: "Area editor"
104107
modal:
105108
load: "Load"
106109
cancel: "Cancel"

src/components/gtt-client.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ export class GttClient {
140140
controls: control_defaults({
141141
attributionOptions: {
142142
collapsible: false
143+
},
144+
zoomOptions: {
145+
zoomInTipLabel: this.i18n.control.zoom_in,
146+
zoomOutTipLabel: this.i18n.control.zoom_out
143147
}
144148
})
145149
})
@@ -485,7 +489,7 @@ export class GttClient {
485489

486490
const control = new Toggle({
487491
html: `<i class="material-icons" >${mdi}</i>`,
488-
title: type,
492+
title: this.i18n.control[type.toLowerCase()],
489493
interaction: draw,
490494
active: (idx === 0)
491495
})
@@ -544,7 +548,7 @@ export class GttClient {
544548

545549
editbar.addControl(new Button({
546550
html: '<i class="material-icons">file_upload</i>',
547-
title: this.i18n.control.geojson,
551+
title: this.i18n.control.upload,
548552
handleClick: () => {
549553
dialog.dialog('open')
550554
}

0 commit comments

Comments
 (0)