Skip to content

Commit

Permalink
Merge pull request #1047 from simon-leech/translations
Browse files Browse the repository at this point in the history
Translations
  • Loading branch information
RobAndrewHurst authored Jan 23, 2024
2 parents df5650d + 9ad7756 commit ea8fadd
Show file tree
Hide file tree
Showing 32 changed files with 1,080 additions and 312 deletions.
18 changes: 15 additions & 3 deletions lib/dictionaries/_dictionaries.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,28 @@ import pl from './pl.mjs'

import ja from './ja.mjs'

import ko from './ko.mjs'

import zh from './cn.mjs'

import zh_tw from './cn_trad.mjs'

import esp from './esp.mjs'

import it from './it.mjs'

import tr from './tr.mjs'

import th from './th.mjs'

export default {
en: en,
de: de,
fr: fr,
pl: pl,
ja: ja,
ko: ko,
zh: zh,
zh_tw: zh_tw,
esp: esp,
it: it,
tr: tr,
th: th
}
6 changes: 4 additions & 2 deletions lib/dictionaries/cn.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export default {
save: '保存',
cancel: '取消',
no_results: '未找到相关地点',
cancel: '取消',
confirm_delete: '您确定要删除吗? 这将无法撤消。',
invalid_geometry: '无效图形',
no_results: '未找到相关结果',
}
7 changes: 7 additions & 0 deletions lib/dictionaries/cn_trad.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default {
save: '保存',
cancel: '取消',
confirm_delete: '您確定要刪除嗎? 這將無法撤銷。',
invalid_geometry: '無效圖形',
no_results: '未找到相關結果',
}
3 changes: 2 additions & 1 deletion lib/dictionaries/de.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export default {
save: 'Speichern',
cancel: 'Abbrechen',
invalid_geometry: 'Ungültige Geometrie',
confirm_delete: 'Bestätigung des Löschvorgang',
invalid_geometry: 'Ungültige Geometrie',
no_results: 'Suche ist ergebnislos',
}
7 changes: 7 additions & 0 deletions lib/dictionaries/esp.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default {
save: 'Salvar',
cancel: 'Cancelar',
confirm_delete: '¿Estas seguro que quieres borrarlo? No se puede deshacer.',
invalid_geometry: 'Geometría no válida',
no_results: 'No hay resultados para esta búsqueda',
}
6 changes: 4 additions & 2 deletions lib/dictionaries/fr.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export default {
save: 'Enregister',
save: 'Sauvegarde',
cancel: 'Annuler',
no_results: 'Aucun resultat pour cette recherche',
confirm_delete: 'Êtes-vous sûr de vouloir supprimer ? Ça ne peut pas être annulé.',
invalid_geometry: 'Géométrie non valide',
no_results: 'Pas de résultats pour cette recherche',
}
7 changes: 7 additions & 0 deletions lib/dictionaries/it.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default {
save: 'Salva',
cancel: 'Cancella',
confirm_delete: 'Sei sicuro di voler eliminare questo elemento? Questa operazione non può essere annullata. ',
invalid_geometry: 'Geometria non valida',
no_results: 'Nessun risultato per questa ricerca',
}
2 changes: 2 additions & 0 deletions lib/dictionaries/ja.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export default {
save: '保存',
cancel: 'キャンセル',
confirm_delete: 'フィーチャを本当に削除しますか。取り消し不可',
invalid_geometry: '無効のジオメトリー',
no_results: '結果なし',
}
5 changes: 0 additions & 5 deletions lib/dictionaries/ko.mjs

This file was deleted.

