Skip to content

Commit 1b3d630

Browse files
Merge pull request #611 from opentripplanner/remove-unused-messages
Remove unused messages
2 parents 364ca33 + b76dc15 commit 1b3d630

File tree

3 files changed

+33
-115
lines changed

3 files changed

+33
-115
lines changed

Diff for: i18n/en-US.yml

-12
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ components:
132132
mailables: Mailables
133133
menuItemIconAlt: "Icon for {label} menu item"
134134
openMenu: Open Menu
135-
routeViewer: Route Viewer
136135
BackToTripPlanner:
137136
backToTripPlanner: Back to trip planner
138137
BatchResultsScreen:
@@ -217,8 +216,6 @@ components:
217216
enterLocation: Enter location
218217
setDestination: Set Destination
219218
setOrigin: Set Origin
220-
MainMobile:
221-
invalidScreen: Invalid mobile screen
222219
MapLayers:
223220
bike-rental: "{companies} Shared Bikes"
224221
car-rental: Rental Car Locations
@@ -363,17 +360,11 @@ components:
363360
agencyFilter: Agency Filter
364361
allAgencies: All Agencies
365362
allModes: All Modes # Note to translator: This text is width-constrained.
366-
delaysShownInResults: >
367-
Your trip results have been adjusted based on real-time
368-
information. Under normal conditions, this trip would take <strong>{normalDuration}</strong>
369-
using the following routes: {routes}.
370363
details: " " # If the string is left blank, React-Intl renders the id
371364
findARoute: Find A Route
372365
header: Route Viewer
373366
modeFilter: Mode Filter
374367
noFilteredRoutesFound: No routes match your filter!
375-
noRouteUrl: No route URL provided.
376-
serviceUpdate: Service update
377368
shortTitle: View Routes
378369
title: Route Viewer
379370
SavedTripEditor:
@@ -658,7 +649,6 @@ common:
658649
forms:
659650
back: Back
660651
cancel: Cancel
661-
clear: Clear
662652
error: error!
663653
defaultValue: "{value} (default)"
664654
delete: Delete
@@ -686,7 +676,6 @@ common:
686676
# "Aucun trajet en vélo, à pied, et en transports publics n'a été trouvé."
687677
# OTP access modes
688678
modes:
689-
bicycle: Bicycle
690679
bike: Bike
691680
bicycle_rent: Bikeshare
692681
bus: Bus
@@ -707,7 +696,6 @@ common:
707696
tram: Streetcar
708697
transit: Transit
709698
walk: Walk
710-
walking: Walking
711699

712700
notifications:
713701
email: email

Diff for: i18n/fr.yml

+1-78
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ components:
122122
mailables: Prêt-à-poster
123123
menuItemIconAlt: "Icône pour le menu {label}"
124124
openMenu: "Ouvrir le menu"
125-
routeViewer: Index des lignes
126125
BackToTripPlanner:
127126
backToTripPlanner: Retour au planificateur de trajets
128127
BatchResultsScreen:
@@ -205,8 +204,6 @@ components:
205204
enterLocation: Entrez le lieu
206205
setDestination: Choisissez la destination
207206
setOrigin: Choisissez le point de départ
208-
MainMobile:
209-
invalidScreen: Écran non valable.
210207
MapLayers:
211208
bike-rental: Vélos partagés {companies}
212209
car-rental: Voitures en location
@@ -348,16 +345,11 @@ components:
348345
agencyFilter: Filtrer les transporteurs
349346
allAgencies: Tous transporteurs
350347
allModes: Tous modes # Note to translator: This text is width-constrained.
351-
delaysShownInResults: >
352-
Vos trajets recherchés ont été mis à jour avec les conditions en temps réel.
353-
En temps normal, ce trajet prendrait <strong>{normalDuration}</strong> en empruntant les lignes: {routes}.
354348
details: " " # If the string is left blank, React-Intl renders the id
355349
findARoute: Chercher une ligne
356350
header: Index des lignes
357351
modeFilter: Filtre pour les modes
358352
noFilteredRoutesFound: Aucune ligne ne correspond à vos critères
359-
noRouteUrl: Aucun lien fourni pour cette ligne.
360-
serviceUpdate: Information sur le service
361353
shortTitle: Index des lignes
362354
title: Index des lignes
363355
SavedTripEditor:
@@ -600,73 +592,6 @@ components:
600592
WelcomeScreen:
601593
prompt: Où désirez-vous aller ?
602594

