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"
@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')}`"
>
<b>{{ $t('scenery.one-way-routes') }}</b>
<i class="fa-solid" :class="`${showInternalSingleRoutes ? 'fa-eye' : 'fa-eye-slash'}`"></i>
@@ -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')}`"
>
<b>{{ $t('scenery.two-way-routes') }}</b>
<i class="fa-solid" :class="`${showInternalDoubleRoutes ? 'fa-eye' : 'fa-eye-slash'}`"></i>
+12
View File
@@ -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",
+8 -8
View File
@@ -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)",
+8 -8
View File
@@ -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<SliderGroup, SliderOptions[]> = {
@@ -208,8 +208,8 @@ export const filtersSections: Record<StationFilterSection, StationFilter[]> = {
],
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<string, any>) {