Skip to content

Commit

Permalink
Merge pull request #7 from hove-io/arb_fix-lang3
Browse files Browse the repository at this point in the history
Fix language
  • Loading branch information
aboivert authored Sep 30, 2024
2 parents d91547a + 55e7948 commit 69025fc
Show file tree
Hide file tree
Showing 16 changed files with 57 additions and 55 deletions.
32 changes: 16 additions & 16 deletions gtfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@
placeholder: [email protected]
columnWidth: 12
helpContent: "Contient l'adresse mail du service client de l'agence opérant le flux."
#- name: agency_branding_url
# required: false
# displayName: URL du branding de l'agence
# datatools: false
# placeholder: https://agence.fr/branding
# inputType: URL
# columnWidth: 12
# helpContent:
- name: agency_branding_url
required: false
displayName: URL du branding de l'agence
datatools: false
placeholder: https://agence.fr/branding
inputType: URL
columnWidth: 12
helpContent:

- id: stop
name: stops.txt
Expand Down Expand Up @@ -541,14 +541,14 @@
text: Oui (1)
- value: 2
text: Non (2)
#- name: route_branding_url
# required: false
# displayName: Route branding URL
# datatools: false
# placeholder: https://agence.fr/branding/itineraire/31
# inputType: URL
# columnWidth: 12
# helpContent:
- name: route_branding_url
required: false
displayName: Route branding URL
datatools: false
placeholder: https://agence.fr/branding/itineraire/31
inputType: URL
columnWidth: 12
helpContent:

- id: trip
name: trips.txt
Expand Down
18 changes: 9 additions & 9 deletions i18n/english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ components:
ExceptionValidationErrorsList:
andOtherErrors: ...et %errors% autre erreurs
ExportPatternsModal:
exportPatterns: Publier une version avec des motifs propriétaires?
exportPatterns: Publier une nouvelle version ?
no: Non
yes: Oui
FeedFetchFrequency:
Expand All @@ -368,10 +368,10 @@ components:
FeedInfo:
autoFetch: Récupération automatique
autoPublish: Publication automatique
dateFormat: DD.MM.YYYY
dateFormat: DD MMM YYYY
deployable: Déployable
edit: Editer
lastUpdatedDate: Dernière mise à jour %date%
lastUpdatedDate: Dernière mise à jour le %date%
noUpdates: Pas de mises à jour
private: Privé
public: Public
Expand Down Expand Up @@ -405,7 +405,7 @@ components:
STARRED: Favoris
PUBLIC: Public
PRIVATE: Privé
forFeed: Pour le flux
forFeed: Pour le projet
noFeedsYet: Pas encore de flux
search: Recherche de flux
unnamed: sans nom
Expand All @@ -420,7 +420,7 @@ components:
latestVersion: Dernière version
status: Statut
FeedSourceTableRow:
dateFormat: DD.MM.YYYY
dateFormat: DD MMMM YYYY
expired: Expiré il y a %duration%
lastUpdated: Dernière mise à jour il y à %lastVersionUpdate%
none: Aucun
Expand Down Expand Up @@ -907,7 +907,7 @@ components:
stopHeadsignPlaceholder: Départ
stopHeadsignText: Panneau de signalisation de l'arrêt
stopHeadsignTitle: Panneau de signalisation qui remplace la girouette du voyage entre les arrêts
timepoint: Point temporel ?
timepoint: Point temporel
travelTimeHelp: Définir le temps par défaut nécessaire pour se rendre à cet arrêt à partir de l'arrêt précédent
PickupDropOffSelect:
available: Disponible (0)
Expand Down Expand Up @@ -1249,14 +1249,14 @@ components:
showAllRoutesOnMap: Afficher les tracés
tooManyShapeRecords: un fichier shapes.txt volumineux peut avoir un impact sur les performances
Sidebar:
about: A propos de cette application
about: A propos de DataHub Editor
account: Comptes
serverJobs: Opérations
serverVersion: "Version du serveur:"
settings: Paramètres
uiDeployedAt: "Interface utilisateur déployée le:"
uiVersion: "Version de l\'interface utilisateur:"
unknown: Inconnu
uiVersion: "Version de l'interface utilisateur:"
unknown: Inconnue
SnapshotItem:
active: Actif
confirmDelete: Cette opération supprime définitivement cet instantané. Les données sauvegardées ici ne pourront pas être récupérées. Êtes-vous sûr de vouloir continuer ?
Expand Down
6 changes: 4 additions & 2 deletions lib/editor/components/EditorFeedSourcePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import React, {Component} from 'react'
import {Panel, Row, Col, ButtonGroup, Button, Glyphicon, ListGroup, ListGroupItem} from 'react-bootstrap'
import {LinkContainer} from 'react-router-bootstrap'
import moment from 'moment'
import 'moment/locale/fr'
moment.locale('fr')

