From cf83faaedcabc830b12f1b6081cf4ee7913c8b73 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Sat, 26 Jun 2021 18:56:31 +0200 Subject: [PATCH] Add translations; sort translations --- client/js/journeysView.js | 4 +- client/js/languages.js | 196 +++++++++++++++++++------------------- 2 files changed, 102 insertions(+), 98 deletions(-) diff --git a/client/js/journeysView.js b/client/js/journeysView.js index 44c68a1..11cf954 100644 --- a/client/js/journeysView.js +++ b/client/js/journeysView.js @@ -39,7 +39,7 @@ const journeysTemplate = (data) => html` ` : html` - moreJourneys(data.reqId, 'earlier')}"> + moreJourneys(data.reqId, 'earlier')}">
@@ -59,7 +59,7 @@ const journeysTemplate = (data) => html`
- moreJourneys(data.reqId, "later")}> + moreJourneys(data.reqId, "later")}> `} `; diff --git a/client/js/languages.js b/client/js/languages.js index ba01980..23deb15 100644 --- a/client/js/languages.js +++ b/client/js/languages.js @@ -1,111 +1,115 @@ export const languages = { 'de': { - 'arrival': 'Ankunft', - 'departure': 'Abfahrt', - 'duration': 'Dauer', - 'changes': 'Umstiege', - 'products': 'Produkte', - 'from': 'Von', - 'via': 'Über', - 'optional': '(optional)', - 'to': 'Nach', - 'date': 'Datum', - 'time': 'Uhrzeit', - 'station': 'Station', - 'platform': 'Gleis', - 'walkinfo': 'Laufe nach %s (ca. %s Meter)', - 'changeinfo': '%s Umstiegsdauer', - 'transferinfo': 'Reise nach %s', - 'swap': 'Von/Nach tauschen', - 'settings': 'Einstellungen', - 'search': 'Suchen', - 'options': 'Optionen', - 'setfromto': 'Als Von/Nach setzen', - 'journeyoverview': 'Verbindungsübersicht aufrufen', - 'lastjourney': 'Letzte gewälte Verbindung aufrufen', - 'longdistancetrain': 'Fernverkehr', - 'regionaltrain': 'Regionalverkehr', - 'suburbantrain': 'S-Bahn', - 'subway': 'U-Bahn', - 'tram': 'Tram', - 'bus': 'Bus', - 'ferry': 'Fähre', - 'taxi': 'Taxi', - 'save': 'Speichern', - 'clearstorage': 'lokale Daten löschen', - 'datasource': 'Datenquelle', - 'accessibility': 'Barrierefreiheit', + 'access_full': 'Barrierefrei', 'access_none': 'keine Einschränkungen', 'access_partial': 'Bedingt barrierefrei', - 'access_full': 'Barrierefrei', - 'showds100': 'Zeige RIL100 Kürzel (wenn verfügbar)', - 'showdebug': 'Schreibe Debug Nachrichten ins Log', - 'graphical': 'Graphische Darstellung in der Verbindungsübersicht', - 'update': 'Anwendung updaten', - 'language': 'Sprache', - 'de': 'Deutsch', - 'en': 'Englisch', + 'accessibility': 'Barrierefreiheit', + 'arrival': 'Ankunft', + 'bus': 'Bus', 'cancelled-ride': 'Fahrt entfällt!', - 'remarks': 'Hinweise', - 'travelynx-checkin': 'Travelynx checkin anzeigen?', - 'lang_short': 'de', - 'iconly': 'IC', + 'changeinfo': '%s Umstiegsdauer', + 'changes': 'Umstiege', + 'clearstorage': 'lokale Daten löschen', + 'datasource': 'Datenquelle', + 'date': 'Datum', + 'de': 'Deutsch', + 'departure': 'Abfahrt', + 'duration': 'Dauer', + 'dzug': 'D-Zug', + 'en': 'Englisch', + 'ferry': 'Fähre', + 'from': 'Von', + 'graphical': 'Graphische Darstellung in der Verbindungsübersicht', 'iceonly': 'ICE', - 'dzug': 'D-Zug' + 'iconly': 'IC', + 'journeyoverview': 'Verbindungsübersicht aufrufen', + 'label_earlier': 'Frühere Verbindungen', + 'label_later': 'Spätere Verbindungen', + 'lang_short': 'de', + 'language': 'Sprache', + 'lastjourney': 'Letzte gewälte Verbindung aufrufen', + 'longdistancetrain': 'Fernverkehr', + 'optional': '(optional)', + 'options': 'Optionen', + 'platform': 'Gleis', + 'products': 'Produkte', + 'regionaltrain': 'Regionalverkehr', + 'remarks': 'Hinweise', + 'save': 'Speichern', + 'search': 'Suchen', + 'setfromto': 'Als Von/Nach setzen', + 'settings': 'Einstellungen', + 'showdebug': 'Schreibe Debug Nachrichten ins Log', + 'showds100': 'Zeige RIL100 Kürzel (wenn verfügbar)', + 'station': 'Station', + 'suburbantrain': 'S-Bahn', + 'subway': 'U-Bahn', + 'swap': 'Von/Nach tauschen', + 'taxi': 'Taxi', + 'time': 'Uhrzeit', + 'to': 'Nach', + 'tram': 'Tram', + 'transferinfo': 'Reise nach %s', + 'travelynx-checkin': 'Travelynx checkin anzeigen?', + 'update': 'Anwendung updaten', + 'via': 'Über', + 'walkinfo': 'Laufe nach %s (ca. %s Meter)' }, 'en': { - 'arrival': 'Arrival', - 'departure': 'Departure', - 'duration': 'Duration', - 'changes': 'Changes', - 'products': 'Products', - 'from': 'From', - 'via': 'Via', - 'optional': '(optional)', - 'to': 'To', - 'date': 'Date', - 'time': 'Time', - 'station': 'Station', - 'platform': 'Platform', - 'walkinfo': 'Walk to %s (apprx. %s meters)', - 'changeinfo': '%s change duration', - 'transferinfo': 'Travel to %s', - 'swap': 'Swap from/to', - 'settings': 'Settings', - 'search': 'Search', - 'options': 'Options', - 'setfromto': 'Set as from/to', - 'journeyoverview': 'Go to journeysoverview', - 'lastjourney': 'Go to last selected journey', - 'longdistancetrain': 'Long distance trains', - 'regionaltrain': 'Regional trains', - 'suburbantrain': 'Suburban Trains', - 'subway': 'Subway', - 'tram': 'Tram', - 'bus': 'Bus', - 'ferry': 'Ferry', - 'taxi': 'Taxi', - 'save': 'Save', - 'clearstorage': 'Remove local data', - 'datasource': 'Data source', - 'accessibility': 'Accessibillity', + 'access_full': 'full', 'access_none': 'none', 'access_partial': 'partial', - 'access_full': 'full', - 'showds100': 'Show DS100 (if available)', - 'showdebug': 'Write debug messages to log', - 'graphical': 'Graphical overview for journeys', - 'update': 'Update application', - 'language': 'Language', - 'de': 'German', - 'en': 'English', + 'accessibility': 'Accessibillity', + 'arrival': 'Arrival', + 'bus': 'Bus', 'cancelled-ride': 'Cancelled!', - 'remarks': 'Remarks', - 'travelynx-checkin': 'show travelynx checkin?', - 'lang_short': 'en', - 'iconly': 'IC', + 'changeinfo': '%s change duration', + 'changes': 'Changes', + 'clearstorage': 'Remove local data', + 'datasource': 'Data source', + 'date': 'Date', + 'de': 'German', + 'departure': 'Departure', + 'duration': 'Duration', + 'dzug': 'D-Zug', + 'en': 'English', + 'ferry': 'Ferry', + 'from': 'From', + 'graphical': 'Graphical overview for journeys', 'iceonly': 'ICE', - 'dzug': 'D-Zug' + 'iconly': 'IC', + 'journeyoverview': 'Go to journeysoverview', + 'label_earlier': 'Earlier connections', + 'label_later': 'Later connections', + 'lang_short': 'en', + 'language': 'Language', + 'lastjourney': 'Go to last selected journey', + 'longdistancetrain': 'Long distance trains', + 'optional': '(optional)', + 'options': 'Options', + 'platform': 'Platform', + 'products': 'Products', + 'regionaltrain': 'Regional trains', + 'remarks': 'Remarks', + 'save': 'Save', + 'search': 'Search', + 'setfromto': 'Set as from/to', + 'settings': 'Settings', + 'showdebug': 'Write debug messages to log', + 'showds100': 'Show DS100 (if available)', + 'station': 'Station', + 'suburbantrain': 'Suburban Trains', + 'subway': 'Subway', + 'swap': 'Swap from/to', + 'taxi': 'Taxi', + 'time': 'Time', + 'to': 'To', + 'tram': 'Tram', + 'transferinfo': 'Travel to %s', + 'travelynx-checkin': 'show travelynx checkin?', + 'update': 'Update application', + 'via': 'Via', + 'walkinfo': 'Walk to %s (apprx. %s meters)' } }