603-
otpUi:
604-
DateTimeSelector:
605-
arrive: Arrivée
606-
depart: Départ
607-
now: Tout de suite
608-
queryParameters:
609-
bikeSpeed: Vitesse à vélo
610-
distanceInMiles: "{miles, number, :: unit/mile unit-width-full-name}"
611-
maxBikeDistance: Distance max. à vélo
612-
maxBikeTime: Durée max. à vélo
613-
maxEScooterDistance: Distance max. en trottinette
614-
maxWalkDistance: Distance max. à pied
615-
maxWalkTime: Durée max. à pied
616-
optimizeBikeFlat: avec moins de reliefs
617-
optimizeBikeFriendly: plus pratiques à vélo
618-
optimizeBikeSpeed: plus rapides
619-
optimizeFor: Privilégier les trajets
620-
optimizeQuick: plus rapides
621-
optimizeTransfers: avec moins de correspondances
622-
speedInMilesPerHour: "{mph} mi/h"
623-
walkSpeed: Vitesse à pied
624-
watts: Puissance de la trottinette électrique
625-
watts125kidsHoverboard: Hoverboard pour enfants (10 km/h)
626-
watts1500powerfulEscooter: Trottinette puissante (40 km/h)
627-
watts250entryLevelEscooter: Trottinette de base (18 km/h)
628-
watts500robustEscooter: Trottinette robuste (30 km/h)
629-
# Note to translator: This text is width-constrained.
630-
wheelchair: Trajets accessibles en fauteuil roulant
631-
SettingsSelectorPanel:
632-
bikeOnly: Vélo uniquement
633-
escooterOnly: Trottinette uniquement
634-
takeTransit: En transports
635-
travelPreferences: Préférences de trajet
636-
use: Utiliser # as in "Use bus, train, subway"
637-
useCompanies: Prestataires # as in "Use companies: Spin, Lime, Bolt"
638-
walkOnly: À pied uniquement
639-
TripDetails:
640-
calories: "Calories dépensées : <strong>{calories, number, ::.}</strong>"
641-
caloriesDescription: >
642-
La dépense calorique est calculée sur la base de
643-
{walkMinutes, plural, one {<strong># minute</strong> effectuée} other {<strong># minutes</strong> effectuées}} à pied et
644-
{bikeMinutes, plural, one {<strong># minute</strong> effectuée} other {<strong># minutes</strong> effectuées}} en vélo sur ce trajet.
645-
(d'après <dietaryLink>Dietary Guidelines for Americans 2005, page 16, Table 4</dietaryLink>)
646-
departure: Départ le <strong>{departureDate, date, long}</strong> à <strong>{departureDate, time, short}</strong>
647-
flexDropOffMessage: >
648-
{hasLeadTime, select,
649-
true {Pour descendre à votre destination, vous devez faire une réservation préalable
650-
{hasPhone, select,
651-
true {au {phoneNumber}}
652-
other {}
653-
} au moins {leadDays, plural, one {# jour} other {# jours}} à l'avance.}
654-
other {Vous devez informer le conducteur de votre destination.}
655-
}.
656-
flexPickupMessage: >
657-
Pour ce trajet, vous devez faire une réservation préalable {hasPhone, select,
658-
true {au {phoneNumber}}
659-
other {}
660-
}{hasLeadTime, select,
661-
true { au moins {leadDays, plural, one {# jour} other {# jours}} à l'avance}
662-
other {}
663-
}.
664-
title: Détails du trajet
665-
tncFare: "Tarif {companies} : <strong>{minTNCFare} - {maxTNCFare}</strong>"
666-
transitFare: Tarif en transports
667-
transitFareEntry: "{name} : <strong>{value}</strong>"
668-
tripIncludesFlex: Ce trajet comprend un service à la demande (Flex).
669-
670595
common:
671596
coordinates: "{lat}; {lon}"
672597
dateExpressions:
@@ -703,7 +628,6 @@ common:
703628
forms:
704629
back: Retour
705630
cancel: Annuler
706-
clear: Effacer
707631
error: erreur !
708632
defaultValue: "{value} (défaut)"
709633
delete: Supprimer
@@ -729,7 +653,6 @@ common:
729653
# In French, the above sentence could read:
730654
# "Aucun trajet en vélo, à pied, et en transports publics n'a été trouvé."
731655
modes:
732-
bicycle: En vélo
733656
bike: Vélo
734657
bicycle_rent: En vélo en libre-service
735658
bus: Bus
@@ -739,6 +662,7 @@ common:
739662
car_park: En voiture + parc relais
740663
drive: Voiture
741664
ferry: Ferry
665+
flex: Service Flex
742666
funicular: Funiculaire
743667
gondola: Téléphérique
744668
micromobility: En trottinette électrique
@@ -749,7 +673,6 @@ common:
749673
tram: Tram
750674
transit: En transports
751675
walk: À pied
752-
walking: Marche
753676

754677
notifications:
755678
email: e-mail

Diff for: lib/components/mobile/location-search.js

+32-25
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
/* eslint-disable react/prop-types */
2+
import { connect } from 'react-redux'
3+
import { injectIntl } from 'react-intl'
14
import PropTypes from 'prop-types'
25
import React, { Component } from 'react'
3-
import { injectIntl } from 'react-intl'
4-
import { connect } from 'react-redux'
56

6-
import LocationField from '../form/connected-location-field'
77
import { MobileScreens, setMobileScreen } from '../../actions/ui'
8+
import LocationField from '../form/connected-location-field'
89

910
import MobileContainer from './container'
1011
import MobileNavigationBar from './navigation-bar'
@@ -19,33 +20,35 @@ class MobileLocationSearch extends Component {
1920
this.props.setMobileScreen(MobileScreens.SEARCH_FORM)
2021
}
2122

22-
render () {
23-
const {
24-
backScreen,
25-
intl,
26-
location,
27-
locationType,
28-
otherLocation
29-
} = this.props
30-
const suppressNearby = otherLocation &&
31-
otherLocation.category === 'CURRENT_LOCATION'
23+
render() {
24+
const { backScreen, intl, location, locationType, otherLocation } =
25+
this.props
26+
const suppressNearby =
27+
otherLocation && otherLocation.category === 'CURRENT_LOCATION'
3228
return (
3329
<MobileContainer>
3430
<MobileNavigationBar
3531
backScreen={backScreen}
36-
headerText={intl.formatMessage(
32+
headerText={
3733
locationType === 'to'
38-
? {id: 'components.LocationSearch.setDestination'}
39-
: {id: 'components.LocationSearch.setOrigin'}
40-
)}
34+
? intl.formatMessage({
35+
id: 'components.LocationSearch.setDestination'
36+
})
37+
: intl.formatMessage({
38+
id: 'components.LocationSearch.setOrigin'
39+
})
40+
}
4141
showBackButton
4242
/>
43-
<div className='location-search mobile-padding'>
43+
<div className="location-search mobile-padding">
4444
<LocationField
4545
hideExistingValue
46-
inputPlaceholder={location
47-
? location.name
48-
: intl.formatMessage({id: 'components.LocationSearch.enterLocation'})
46+
inputPlaceholder={
47+
location
48+
? location.name
49+
: intl.formatMessage({
50+
id: 'components.LocationSearch.enterLocation'
51+
})
4952
}
5053
locationType={locationType}
5154
onLocationSelected={this._locationSelected}
@@ -63,14 +66,18 @@ class MobileLocationSearch extends Component {
6366
const mapStateToProps = (state, ownProps) => {
6467
return {
6568
location: state.otp.currentQuery[ownProps.locationType],
66-
otherLocation: ownProps.type === 'from'
67-
? state.otp.currentQuery.to
68-
: state.otp.currentQuery.from
69+
otherLocation:
70+
ownProps.type === 'from'
71+
? state.otp.currentQuery.to
72+
: state.otp.currentQuery.from
6973
}
7074
}
7175

7276
const mapDispatchToProps = {
7377
setMobileScreen
7478
}
7579

76-
export default connect(mapStateToProps, mapDispatchToProps)(injectIntl(MobileLocationSearch))
80+
export default connect(
81+
mapStateToProps,
82+
mapDispatchToProps
83+
)(injectIntl(MobileLocationSearch))

0 commit comments

Comments
 (0)