diff --git a/lang/ast.json b/lang/ast.json new file mode 100644 index 00000000..f7bd36bb --- /dev/null +++ b/lang/ast.json @@ -0,0 +1,5 @@ +{ + "options:data_lang": "Llingua de los datos", + "options:data_lang:local": "Llingua llocal", + "options:ui_lang": "Llingua de la interfaz" +} \ No newline at end of file diff --git a/lang/cs.json b/lang/cs.json new file mode 100644 index 00000000..3b12511b --- /dev/null +++ b/lang/cs.json @@ -0,0 +1,5 @@ +{ + "options:data_lang": "Jazyk dat", + "options:data_lang:local": "Místní jazyk", + "options:ui_lang": "Jazyk rozhraní" +} \ No newline at end of file diff --git a/lang/da.json b/lang/da.json new file mode 100644 index 00000000..2fb47d98 --- /dev/null +++ b/lang/da.json @@ -0,0 +1,5 @@ +{ + "options:data_lang": "Data sprog", + "options:data_lang:local": "Lokalt sprog", + "options:ui_lang": "Brugerfladesprog" +} \ No newline at end of file diff --git a/lang/de.json b/lang/de.json new file mode 100644 index 00000000..30541799 --- /dev/null +++ b/lang/de.json @@ -0,0 +1,5 @@ +{ + "options:data_lang": "Datensprache", + "options:data_lang:local": "Lokale Sprache", + "options:ui_lang": "Anwendungssprache" +} \ No newline at end of file diff --git a/lang/el.json b/lang/el.json new file mode 100644 index 00000000..81bf7ad9 --- /dev/null +++ b/lang/el.json @@ -0,0 +1,5 @@ +{ + "options:data_lang": "Γλωσσα δεδομένων", + "options:data_lang:local": "Τοπική γλώσσα", + "options:ui_lang": "Γλώσσα διεπαφής" +} \ No newline at end of file diff --git a/lang/en.json b/lang/en.json new file mode 100644 index 00000000..107a11bc --- /dev/null +++ b/lang/en.json @@ -0,0 +1,6 @@ +{ + "options:data_lang": "Data language", + "options:data_lang:desc": "Many map features have their name (and other tags) translated to different languages (e.g. with 'name:en', 'name:de'). Specify which language should be used for displaying, or 'Local language' so that always the untranslated value (e.g. 'name') will be used", + "options:data_lang:local": "Local language", + "options:ui_lang": "Interface language" +} \ No newline at end of file diff --git a/lang/es.json b/lang/es.json new file mode 100644 index 00000000..2d8fe3ca --- /dev/null +++ b/lang/es.json @@ -0,0 +1,5 @@ +{ + "options:data_lang": "Idioma de datos", + "options:data_lang:local": "Idioma local", + "options:ui_lang": "Idioma de interfaz" +} \ No newline at end of file diff --git a/lang/et.json b/lang/et.json new file mode 100644 index 00000000..ddbb53fa --- /dev/null +++ b/lang/et.json @@ -0,0 +1,5 @@ +{ + "options:data_lang": "Andmete keel", + "options:data_lang:local": "Kohalik keel", + "options:ui_lang": "Kasutajaliidese keel" +} \ No newline at end of file diff --git a/lang/fr.json b/lang/fr.json new file mode 100644 index 00000000..2f41da0c --- /dev/null +++ b/lang/fr.json @@ -0,0 +1,5 @@ +{ + "options:data_lang": "Langue des données", + "options:data_lang:local": "Langue locale", + "options:ui_lang": "Langue de l'interface" +} \ No newline at end of file diff --git a/lang/hu.json b/lang/hu.json new file mode 100644 index 00000000..91647e21 --- /dev/null +++ b/lang/hu.json @@ -0,0 +1,5 @@ +{ + "options:data_lang": "Adatnyelv", + "options:data_lang:local": "Helyi nyelv", + "options:ui_lang": "Menünyelv" +} \ No newline at end of file diff --git a/lang/it.json b/lang/it.json new file mode 100644 index 00000000..755f2580 --- /dev/null +++ b/lang/it.json @@ -0,0 +1,5 @@ +{ + "options:data_lang": "Lingua dei dati", + "options:data_lang:local": "Lingua del tuo browser", + "options:ui_lang": "Lingua dell'interfaccia" +} \ No newline at end of file diff --git a/lang/ja.json b/lang/ja.json new file mode 100644 index 00000000..b2c58c9d --- /dev/null +++ b/lang/ja.json @@ -0,0 +1,5 @@ +{ + "options:data_lang": "データ表示", + "options:data_lang:local": "ブラウザの設定言語", + "options:ui_lang": "インタフェース表示" +} \ No newline at end of file diff --git a/lang/nl.json b/lang/nl.json new file mode 100644 index 00000000..2f512217 --- /dev/null +++ b/lang/nl.json @@ -0,0 +1,5 @@ +{ + "options:data_lang": "Taal voor data", + "options:data_lang:local": "Lokale taal", + "options:ui_lang": "Interfacetaal" +} \ No newline at end of file diff --git a/lang/pl.json b/lang/pl.json new file mode 100644 index 00000000..f784e2cd --- /dev/null +++ b/lang/pl.json @@ -0,0 +1,5 @@ +{ + "options:data_lang": "Język danych", + "options:data_lang:local": "Język lokalny", + "options:ui_lang": "Język interfejsu" +} \ No newline at end of file diff --git a/lang/ro.json b/lang/ro.json new file mode 100644 index 00000000..75f333e0 --- /dev/null +++ b/lang/ro.json @@ -0,0 +1,5 @@ +{ + "options:data_lang": "Limba date", + "options:data_lang:local": "Limba locala", + "options:ui_lang": "Limba interfata" +} \ No newline at end of file diff --git a/lang/ru.json b/lang/ru.json new file mode 100644 index 00000000..6533da8b --- /dev/null +++ b/lang/ru.json @@ -0,0 +1,5 @@ +{ + "options:data_lang": "Язык информации на карте", + "options:data_lang:local": "Определить язык автоматически", + "options:ui_lang": "Язык интерфейса" +} \ No newline at end of file diff --git a/lang/sr.json b/lang/sr.json new file mode 100644 index 00000000..be873119 --- /dev/null +++ b/lang/sr.json @@ -0,0 +1,5 @@ +{ + "options:data_lang": "Језик подетака", + "options:data_lang:local": "Локални језик", + "options:ui_lang": "Језик интерфејса" +} \ No newline at end of file diff --git a/lang/template.json b/lang/template.json new file mode 100644 index 00000000..ccae40f7 --- /dev/null +++ b/lang/template.json @@ -0,0 +1,6 @@ +{ + "options:data_lang": "", + "options:data_lang:desc": "", + "options:data_lang:local": "", + "options:ui_lang": "" +} \ No newline at end of file diff --git a/lang/uk.json b/lang/uk.json new file mode 100644 index 00000000..924df8a5 --- /dev/null +++ b/lang/uk.json @@ -0,0 +1,5 @@ +{ + "options:data_lang": "Мова мапи", + "options:data_lang:local": "Місцева мова", + "options:ui_lang": "Мова інтерфейсу" +} \ No newline at end of file diff --git a/src/language.js b/src/language.js index 9431ec18..e5bc42f9 100644 --- a/src/language.js +++ b/src/language.js @@ -24,7 +24,7 @@ register_hook('options_form', function (def) { } def.ui_lang = { - 'name': 'UI Language', + 'name': lang('options:ui_lang'), 'type': 'select', 'values': languages, 'req': true, @@ -32,11 +32,12 @@ register_hook('options_form', function (def) { } def.data_lang = { - 'name': 'data language', + 'name': lang('options:data_lang'), + 'desc': lang('options:data_lang:desc'), 'type': 'select', 'values': languages, 'default': ui_lang, - 'placeholder': 'Native language' + 'placeholder': lang('options:data_lang:local') } })