[openstreetmap/openstreetmap-website] Fix destinations and roundabouts locale (#1805)

mmd notifications at github.com
Mon Apr 2 08:16:48 UTC 2018


> Hopefully it will still work with different grammar structures in different languages!

Easy way to answer that question yourself: `grep -R "%{directions}" * | grep "_directions" | grep -v -e "directions}$"`

So no, this will also not work.

```
de.yml:        offramp_left_with_directions: Die linke Auffahrt Richtung %{directions} nehmen
mr.yml:        offramp_right_with_exit_directions: '%{directions}कडे जाता उजवीकडून %{exit}वर
mr.yml:        offramp_right_with_exit_name_directions: '%{directions}कडे जाताना %{name}वर
mr.yml:        offramp_left_with_exit_directions: '%{directions}कडे जाताना %{exit}ने बाहेर
mr.yml:        offramp_left_with_exit_name_directions: '%{directions}कडे जाताना %{name}वर
zh-CN.yml:        offramp_right_with_exit_directions: 在右侧沿%{exit}出口驶往%{directions}方向
zh-CN.yml:        offramp_right_with_exit_name_directions: 在右侧沿%{exit}出口至%{name},往%{directions}方向
zh-CN.yml:        offramp_right_with_directions: 上右侧斜坡,往%{directions}方向
zh-CN.yml:        offramp_right_with_name_directions: 上坡右转至%{name},往%{directions}方向
zh-CN.yml:        onramp_right_with_directions: 向右侧斜坡拐去,往%{directions}方向
zh-CN.yml:        onramp_right_with_name_directions: 上坡右转至%{name},往%{directions}方向
zh-CN.yml:        offramp_left_with_exit_directions: 在左侧沿%{exit}出口驶往%{directions}方向
zh-CN.yml:        offramp_left_with_exit_name_directions: 在左侧沿%{exit}出口至%{name},往%{directions}方向
zh-CN.yml:        offramp_left_with_directions: 上左侧斜坡,往%{directions}方向
zh-CN.yml:        offramp_left_with_name_directions: 上坡左转至%{name},往%{directions}方向
zh-CN.yml:        onramp_left_with_directions: 向左侧斜坡拐去,往%{directions}方向
zh-CN.yml:        onramp_left_with_name_directions: 上坡左转至%{name},往%{directions}方向
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1805#issuecomment-377882056
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180402/7031acb7/attachment.html>


More information about the rails-dev mailing list