6 changes: 4 additions & 2 deletions lib/dictionaries/pl.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export default {
save: 'Zapisz',
cancel: 'Anuluj',
no_results: 'Nic nie znaleziono',
cancel: 'Zrezygnuj',
confirm_delete: 'Czy jesteś pewny, że chcesz usunąć? To nie może być cofnięte.',
invalid_geometry: 'Wadliwa geometria',
no_results: 'Brak wyników dla tego poszukiwania',
}
7 changes: 7 additions & 0 deletions lib/dictionaries/th.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default {
save: 'บันทึก',
cancel: 'ยกเลิก',
confirm_delete: 'คุณแน่ใจหรือไม่ว่าต้องการลบคุณลักษณะนี้ สิ่งนี้ไม่สามารถยกเลิกได้',
invalid_geometry: 'เรขาคณิตไม่ถูกต้อง',
no_results: 'ไม่มีผลลัพธ์สำหรับการค้นหานี้',
}
7 changes: 7 additions & 0 deletions lib/dictionaries/tr.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default {
save: 'Kaydet',
cancel: 'Iptal Et',
confirm_delete: 'Bu sekli silmek istediginizden emin misiniz? Bu islem geri alinamaz.',
invalid_geometry: 'Gecersiz geometri',
no_results: 'Sonuc bulunamadi',
}
35 changes: 28 additions & 7 deletions lib/ui/elements/contextMenu.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,47 @@ export default {
mapp.utils.merge(mapp.dictionaries, {
en: {
remove_last_vertex: 'Remove last vertex',
delete_vertex: 'Remove vertex'
delete_vertex: 'Remove vertex',
},
de: {
remove_last_vertex: 'Entferne letzten Scheitelpunkt',
delete_vertex: 'Entferne Scheitelpunkt'
delete_vertex: 'Entferne Scheitelpunkt',
},
cn: {
zh: {
remove_last_vertex: '删除最后一个顶点',
delete_vertex: '删除顶点',
},
zh_tw: {
remove_last_vertex: '刪除最後一個頂點',
delete_vertex: '刪除頂點',
},
pl: {
remove_last_vertex: 'Usuń ostatni wierzchołek',
},
ko: {
remove_last_vertex: '마지막 정점(꼭지점) 제거',
delete_vertex: 'Usuń wierzchołek',
},
fr: {
remove_last_vertex: 'Effacer le dernier point',
remove_last_vertex: 'Supprimer le dernier sommet',
delete_vertex: 'Supprimer les sommets',
},
ja: {
remove_last_vertex: '最後のバーテックスを削除',
delete_vertex: 'バーテックスを削除',
},
es: {
remove_last_vertex: 'Eliminar el último vértice',
delete_vertex: 'Eliminar vértice',
},
tr: {
remove_last_vertex: 'Son verteksi kaldir',
delete_vertex: 'Verteksi kaldir',
},
it: {
remove_last_vertex: 'Eliminare l\'ultimo vertice',
delete_vertex: 'Elimina vertice',
},
th: {
remove_last_vertex: 'ลบจุดยอดสุดท้าย',
delete_vertex: 'ลบจุดยอด',
}
})

Expand Down
130 changes: 110 additions & 20 deletions lib/ui/elements/drawing.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,51 +17,140 @@ mapp.utils.merge(mapp.dictionaries, {
circle_config: 'Circle configuration',
draw_circle: 'Circle from Centre',
draw_circle_2pt: 'Manual Circle',
radius: 'Radius',
units: 'Units',
draw_line: 'Line',
create: 'Create'
create: 'Create',
},
de: {
draw_point: 'Punkt',
draw_position: 'Aktueller Standort',
draw_polygon: 'Polygon',
draw_rectangle: 'Rechteck',
draw_circle: 'Kreis',
circle_config: 'Zirkel Einstellung',
draw_circle: '2 Punkt Zirkel',
draw_circle_2pt: 'Zirkel',
radius: 'Radius',
units: 'Masseinheit',
draw_line: 'Linie',
create: 'Erstellen'
create: 'Erstellen',
},
cn: {
zh: {
draw_point: '点',
draw_position: '当前位置',
draw_polygon: '多边形',
draw_rectangle: '长方形',
draw_circle: '圈',
draw_line: '线',
circle_config: '圆形调整',
draw_circle: '由中心点外沿绘制圆形',
draw_circle_2pt: '手绘圆形',
radius: '半径',
units: '单位',
draw_line: '线条',
create: '创建',
},
zh_tw: {
draw_point: '點',
draw_position: '當前位置',
draw_polygon: '多邊形',
draw_rectangle: '長方形',
circle_config: '圓形調整',
draw_circle: '由中心點外沿繪製圓形',
draw_circle_2pt: '手繪圓形',
radius: '半徑',
units: '單位',
draw_line: '線條',
create: '創建',
},
pl: {
draw_point: 'Punkt',
draw_position: 'Aktualna pozycja',
draw_polygon: 'Poligon',
draw_rectangle: 'Prostokąt',
draw_circle: 'Okrag',
circle_config: 'Konfiguracja okręgu',
draw_circle: 'Okrąg od centrum',
draw_circle_2pt: 'Okrąg odręczny',
radius: 'Promień',
units: 'Jednostki',
draw_line: 'Linia',
},
ko: {
draw_point: '점',
draw_polygon: '다각형',
draw_rectangle: '직사각형',
draw_circle: '원',
draw_line: '선',
create: 'Utwórz',
},
fr: {
draw_point: 'Point',
draw_position: 'Position Actuelle',
draw_polygon: 'Polygone',
draw_rectangle: 'Rectangle',
draw_circle: 'Cercle',
circle_config: 'Paramétrage du cercle',
draw_circle: 'Cercle à partir du centre',
draw_circle_2pt: 'Cercle Manuel',
radius: 'Rayon',
units: 'Unité',
draw_line: 'Ligne',
create: 'Créer',
},
ja: {
draw_point: 'ポイント',
draw_position: '現地',
draw_polygon: 'ポリゴン',
draw_rectangle: '長方形',
draw_circle: '丸',
circle_config: '丸の構成',
draw_circle: '真ん中からの丸',
draw_circle_2pt: 'マニュアルの丸',
radius: '半径',
units: '単位',
draw_line: '線',
create: '作成',
},
es: {
draw_point: 'Punto',
draw_position: 'Posición actual',
draw_polygon: 'Polígono',
draw_rectangle: 'Rectángulo',
circle_config: 'Configuración del círculo',
draw_circle: 'Círculo desde el centro',
draw_circle_2pt: 'Círculo manual',
radius: 'Radio',
units: 'Unidad',
draw_line: 'Línea',
create: 'Crear',
},
tr: {
draw_point: 'Nokta',
draw_position: 'Mevcut konum',
draw_polygon: 'Poligon',
draw_rectangle: 'Dikdortgen',
circle_config: 'Cember ayarlari',
draw_circle: 'Merkezden cember',
draw_circle_2pt: 'Manuel cember',
radius: 'Yaricap',
units: 'Birimler',
draw_line: 'Cizgi',
create: 'Olustur',
},
it: {
draw_point: 'Punto',
draw_position: 'Posizione attuale',
draw_polygon: 'Poligono',
draw_rectangle: 'Rettangolo',
circle_config: 'Configurazione cerchio',
draw_circle: 'Cerchio dal centro',
draw_circle_2pt: 'Cerchio manuale',
radius: 'Raggio',
units: 'Unità',
draw_line: 'Linea',
create: 'Creare',
},
th: {
draw_point: 'จุด',
draw_position: 'ตำแหน่งปัจจุบัน',
draw_polygon: 'รูปหลายเหลี่ยม',
draw_rectangle: 'สี่เหลี่ยมผืนผ้า',
circle_config: 'การกำหนดค่าวงกลม',
draw_circle: 'วงกลมจากศูนย์กลาง',
draw_circle_2pt: 'วงกลมแบบแมนนวล',
radius: 'รัศมี',
units: 'หน่วย',
draw_line: 'เส้น',
create: 'สร้าง',
}
})

Expand Down Expand Up @@ -375,7 +464,7 @@ function circle(layer) {
// Create the button
const unitsDropDown = mapp.utils.html.node`
<div style="display: grid; grid-template-columns: 100px 1fr; align-items: center;">
<div style="grid-column: 1;">Units</div>
<div style="grid-column: 1;">${mapp.dictionary.units}</div>
<div style="grid-column: 2;">
${mapp.ui.elements.dropdown({
placeholder: layer.draw.circle.units,
Expand Down Expand Up @@ -407,7 +496,7 @@ function circle(layer) {
})}`

const rangeSlider = mapp.ui.elements.slider({
label: 'Radius',
label: mapp.dictionary.radius,
min: layer.draw.circle.radiusMin,
max: layer.draw.circle.radiusMax,
val: layer.draw.circle.radius,
Expand Down Expand Up @@ -468,7 +557,8 @@ function circle(layer) {
header: mapp.utils.html`
<h3>${mapp.dictionary.circle_config}</h3>
<div class="mask-icon expander"></div>`,
content: layer.draw.circle.panel})}
content: layer.draw.circle.panel
})}
${layer.draw.circle.btn}`
}

Expand Down Expand Up @@ -512,7 +602,7 @@ function locator(layer) {
}
})
})
mapp.location.get(location)
})
Expand Down
Loading

0 comments on commit ea8fadd

Please sign in to comment.