Skip to content

Commit

Permalink
Merge branch 'daniel/departureWording' into stag
Browse files Browse the repository at this point in the history
  • Loading branch information
danji90 committed Feb 3, 2025
2 parents 2e7ad1d + 47cf7e6 commit 0c5ee2a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"Abbrechen": "Cancel",
"Abfahrtszeiten": "Departure times",
"Abfahrtszeiten aller abfahrtszeiten_gleis": "Departure time for all platforms",
"Abfahrtszeiten aller abfahrtszeiten_kante": "Departure time for all stands",
"Abfahrtszeiten aller abfahrtszeiten_kante": "Departure time for all stops",
"Abfahrtszeiten aller abfahrtszeiten_steg": "Departure time for all piers",
"abfahrtszeiten_gleis": "platform",
"abfahrtszeiten_kante": "stand",
"abfahrtszeiten_kante": "stop",
"abfahrtszeiten_steg": "pier",
"abkuerzung": "Abkürzung",
"Abschicken": "Send",
Expand Down
4 changes: 2 additions & 2 deletions src/lang/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"Abfahrtszeiten": "Orari di partenza",
"Abfahrtszeiten aller abfahrtszeiten_gleis": "Orario di partenza per tutti i binari",
"Abfahrtszeiten aller abfahrtszeiten_kante": "Orario di partenza per tutte le corsie",
"Abfahrtszeiten aller abfahrtszeiten_steg": "Orario di partenza per tutti i imbarcaderi",
"Abfahrtszeiten aller abfahrtszeiten_steg": "Orario di partenza per tutti i pontili",
"abfahrtszeiten_gleis": "binario",
"abfahrtszeiten_kante": "corsia",
"abfahrtszeiten_steg": "imbarcadero",
"abfahrtszeiten_steg": "pontile",
"abkuerzung": "Abkürzung",
"Abschicken": "Inviare",
"accessibility": "Utilizzo autonomo",
Expand Down
4 changes: 3 additions & 1 deletion src/popups/StationPopup/StationPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ const memoized = React.memo(StationPopup);
memoized.renderTitle = (feat, layer, t) => {
const feature = feat.length ? feat[0] : feat;
const platform = feature.get("platform");
const isRail = !!feature.get("rail");

if (platform) {
return `${feature.get("name")} (${t("abfahrtszeiten_kante")} ${platform})`;
return `${feature.get("name")} (${t(isRail ? "abfahrtszeiten_gleis" : "abfahrtszeiten_kante")} ${platform})`;
}
return feature.get("name");
};
Expand Down

0 comments on commit 0c5ee2a

Please sign in to comment.