chore: added missing translations; improved route filters order

This commit is contained in:
2026-03-15 00:51:32 +01:00
parent 4f42c0d878
commit 5e31948a5d
4 changed files with 30 additions and 18 deletions
@@ -5,7 +5,7 @@
class="routes-btn" class="routes-btn"
@click="toggleRoutesVisibility('single')" @click="toggleRoutesVisibility('single')"
data-tooltip-type="BaseTooltip" 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')}`"
> >
<b>{{ $t('scenery.one-way-routes') }}</b> <b>{{ $t('scenery.one-way-routes') }}</b>
<i class="fa-solid" :class="`${showInternalSingleRoutes ? 'fa-eye' : 'fa-eye-slash'}`"></i> <i class="fa-solid" :class="`${showInternalSingleRoutes ? 'fa-eye' : 'fa-eye-slash'}`"></i>
@@ -32,7 +32,7 @@
class="routes-btn" class="routes-btn"
@click="toggleRoutesVisibility('double')" @click="toggleRoutesVisibility('double')"
data-tooltip-type="BaseTooltip" 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')}`"
> >
<b>{{ $t('scenery.two-way-routes') }}</b> <b>{{ $t('scenery.two-way-routes') }}</b>
<i class="fa-solid" :class="`${showInternalDoubleRoutes ? 'fa-eye' : 'fa-eye-slash'}`"></i> <i class="fa-solid" :class="`${showInternalDoubleRoutes ? 'fa-eye' : 'fa-eye-slash'}`"></i>
+12
View File
@@ -293,6 +293,16 @@
"withoutActiveTimetables": "NO ACTIVE", "withoutActiveTimetables": "NO ACTIVE",
"junction": "JUNCTIONS", "junction": "JUNCTIONS",
"nonJunction": "OTHER", "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": { "sliders": {
"minLevel": "MIN. REQUIRED DISPATCHER LEVEL", "minLevel": "MIN. REQUIRED DISPATCHER LEVEL",
"maxLevel": "MAX. REQUIRED DISPATCHER LEVEL", "maxLevel": "MAX. REQUIRED DISPATCHER LEVEL",
@@ -562,6 +572,8 @@
"option-active-timetables": "Active timetables", "option-active-timetables": "Active timetables",
"option-timetables-history": "Timetables history PL1", "option-timetables-history": "Timetables history PL1",
"option-dispatchers-history": "Dispatchers 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-includesScenery": "ALL TIMETABLES",
"timetable-via": "PASSES THROUGH", "timetable-via": "PASSES THROUGH",
"timetable-issuedFrom": "BEGINS HERE", "timetable-issuedFrom": "BEGINS HERE",
+8 -8
View File
@@ -306,14 +306,14 @@
"sliders": { "sliders": {
"vMax": "PRĘDKOŚĆ SZLAKOWA", "vMax": "PRĘDKOŚĆ SZLAKOWA",
"level": "WYMAGANY POZIOM DYŻURNEGO", "level": "WYMAGANY POZIOM DYŻURNEGO",
"routeOneWay": "SZLAKI JEDNOTOROWE NIEZELEKTR.", "routeOneWay": "SZLAKI 1-TOROWE NIEZELEKTR.",
"routeOneWayCatenary": "SZLAKI JEDNOTOROWE ZELEKTR.", "routeOneWayCatenary": "SZLAKI 1-TOROWE ZELEKTR.",
"routeTwoWayCatenary": "SZLAKI DWUTOROWE ZELEKTR.", "routeTwoWayCatenary": "SZLAKI 2-TOROWE ZELEKTR.",
"routeTwoWay": "SZLAKI DWUTOROWE NIEZELEKTR.", "routeTwoWay": "SZLAKI 2-TOROWE NIEZELEKTR.",
"routeOneWayInternalCatenary": "SZLAKI JEDNOTOROWE ZELEKTR. WEWNĘTRZNE", "routeOneWayInternalCatenary": "SZLAKI WEWN. 1-TOROWE ZELEKTR.",
"routeOneWayInternal": "SZLAKI JEDNOTOROWE NIEZELEKTR. WEWNĘTRZNE", "routeOneWayInternal": "SZLAKI WEWN. 1-TOROWE NIEZELEKTR.",
"routeTwoWayInternalCatenary": "SZLAKI DWUTOROWE ZELEKTR. WEWNĘTRZNE", "routeTwoWayInternalCatenary": "SZLAKI WEWN. 2-TOROWE ZELEKTR.",
"routeTwoWayInternal": "SZLAKI DWUTOROWE NIEZELEKTR. WEWNĘTRZNE" "routeTwoWayInternal": "SZLAKI WEWN. 2-TOROWE NIEZELEKTR."
}, },
"sceneries-placeholder": "Wyszukaj scenerię", "sceneries-placeholder": "Wyszukaj scenerię",
"line-numbers-placeholder": "Numery linii (oddzielone przecinkami)", "line-numbers-placeholder": "Numery linii (oddzielone przecinkami)",
+8 -8
View File
@@ -110,14 +110,14 @@ export const initFilters = {
export const sliderGroups: SliderGroup[] = [ export const sliderGroups: SliderGroup[] = [
'vMax', 'vMax',
'level', 'level',
'routeOneWay',
'routeOneWayCatenary', 'routeOneWayCatenary',
'routeOneWayInternal', 'routeOneWay',
'routeOneWayInternalCatenary',
'routeTwoWay',
'routeTwoWayCatenary', 'routeTwoWayCatenary',
'routeTwoWayInternal', 'routeTwoWay',
'routeTwoWayInternalCatenary' 'routeOneWayInternalCatenary',
'routeOneWayInternal',
'routeTwoWayInternalCatenary',
'routeTwoWayInternal'
]; ];
export const sliderGroupsOptions: Record<SliderGroup, SliderOptions[]> = { export const sliderGroupsOptions: Record<SliderGroup, SliderOptions[]> = {
@@ -208,8 +208,8 @@ export const filtersSections: Record<StationFilterSection, StationFilter[]> = {
], ],
blockades: ['SBL', 'PBL'], blockades: ['SBL', 'PBL'],
signals: ['modern', 'semaphores', 'mixed', 'historical'], signals: ['modern', 'semaphores', 'mixed', 'historical'],
externalRoutes: ['oneWay', 'oneWayCatenary', 'twoWay', 'twoWayCatenary'], externalRoutes: ['oneWayCatenary', 'oneWay', 'twoWayCatenary', 'twoWay'],
internalRoutes: ['oneWayInt', 'oneWayCatenaryInt', 'twoWayInt', 'twoWayCatenaryInt'] internalRoutes: ['oneWayCatenaryInt', 'oneWayInt', 'twoWayCatenaryInt', 'twoWayInt']
}; };
export function setupFilters(currentFilters: Record<string, any>) { export function setupFilters(currentFilters: Record<string, any>) {