Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Arabic localization #267

Merged
merged 2 commits into from
Sep 26, 2018
Merged

Add Arabic localization #267

merged 2 commits into from
Sep 26, 2018

Conversation

1ec5
Copy link
Member

@1ec5 1ec5 commented Sep 5, 2018

Added a complete Arabic localization from Transifex, courtesy of @RazanQ.

@RazanQ, please review the test fixtures to ensure that your translations are joined into correct sentences. Feel free to make corrections at Transifex; this PR will be updated with your translations before merging. Thanks for your contributions!

Fixes #266.

/cc @danpaz

@1ec5 1ec5 self-assigned this Sep 5, 2018
@1ec5 1ec5 requested a review from danpaz September 5, 2018 01:36
@RazanQ
Copy link

RazanQ commented Sep 9, 2018

I reviewed the test fixtures and made some corrections at Transfix.
Thanks

@1ec5
Copy link
Member Author

1ec5 commented Sep 24, 2018

Thanks, I updated the PR with your changes.

@@ -6,6 +6,7 @@
"name": "Street Name"
},
"instructions": {
"ar": "لقد وصلت إلى الوجهة ",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the trailing whitespace here expected?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here’s the format string:

"default": "لقد وصلت إلى الوجهة {nth}",

{nth} resolves to the empty string, but it appears at the end of the format string, so it doesn’t get collapsed down:

.replace(/ {2}/g, ' '); // remove excess spaces

The same issue affects Vietnamese. I guess technically OSRMTI could trim the final message if it causes problems for clients.

@1ec5 1ec5 requested a review from frederoni September 26, 2018 20:17
@1ec5 1ec5 merged commit bbfbbfb into master Sep 26, 2018
@1ec5 1ec5 deleted the 1ec5-tx-ar-266 branch September 26, 2018 20:28
kevinkreiser added a commit that referenced this pull request Mar 29, 2019
- Added a Hungarian localization and grammar. [#274](#274)
- Added a Japanese localization. [#277](#277)
- Added an Arabic localization. [#267](#267)
- Added a Slovenian localization. [#264](#264)
- Updated Russian arrive instructions. [#278](#278)
- 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)
@kevinkreiser kevinkreiser mentioned this pull request Mar 29, 2019
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Help to pull in Arabic Localization
4 participants