chore: station stats translation

This commit is contained in:
2024-05-06 18:16:30 +02:00
parent 3371b661c2
commit 669acc98d2
4 changed files with 34 additions and 13 deletions
@@ -1,26 +1,27 @@
<template> <template>
<div class="stations-stats"> <div class="station-stats">
<div class="separator" /> <div class="separator" />
<div> <div>
Współczynnik Ugla {{ $t('station-stats.u-factor') }}
<a <a
href="https://td2.info.pl/dyskusje/wspolczynnik-ugla-czy-to-ma-sens/msg81011/#msg81011" href="https://td2.info.pl/dyskusje/wspolczynnik-ugla-czy-to-ma-sens/msg81011/#msg81011"
target="_blank" target="_blank"
data-tooltip="(?) Współczynnik ruchu na serwerze (liczba maszynistów online dzielona na liczbę dyżurnych ruchu)" :data-tooltip="$t('station-stats.u-factor-tooltip')"
>(?)</a >(?)</a
>: >:
<b :style="calculateFactorStyle()"> <b :style="calculateFactorStyle()">
{{ uFactor.toFixed(2) }} {{ uFactor.toFixed(2) }}
</b> </b>
| Średnia liczba rozkładów jazdy na dyżurnego: | {{ $t('station-stats.avg-timetable-count') }}
<b>{{ avgTimetableCount.toFixed(2) }}</b> <b>{{ avgTimetableCount.toFixed(2) }}</b>
</div> </div>
<div> <div>
Dostępne szlaki 1-torowe: {{ $t('station-stats.single-track-count') }}
<b>{{ trackCount.oneWayElectric }}</b> (zelektr.) / <b>{{ trackCount.oneWayElectric }}</b> {{ $t('station-stats.electrified') }} /
<b>{{ trackCount.oneWayOther }}</b> (niezelektr.) | Dostępne szlaki 2-torowe: <b>{{ trackCount.oneWayOther }}</b> {{ $t('station-stats.not-electrified') }} |
<b>{{ trackCount.twoWayElectric }}</b> (zelektr.) / {{ $t('station-stats.double-track-count') }} <b>{{ trackCount.twoWayElectric }}</b>
<b>{{ trackCount.twoWayOther }}</b> (niezelektr.) | Otwarte spawny: {{ $t('station-stats.electrified') }} / <b>{{ trackCount.twoWayOther }}</b>
{{ $t('station-stats.not-electrified') }} | {{ $t('station-stats.open-spawns') }}
<b>{{ spawnCount.passenger }}</b> - PAS / <b>{{ spawnCount.freight }}</b> - TOW / <b>{{ spawnCount.passenger }}</b> - PAS / <b>{{ spawnCount.freight }}</b> - TOW /
<b>{{ spawnCount.loco }}</b> - LUZ / <b>{{ spawnCount.all }}</b> - ALL <b>{{ spawnCount.loco }}</b> - LUZ / <b>{{ spawnCount.all }}</b> - ALL
</div> </div>
@@ -127,7 +128,7 @@ export default defineComponent({
background-color: #ddd; background-color: #ddd;
} }
.stations-stats { .station-stats {
text-align: center; text-align: center;
color: #ddd; color: #ddd;
} }
+10
View File
@@ -296,6 +296,16 @@
"no-stations": "No stations to show here!", "no-stations": "No stations to show here!",
"scenery-search": "Search for scenery..." "scenery-search": "Search for scenery..."
}, },
"station-stats": {
"u-factor": "U-factor: ",
"u-factor-tooltip": "(?) Current server traffic factor (driver count divided by dispatcher count)",
"avg-timetable-count": "Average timetable count for one dispatcher: ",
"single-track-count": "Available single track routes: ",
"double-track-count": "Available double track routes: ",
"electrified": "(electrified)",
"not-electrified": "(not electr.)",
"open-spawns": "Open spawns: "
},
"trains": { "trains": {
"no-trains": "No trains to show here!", "no-trains": "No trains to show here!",
"loading": "Loading train data...", "loading": "Loading train data...",
+10
View File
@@ -289,6 +289,16 @@
"no-stations": "Brak stacji do wyświetlenia!", "no-stations": "Brak stacji do wyświetlenia!",
"scenery-search": "Wyszukaj scenerię..." "scenery-search": "Wyszukaj scenerię..."
}, },
"station-stats": {
"u-factor": "Współczynnik Ugla: ",
"u-factor-tooltip": "(?) Współczynnik ruchu na serwerze (liczba maszynistów online dzielona na liczbę dyżurnych ruchu)",
"avg-timetable-count": "Średnia liczba rozkładów jazdy na dyżurnego: ",
"single-track-count": "Dostępne szlaki jednotorowe: ",
"double-track-count": "Dostępne szlaki dwutorowe: ",
"electrified": "(zelektr.)",
"not-electrified": "(niezelektr.)",
"open-spawns": "Otwarte spawny: "
},
"trains": { "trains": {
"no-trains": "Brak pociągów do wyświetlenia!", "no-trains": "Brak pociągów do wyświetlenia!",
"loading": "Pobieranie danych o pociągach...", "loading": "Pobieranie danych o pociągach...",
+3 -3
View File
@@ -22,7 +22,7 @@
<Donation :isModalOpen="isDonationModalOpen" @toggleModal="toggleDonationModal" /> <Donation :isModalOpen="isDonationModalOpen" @toggleModal="toggleDonationModal" />
<StationTable @toggleDonationModal="toggleDonationModal" /> <StationTable @toggleDonationModal="toggleDonationModal" />
<StationsStats /> <StationStats />
</div> </div>
</section> </section>
</template> </template>
@@ -34,13 +34,13 @@ import StationFilterCard from '../components/StationsView/StationFilterCard.vue'
import { useStationFiltersStore } from '../store/stationFiltersStore'; import { useStationFiltersStore } from '../store/stationFiltersStore';
import { useMainStore } from '../store/mainStore'; import { useMainStore } from '../store/mainStore';
import Donation from '../components/Global/Donation.vue'; import Donation from '../components/Global/Donation.vue';
import StationsStats from '../components/StationsView/StationsStats.vue'; import StationStats from '../components/StationsView/StationStats.vue';
export default defineComponent({ export default defineComponent({
components: { components: {
StationTable, StationTable,
StationFilterCard, StationFilterCard,
StationsStats, StationStats,
Donation Donation
}, },