From 5e31948a5da8158d121a2d2f295fe882bc0a5d09 Mon Sep 17 00:00:00 2001 From: Spythere Date: Sun, 15 Mar 2026 00:51:32 +0100 Subject: [PATCH] chore: added missing translations; improved route filters order --- .../SceneryInfo/SceneryInfoRoutes.vue | 4 ++-- src/locales/en.json | 12 ++++++++++++ src/locales/pl.json | 16 ++++++++-------- src/managers/stationFilterManager.ts | 16 ++++++++-------- 4 files changed, 30 insertions(+), 18 deletions(-) diff --git a/src/components/SceneryView/SceneryInfo/SceneryInfoRoutes.vue b/src/components/SceneryView/SceneryInfo/SceneryInfoRoutes.vue index 0ae2a3c..226fac2 100644 --- a/src/components/SceneryView/SceneryInfo/SceneryInfoRoutes.vue +++ b/src/components/SceneryView/SceneryInfo/SceneryInfoRoutes.vue @@ -5,7 +5,7 @@ class="routes-btn" @click="toggleRoutesVisibility('single')" data-tooltip-type="BaseTooltip" - :data-tooltip-content="`${showInternalSingleRoutes ? $t('scenery.btn-hide-internal-routes') : $t('scenery.btn-show-internal-routes')}`" + :data-tooltip-content="`${showInternalSingleRoutes ? $t('scenery.btn-show-internal-routes') : $t('scenery.btn-hide-internal-routes')}`" > {{ $t('scenery.one-way-routes') }} @@ -32,7 +32,7 @@ class="routes-btn" @click="toggleRoutesVisibility('double')" data-tooltip-type="BaseTooltip" - :data-tooltip-content="`${showInternalDoubleRoutes ? $t('scenery.btn-hide-internal-routes') : $t('scenery.btn-show-internal-routes')}`" + :data-tooltip-content="`${showInternalDoubleRoutes ? $t('scenery.btn-show-internal-routes') : $t('scenery.btn-hide-internal-routes')}`" > {{ $t('scenery.two-way-routes') }} diff --git a/src/locales/en.json b/src/locales/en.json index 24ba61d..bff280e 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -293,6 +293,16 @@ "withoutActiveTimetables": "NO ACTIVE", "junction": "JUNCTIONS", "nonJunction": "OTHER", + + "oneWay": "OTHER SINGLE TRACK", + "oneWayCatenary": "CATENARY SINGLE TRACK", + "twoWayCatenary": "CATENARY DOUBLE TRACK", + "twoWay": "OTHER DOUBLE TRACK", + "oneWayCatenaryInt": "CATENARY SINGLE TRACK", + "oneWayInt": "OTHER SINGLE TRACK", + "twoWayCatenaryInt": "CATENARY DOUBLE TRACK", + "twoWayInt": "OTHER DOUBLE TRACK", + "sliders": { "minLevel": "MIN. REQUIRED DISPATCHER LEVEL", "maxLevel": "MAX. REQUIRED DISPATCHER LEVEL", @@ -562,6 +572,8 @@ "option-active-timetables": "Active timetables", "option-timetables-history": "Timetables history PL1", "option-dispatchers-history": "Dispatchers history PL1", + "btn-show-timetable-thumbnails": "Show rolling stock thumbnails", + "btn-hide-timetable-thumbnails": "Hide rolling stock thumbnails", "timetable-includesScenery": "ALL TIMETABLES", "timetable-via": "PASSES THROUGH", "timetable-issuedFrom": "BEGINS HERE", diff --git a/src/locales/pl.json b/src/locales/pl.json index 6fc4b1d..dd1db61 100644 --- a/src/locales/pl.json +++ b/src/locales/pl.json @@ -306,14 +306,14 @@ "sliders": { "vMax": "PRĘDKOŚĆ SZLAKOWA", "level": "WYMAGANY POZIOM DYŻURNEGO", - "routeOneWay": "SZLAKI JEDNOTOROWE NIEZELEKTR.", - "routeOneWayCatenary": "SZLAKI JEDNOTOROWE ZELEKTR.", - "routeTwoWayCatenary": "SZLAKI DWUTOROWE ZELEKTR.", - "routeTwoWay": "SZLAKI DWUTOROWE NIEZELEKTR.", - "routeOneWayInternalCatenary": "SZLAKI JEDNOTOROWE ZELEKTR. WEWNĘTRZNE", - "routeOneWayInternal": "SZLAKI JEDNOTOROWE NIEZELEKTR. WEWNĘTRZNE", - "routeTwoWayInternalCatenary": "SZLAKI DWUTOROWE ZELEKTR. WEWNĘTRZNE", - "routeTwoWayInternal": "SZLAKI DWUTOROWE NIEZELEKTR. WEWNĘTRZNE" + "routeOneWay": "SZLAKI 1-TOROWE NIEZELEKTR.", + "routeOneWayCatenary": "SZLAKI 1-TOROWE ZELEKTR.", + "routeTwoWayCatenary": "SZLAKI 2-TOROWE ZELEKTR.", + "routeTwoWay": "SZLAKI 2-TOROWE NIEZELEKTR.", + "routeOneWayInternalCatenary": "SZLAKI WEWN. 1-TOROWE ZELEKTR.", + "routeOneWayInternal": "SZLAKI WEWN. 1-TOROWE NIEZELEKTR.", + "routeTwoWayInternalCatenary": "SZLAKI WEWN. 2-TOROWE ZELEKTR.", + "routeTwoWayInternal": "SZLAKI WEWN. 2-TOROWE NIEZELEKTR." }, "sceneries-placeholder": "Wyszukaj scenerię", "line-numbers-placeholder": "Numery linii (oddzielone przecinkami)", diff --git a/src/managers/stationFilterManager.ts b/src/managers/stationFilterManager.ts index 70672fa..c64de5a 100644 --- a/src/managers/stationFilterManager.ts +++ b/src/managers/stationFilterManager.ts @@ -110,14 +110,14 @@ export const initFilters = { export const sliderGroups: SliderGroup[] = [ 'vMax', 'level', - 'routeOneWay', 'routeOneWayCatenary', - 'routeOneWayInternal', - 'routeOneWayInternalCatenary', - 'routeTwoWay', + 'routeOneWay', 'routeTwoWayCatenary', - 'routeTwoWayInternal', - 'routeTwoWayInternalCatenary' + 'routeTwoWay', + 'routeOneWayInternalCatenary', + 'routeOneWayInternal', + 'routeTwoWayInternalCatenary', + 'routeTwoWayInternal' ]; export const sliderGroupsOptions: Record = { @@ -208,8 +208,8 @@ export const filtersSections: Record = { ], blockades: ['SBL', 'PBL'], signals: ['modern', 'semaphores', 'mixed', 'historical'], - externalRoutes: ['oneWay', 'oneWayCatenary', 'twoWay', 'twoWayCatenary'], - internalRoutes: ['oneWayInt', 'oneWayCatenaryInt', 'twoWayInt', 'twoWayCatenaryInt'] + externalRoutes: ['oneWayCatenary', 'oneWay', 'twoWayCatenary', 'twoWay'], + internalRoutes: ['oneWayCatenaryInt', 'oneWayInt', 'twoWayCatenaryInt', 'twoWayInt'] }; export function setupFilters(currentFilters: Record) {