diff --git a/web/client/components/I18N/__tests__/LangSelector-test.jsx b/web/client/components/I18N/__tests__/LangSelector-test.jsx index cc5701cc4f..fca11c66c0 100644 --- a/web/client/components/I18N/__tests__/LangSelector-test.jsx +++ b/web/client/components/I18N/__tests__/LangSelector-test.jsx @@ -36,7 +36,7 @@ describe('LangSelector', () => { const select = cmpDom.getElementsByTagName("select").item(0); const opts = select.childNodes; - const langs = {'Italiano': 'it-IT', 'English': 'en-US', 'Français': 'fr-FR'}; + const langs = {'Italiano': 'it-IT', 'English': 'en-US', 'Français': 'fr-FR', 'Deutsch': 'de-DE'}; for (let i = 0; i < opts.length; i++) { lbl = opts[i].innerHTML; diff --git a/web/client/components/I18N/images/flags/de-DE.png b/web/client/components/I18N/images/flags/de-DE.png new file mode 100644 index 0000000000..ac4a977362 Binary files /dev/null and b/web/client/components/I18N/images/flags/de-DE.png differ diff --git a/web/client/translations/data.de-DE b/web/client/translations/data.de-DE index d9a6aeb389..a4b00ee9e1 100644 --- a/web/client/translations/data.de-DE +++ b/web/client/translations/data.de-DE @@ -116,7 +116,7 @@ "openInANewTab":"Karte öffnen", "deleteMap":"Karte löschen", "deleteMapMessage": "Möchtest du wirklich diese Karte löschen?", - "editMapMetadata":"Karten Metadaten bearbeiten", + "editMapMetadata":"Bearbeite die Eigenschaften der Karte", "mapTypes_combo": "Wähle einen Karten-Viewer: ", "maps_title": "Karten", "locales_combo": "Sprache:" @@ -353,7 +353,6 @@ "zoomIn": "Das ist die Hilfe für ZoomIn", "zoomOut": "Das ist die Hilfe für ZoomOut", "searchBar": "Gib eine Adresse eines Ortes ein bspw. 'Brandenburger Tor, Berlin'. Du kannst auch Koordinaten im folgenden Format eingeben: 43.87, 10.20", - "layerSwitcher": "Das ist die Hilfe für den LayerSwitcher", "metadataExplorer": "Das ist die Hilfe für den MetadataExplorer", "settingsPanel": "Das ist die Hilfe für das SettingsPanel", "gohome": "Das ist die Hilfe für Home", @@ -484,6 +483,8 @@ "usergroups": { "searchGroups": "Suche Gruppen...", "groups": "Gruppen", + "nameLimit": "Der Name ist auf 255 Zeichen limitiert.", + "descLimit": "Die Beschreibung ist auf 255 Zeichen limitiert.", "editGroup": "Gruppe bearbeiten", "deleteGroup": "Gruppe löschen", "removeUser": "Benutzer löschen", diff --git a/web/client/translations/data.en-US b/web/client/translations/data.en-US index daedf626e2..7b93a5496a 100644 --- a/web/client/translations/data.en-US +++ b/web/client/translations/data.en-US @@ -116,7 +116,7 @@ "openInANewTab":"Open map", "deleteMap":"Delete Map", "deleteMapMessage": "Do you really want to delete this map?", - "editMapMetadata":"Edit Map Metadata", + "editMapMetadata":"Edit Map Properties", "mapTypes_combo": "Select Map Viewer: ", "maps_title": "Maps", "locales_combo": "Language:" @@ -353,7 +353,6 @@ "zoomIn": "This is the helptext for the ZoomIn", "zoomOut": "This is the helptext for the ZoomOut", "searchBar": "Write the address of a place to find. e.g. '1st avenue, new york'. You can even insert coordinates in this format: 43.87,10.20", - "layerSwitcher": "This is the helptext for the LayerSwitcher", "metadataExplorer": "This is the helptext for the MetadataExplorer", "settingsPanel": "This is the helptext for the SettingsPanel", "gohome": "This is the helptext for Home", diff --git a/web/client/translations/data.fr-FR b/web/client/translations/data.fr-FR index c868434b5b..43f01215ff 100644 --- a/web/client/translations/data.fr-FR +++ b/web/client/translations/data.fr-FR @@ -117,7 +117,7 @@ "openInANewTab":"Ouvrir la carte", "deleteMap":"Supprimer la carte", "deleteMapMessage": "Voulez-vous supprimer cette carte?", - "editMapMetadata":"Modifier les metadonnées de la carte", + "editMapMetadata":"Modifier les propriétés de la carte", "mapTypes_combo": "Selectionner le viewer de carte: ", "maps_title": "Cartes", "locales_combo": "Langue:" @@ -355,7 +355,6 @@ "zoomIn": "This is the helptext for the ZoomIn", "zoomOut": "This is the helptext for the ZoomOut", "searchBar": "Tapez l'adresse à rechercher. p. ex. '1st avenue, new york'. Vous pouvez aussi entrer des coordonnées au format suivant: 43.87,10.20", - "layerSwitcher": "This is the helptext for the LayerSwitcher", "metadataExplorer": "This is the helptext for the MetadataExplorer", "settingsPanel": "This is the helptext for the SettingsPanel", "gohome": "This is the helptext for Home", diff --git a/web/client/translations/data.it-IT b/web/client/translations/data.it-IT index 267cda57a7..0d10c36823 100644 --- a/web/client/translations/data.it-IT +++ b/web/client/translations/data.it-IT @@ -116,7 +116,7 @@ "openInANewTab":"Apri mappa", "deleteMap":"Elimina Mappa", "deleteMapMessage": "Vuoi eliminare questa mappa?", - "editMapMetadata":"Modifica Metadati", + "editMapMetadata":"Modifica Proprietà", "mapTypes_combo": "Seleziona il visualizzatore di mappa:", "maps_title": "Mappe", "locales_combo": "Lingua:" @@ -353,7 +353,6 @@ "zoomIn": "Questo è il testo di aiuto per ZoomIn", "zoomOut": "Questo è il testo di aiuto per ZoomOut", "searchBar": "Scrivi un indirizzo di un luogo per trovarlo. esempio: '1st avenue, new york'. Puoi anche digitare le coordinate in questo formato: 43.87,10.20", - "layerSwitcher": "Questo è il testo di aiuto per LayerSwitcher", "metadataExplorer": "Questo è il testo di aiuto per MetadataExplorer", "settingsPanel": "Questo è il testo di aiuto per SettingsPanel", "gohome": "Questo è il testo di aiuto per Home", diff --git a/web/client/utils/LocaleUtils.js b/web/client/utils/LocaleUtils.js index e334bc199d..02bdd0b0c3 100644 --- a/web/client/utils/LocaleUtils.js +++ b/web/client/utils/LocaleUtils.js @@ -19,16 +19,21 @@ let supportedLocales = { "fr": { code: "fr-FR", description: "Français" + }, + "de": { + code: "de-DE", + description: "Deutsch" } }; var LocaleUtils = { ensureIntl(callback) { - require.ensure(['intl', 'intl/locale-data/jsonp/en.js', 'intl/locale-data/jsonp/it.js', 'intl/locale-data/jsonp/fr.js'], (require) => { + require.ensure(['intl', 'intl/locale-data/jsonp/en.js', 'intl/locale-data/jsonp/it.js', 'intl/locale-data/jsonp/fr.js', 'intl/locale-data/jsonp/de.js'], (require) => { global.Intl = require('intl'); require('intl/locale-data/jsonp/en.js'); require('intl/locale-data/jsonp/it.js'); require('intl/locale-data/jsonp/fr.js'); + require('intl/locale-data/jsonp/de.js'); if (callback) { callback(); }