Skip to content

Commit

Permalink
Merge pull request #279 from yuryleb/fr-grammar-article-fix
Browse files Browse the repository at this point in the history
Improve article matching in French instructions
  • Loading branch information
1ec5 authored Mar 27, 2019
2 parents 9de8ca2 + dcdcddb commit 4a3bc26
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ All notable changes to this project will be documented in this file. For change
- Added a Japanese localization. [#277](https://github.com/Project-OSRM/osrm-text-instructions/pull/277)
- Added an Arabic localization. [#267](https://github.com/Project-OSRM/osrm-text-instructions/pull/267)
- Added a Slovenian localization. [#264](https://github.com/Project-OSRM/osrm-text-instructions/pull/264)
- Updated French grammar with 'chaussée' status street name. [#268](https://github.com/Project-OSRM/osrm-text-instructions/pull/268)
- Updated French grammar with 'chaussée' status street name and better articles matching. [#268](https://github.com/Project-OSRM/osrm-text-instructions/pull/268)[#279](https://github.com/Project-OSRM/osrm-text-instructions/pull/279)

## 0.13.2 2018-08-13

Expand Down
2 changes: 1 addition & 1 deletion languages/overrides/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var replaces = [
[' (le rond-point )?\{rotary_name\}', ' {rotary_name:rotary}'], // eslint-disable-line no-useless-escape
[' fin (de )?(la route )?\{way_name\}', ' fin {way_name:preposition}'], // eslint-disable-line no-useless-escape
[' \{way_name\}', ' {way_name:article}'], // eslint-disable-line no-useless-escape
[' (à )?\{waypoint_name\}', ' {waypoint_name:arrival}'] // eslint-disable-line no-useless-escape
[' (à +)?\{waypoint_name\}', ' {waypoint_name:arrival}'] // eslint-disable-line no-useless-escape
];

function optionize(phrase) {
Expand Down
2 changes: 1 addition & 1 deletion languages/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"upcoming": "Vous arriverez à votre {nth} destination, sur la droite",
"short": "Vous êtes arrivé",
"short-upcoming": "Vous arriverez",
"named": "Vous êtes arrivé à {waypoint_name:arrival}, sur la droite"
"named": "Vous êtes arrivé {waypoint_name:arrival}, sur la droite"
},
"sharp left": {
"default": "Vous êtes arrivé à votre {nth} destination, sur la gauche",
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/v5/arrive_waypoint_name/right.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"es": "Has llegado a Somewhere, a la derecha",
"es-ES": "Has llegado a Somewhere, a la derecha",
"fi": "Olet saapunut määränpäähän Somewhere, joka on oikealla puolellasi",
"fr": "Vous êtes arrivé à à Somewhere, sur la droite",
"fr": "Vous êtes arrivé à Somewhere, sur la droite",
"he": "הגעת אל Somewhere שלך מימינך",
"hu": "Megérkezett a Somewhere célponthoz, a jobb oldalon",
"id": "Anda telah tiba di Somewhere, di sebelah kanan",
Expand Down

0 comments on commit 4a3bc26

Please sign in to comment.