import * as snapshotActions from '../actions/snapshots.js'
import ConfirmModal from '../../common/components/ConfirmModal'
Expand Down Expand Up @@ -173,8 +175,8 @@ class SnapshotItem extends Component<ItemProps> {

render () {
const {disabled, snapshot} = this.props
const dateFormat = getConfigProperty('application.date_format') || ''
const timeFormat = 'h:MMa'
const dateFormat = 'DD MMM YYYY'//getConfigProperty('application.date_format') || ''
const timeFormat = 'HH:mm'
const formattedTime = moment(snapshot.snapshotTime)
.format(`${dateFormat}, ${timeFormat}`)
return (
Expand Down
2 changes: 1 addition & 1 deletion lib/editor/components/pattern/AddPatternStopDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default class AddPatternStopDropdown extends Component<Props> {
title={addToEndDisabled ? DISABLED_MESSAGE : ''}
value={activePattern.patternStops.length}
eventKey={activePattern.patternStops.length}>
Add to end (default)
Ajouter à la fin (défaut)
</MenuItem>
{activePattern.patternStops && activePattern.patternStops.map((s, i) => {
// addIndex is in "reverse" order. For example:
Expand Down
2 changes: 1 addition & 1 deletion lib/editor/components/pattern/EditSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default class EditSettings extends Component<Props, State> {
<small>{s.label}</small>
</Checkbox>
))}
<ControlLabel><small>Shape editing mode</small></ControlLabel>
<ControlLabel><small>Mode d'édition du tracé</small></ControlLabel>
<FormControl
componentClass='select'
value={onMapClick}
Expand Down
2 changes: 1 addition & 1 deletion lib/editor/components/pattern/EditShapePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export default class EditShapePanel extends Component<Props> {
<h4 className='line'>
Tracé de circulation
{' '}
({formattedShapeDistance} miles)
({formattedShapeDistance} km)
</h4>
<div style={{margin: '5px 0'}}>
{!activePattern.shapeId
Expand Down
2 changes: 1 addition & 1 deletion lib/editor/components/pattern/TripPatternList.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class PatternRow extends Component<RowProps> {
patternName = `${`${pattern.name.length > 29
? pattern.name.substr(0, 29) + '...'
: pattern.name}`} ${pattern.patternStops
? `(${pattern.patternStops.length} stops)`
? `(${pattern.patternStops.length} arrêts)`
: ''}`
}
return (
Expand Down
2 changes: 1 addition & 1 deletion lib/editor/components/pattern/TripPatternListControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class TripPatternListControls extends Component<Props> {
routeId: activeEntity.route_id,
directionId: null,
patternStops: [],
name: 'Nouvelle circulatoin',
name: 'Nouvelle circulation',
// FIXME should we be using some other method to generate ID?
patternId: generateUID(),
shapeId: generateUID(),
Expand Down
2 changes: 1 addition & 1 deletion lib/editor/components/timetable/CalendarSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default class CalendarSelect extends Component<Props> {
? <>
<BsLabel
bsStyle={patternTrips ? 'success' : 'default'}
title={`CLe calendrier contient ${patternTrips} trajets pour le motif`}>
title={`Le calendrier contient ${patternTrips} trajets pour le motif`}>
<Icon type='bars' /> {patternTrips}
</BsLabel>
{/** {' '}
Expand Down
10 changes: 5 additions & 5 deletions lib/editor/util/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,18 @@ export function getEditorEnabledState (feedSource: Feed, user: ManagerUserState,

// check if editing is forbidden
if (!user.permissions) {
permissionProblem = 'undefined user privileges'
permissionProblem = 'privilèges utilisateur non-définis'
} else if (!user.permissions.hasFeedPermission(organizationId, projectId, id, 'edit-gtfs')) {
permissionProblem = 'insufficient user privileges'
permissionProblem = 'privilèges utilisateur insuffisants'
} else if (feedIsLocked) {
permissionProblem = 'feed is locked'
permissionProblem = 'flux verouillé'
} else {
permissionProblem = 'none'
permissionProblem = 'aucun'
editingIsDisabled = false
}

if (editingIsDisabled) {
console.warn(`User does not have permission to edit GTFS for ${name}. Problem: ${permissionProblem}`)
console.warn(`L'utilisateur n'a pas les droits pour éditer ${name}. Problème : ${permissionProblem}`)
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/manager/components/FeedSourceSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,4 @@ export default class FeedSourceSettings extends Component<Props> {
</Row>
)
}
}
}
2 changes: 2 additions & 0 deletions lib/manager/components/FeedSourceTableRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import Icon from '@conveyal/woonerf/components/icon'
import humanizeDuration from 'humanize-duration'
import moment from 'moment'
import 'moment/locale/fr'
moment.locale('fr')
import React, { PureComponent } from 'react'
import { Col, DropdownButton, Glyphicon, MenuItem, Row } from 'react-bootstrap'
import { browserHistory, Link } from 'react-router'
Expand Down
2 changes: 1 addition & 1 deletion lib/manager/components/GeneralSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,4 +241,4 @@ export default class GeneralSettings extends Component<Props, State> {
</Col>
)
}
}
}
2 changes: 1 addition & 1 deletion lib/manager/components/ProjectSettingsForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,4 +408,4 @@ export default class ProjectSettingsForm extends Component<Props, State> {
</div>
)
}
}
}
24 changes: 11 additions & 13 deletions lib/manager/components/validation/GtfsValidationViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import Icon from '@conveyal/woonerf/components/icon'
import moment from 'moment'
import 'moment/locale/fr'
moment.locale('fr')
import React, {Component} from 'react'
import {
Alert,
Expand Down Expand Up @@ -64,12 +62,12 @@ export default class GtfsValidationViewer extends Component<Props, State> {
this.setState({active: null})
} else {
if (!errorCounts) {
console.warn('Variable error_counts non définie')
console.warn('error_counts variable is undefined')
return
}
const category = errorCounts.find(c => c.type === errorType)
if (!category) {
console.warn(`Erreur=${errorType} non trouvée`, feedVersion)
console.warn(`Error type=${errorType} not found`, feedVersion)
return
}
if (!category.errors || category.errors.length === 0) {
Expand All @@ -89,12 +87,12 @@ export default class GtfsValidationViewer extends Component<Props, State> {
const {limit} = this.state
const {error_counts: errorCounts} = feedVersion.validationResult
if (!errorCounts) {
console.warn('Error counts pas trouvé pour les résultats de validation', feedVersion)
console.warn('Error counts not found for validation result', feedVersion)
return
}
const category = errorCounts.find(c => c.type === errorType)
if (!category) {
console.warn(`Erreur=${errorType} non trouvée`, feedVersion)
console.warn(`Error type=${errorType} not found`, feedVersion)
return
}
// Update offset based on number of errors already fetched
Expand All @@ -109,8 +107,8 @@ export default class GtfsValidationViewer extends Component<Props, State> {
const { validationResult, version } = this.props
const tableFatalExceptions = getTableFatalExceptions(version)
const {active} = this.state
const dateFormat = 'DD MMMM YYYY'
const timeFormat = 'HH:mm'
const dateFormat = 'MMM. DD, YYYY'
const timeFormat = 'h:MMa'
const hasValidation = isErrorCountFetched(validationResult)
const validationErrors = getValidationResultErrorCounts(validationResult)

Expand Down Expand Up @@ -156,7 +154,7 @@ export default class GtfsValidationViewer extends Component<Props, State> {
<h4>
<span
className={`buffer-icon ${errorClass}`}
title={`Priorité ${toSentenceCase(category.priority)}`}>
title={`${toSentenceCase(category.priority)} priority`}>
<Icon type={validationErrorIconLookup[category.priority]} />
</span>
{toSentenceCase(category.type.replace(/_/g, ' '))}
Expand Down Expand Up @@ -201,7 +199,7 @@ export default class GtfsValidationViewer extends Component<Props, State> {
<Table className='table-fixed' fill hover striped>
<thead><tr>
<th>Line #</th>
{includeEntityType && <th>Type d'entité</th>}
{includeEntityType && <th>Entity type</th>}
<th>{firstError && !includeEntityType ? firstError.entity_type : 'Entity'} ID</th>
<th>Bad value</th>
<th>Action</th>
Expand Down Expand Up @@ -233,7 +231,7 @@ export default class GtfsValidationViewer extends Component<Props, State> {
</ListGroupItem>
: errorTypeIsActive
? <ListGroupItem className='validation-item'>
<span className='text-muted'>Plus d'erreurs de ce type</span>
<span className='text-muted'>No more errors of this type</span>
</ListGroupItem>
: null
}
Expand Down Expand Up @@ -280,11 +278,11 @@ export default class GtfsValidationViewer extends Component<Props, State> {
<MobilityDataValidationResult notice={notice} />
))}
{(!version.mobilityDataResult || version.mobilityDataResult.notices.length === 0) && <ListGroupItem className='validation-item'>
Le validateur de MobilityData n'a remonté aucune erreur. Le validateur est peut-être toujours en cours d'utilisation.
The MobilityData validator has not produced any errors or warnings. This may be because the validator is still running.
</ListGroupItem>}
</ListGroup>
</Panel>
</div>
)
}
}
}
2 changes: 1 addition & 1 deletion lib/manager/components/version/FeedVersionViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ class VersionSectionSelector extends Component<SelectorProps> {
to={`${versionPath}/comments`}
>
<ListGroupItem>
<Glyphicon glyph='comment' /> Commentaires associés à la version{' '}
<Glyphicon glyph='comment' /> Commentaires{' '}
<BsLabel>{version.noteCount}</BsLabel>
</ListGroupItem>
</LinkContainer>
Expand Down

0 comments on commit 69025fc

Please sign in to comment.