From b6eecc8e8c0e024aa657e6874350ce0d8f3f372c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 15 Aug 2015 20:24:09 +1200 Subject: Add Dutch interface translation --- web/l10n/nl.js | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ web/locale.js | 1 + 2 files changed, 87 insertions(+) create mode 100644 web/l10n/nl.js diff --git a/web/l10n/nl.js b/web/l10n/nl.js new file mode 100644 index 000000000..5f4571af6 --- /dev/null +++ b/web/l10n/nl.js @@ -0,0 +1,86 @@ +var strings = { + sharedLoading: 'Laden...', + sharedSave: 'Opslaan', + sharedCancel: 'Annuleren', + sharedAdd: 'Toevoegen', + sharedEdit: 'Bewerken', + sharedRemove: 'Verwijderen', + sharedRemoveConfirm: 'Verwijder item?', + sharedKm: 'km', + sharedMi: 'mi', + sharedKmh: 'km/h', + sharedMph: 'mph', + sharedHour: 'Uur', + sharedMinute: 'Minuut', + sharedSecond: 'Seconde', + + errorTitle: 'Fout', + errorUnknown: 'Onbekende fout', + + userName: 'Gebruikersnaam', + userEmail: 'Email', + userPassword: 'WachtwoordPassword', + userAdmin: 'Admin', + + loginTitle: 'Inloggen', + loginLanguage: 'Taal', + loginRegister: 'Registeren', + loginLogin: 'Inloggen', + loginFailed: 'Onjuiste emailadres of wachtwoord', + loginCreated: 'Nieuwe gebruiker is geregistreerd', + loginLogout: 'Uitloggen', + + deviceDialog: 'Apparaat', + deviceTitle: 'Apparaten', + deviceName: 'Naam', + deviceIdentifier: 'Identifier', + deviceCommand: 'Commando', + + settingsTitle: 'Instellingen', + settingsUser: 'Account', + settingsServer: 'Server', + settingsUsers: 'Gebruikers', + settingsDistanceUnit: 'Afstand', + settingsSpeedUnit: 'Snelheid', + + reportTitle: 'Reports', + reportDevice: 'Apparaat', + reportFrom: 'Van', + reportTo: 'Naar', + reportShow: 'Laten zien', + reportClear: 'Leegmaken', + + positionTime: 'Tijd', + positionValid: 'Geldig', + positionLatitude: 'Latitude', + positionLongitude: 'Longitude', + positionAltitude: 'Altitude', + positionSpeed: 'Snelheid', + positionCourse: 'Koers', + positionAddress: 'Adres', + positionProtocol: 'Protocol', + + serverTitle: 'Server Instellingen', + serverZoom: 'Zoom', + serverRegistration: 'Registratie', + + mapTitle: 'Kaart', + mapLayer: 'Kaart laag', + mapOsm: 'Open Street Map', + mapBingRoad: 'Bing Maps Wegen', + mapBingAerial: 'Bing Maps Luchtfoto', + + stateTitle: 'Status', + stateName: 'Parameter', + stateValue: 'Waarde', + + commandTitle: 'Commando', + commandSend: 'Verstuur', + commandType: 'Type', + commandPositionPeriodic: 'Periodic Reporting', + commandPositionStop: 'Stop Reporting', + commandEngineStop: 'Engine Stop', + commandEngineResume: 'Engine Resume', + commandFrequency: 'Frequentie', + commandUnit: 'Eenheid' +}; diff --git a/web/locale.js b/web/locale.js index 37ae0992e..ed9cedde2 100644 --- a/web/locale.js +++ b/web/locale.js @@ -23,6 +23,7 @@ var availableLanguages = { 'en': { name: 'English', code: 'en' }, 'es': { name: 'Español', code: 'es' }, 'fr': { name: 'Français', code: 'fr' }, + 'nl': { name: 'Nederlands', code: 'nl' }, 'pl': { name: 'Polski', code: 'pl' }, 'pt': { name: 'Português', code: 'pt' }, 'ru': { name: 'Русский', code: 'ru' }, -- cgit v1.2.3 From 0ce1e7c09f0144b65c87377285acafaca1c711f5 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 15 Aug 2015 20:35:16 +1200 Subject: Fix inverted map coordinates (fix #1352) --- web/app/Resources.js | 4 ++-- web/app/view/map/Map.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/app/Resources.js b/web/app/Resources.js index 851658646..73cee7b2d 100644 --- a/web/app/Resources.js +++ b/web/app/Resources.js @@ -26,8 +26,8 @@ var styles = { reportTime: 100, reportFormat: 'Y-m-d H:i:s', - mapDefaultLat: -0.1275, - mapDefaultLon: 51.507222, + mapDefaultLat: 51.507222, + mapDefaultLon: -0.1275, mapDefaultZoom: 6, mapMaxZoom: 19, diff --git a/web/app/view/map/Map.js b/web/app/view/map/Map.js index 6b323e555..9d9a92886 100644 --- a/web/app/view/map/Map.js +++ b/web/app/view/map/Map.js @@ -63,7 +63,7 @@ Ext.define('Traccar.view.map.Map', { var zoom = user.get('zoom') || server.get('zoom') || styles.mapDefaultZoom; this.mapView = new ol.View({ - center: ol.proj.fromLonLat([lat, lon]), + center: ol.proj.fromLonLat([ lon, lat ]), zoom: zoom, maxZoom: styles.mapMaxZoom }); -- cgit v1.2.3 From e6b9901b9e86b328010716ebcc8303e06d3dd206 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 17 Aug 2015 23:19:17 +1200 Subject: Add Danish UI translation --- web/l10n/dk.js | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ web/locale.js | 1 + 2 files changed, 87 insertions(+) create mode 100644 web/l10n/dk.js diff --git a/web/l10n/dk.js b/web/l10n/dk.js new file mode 100644 index 000000000..c70ec3ef0 --- /dev/null +++ b/web/l10n/dk.js @@ -0,0 +1,86 @@ +var strings = { + sharedLoading: 'Loading...', + sharedSave: 'Gem', + sharedCancel: 'Fortryd', + sharedAdd: 'Tilføj', + sharedEdit: 'Rediger', + sharedRemove: 'Fjern', + sharedRemoveConfirm: 'Fjern enhed?', + sharedKm: 'km', + sharedMi: 'mi', + sharedKmh: 'km/t', + sharedMph: 'mph', + sharedHour: 'Time', + sharedMinute: 'Minut', + sharedSecond: 'Sekund', + + errorTitle: 'Fejl', + errorUnknown: 'Ukendt Fejl', + + userName: 'Navn', + userEmail: 'Email', + userPassword: 'Kodeord', + userAdmin: 'Admin', + + loginTitle: 'Log på', + loginLanguage: 'Sprog', + loginRegister: 'Registrer', + loginLogin: 'Log på', + loginFailed: 'Fejl i email adresse eller kodeord', + loginCreated: 'Ny bruger er registreret', + loginLogout: 'Log af', + + deviceDialog: 'Enhed', + deviceTitle: 'Enheder', + deviceName: 'Navn', + deviceIdentifier: 'Imei nr', + deviceCommand: 'Kommando', + + settingsTitle: 'Indstillinger', + settingsUser: 'Konto', + settingsServer: 'Server', + settingsUsers: 'Brugere', + settingsDistanceUnit: 'Distance', + settingsSpeedUnit: 'Hastighed', + + reportTitle: 'Rapporter', + reportDevice: 'Enhed', + reportFrom: 'Fra', + reportTo: 'Til', + reportShow: 'Vis', + reportClear: 'Ryd', + + positionTime: 'Tid', + positionValid: 'Valid', + positionLatitude: '>Breddegrad', + positionLongitude: 'Længdegrad', + positionAltitude: 'Højde', + positionSpeed: 'Hastighed', + positionCourse: 'Kurs', + positionAddress: 'Addresse', + positionProtocol: 'Protocol', + + serverTitle: 'Server indstillinger', + serverZoom: 'Zoom', + serverRegistration: 'Registrering', + + mapTitle: 'Kort', + mapLayer: 'Kort opsætning', + mapOsm: 'Open Street Map', + mapBingRoad: 'Bing Maps Road', + mapBingAerial: 'Bing Maps Aerial', + + stateTitle: 'Status', + stateName: 'Parameter', + stateValue: 'Værdi', + + commandTitle: 'Kommando', + commandSend: 'Send', + commandType: 'Type', + commandPositionPeriodic: 'Periodisk Rapportering', + commandPositionStop: 'Stop Rapportering', + commandEngineStop: 'Stop motor', + commandEngineResume: 'Genstart motor', + commandFrequency: 'Frekvens', + commandUnit: 'Enhed' +}; diff --git a/web/locale.js b/web/locale.js index ed9cedde2..353f47cbc 100644 --- a/web/locale.js +++ b/web/locale.js @@ -20,6 +20,7 @@ Ext.Loader.setConfig({ var availableLanguages = { 'de': { name: 'Deutsch', code: 'de' }, + 'dk': { name: 'Dansk', code: 'dk' }, 'en': { name: 'English', code: 'en' }, 'es': { name: 'Español', code: 'es' }, 'fr': { name: 'Français', code: 'fr' }, -- cgit v1.2.3