[openstreetmap/openstreetmap-website] Avoid using `to_sentence` to create map key entries (Issue #3816)

Anton Khorev notifications at github.com
Thu Dec 14 15:46:51 UTC 2023


Some map keys are now assembled from parts. The result looks like this:
![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/42ac5112-4122-42eb-9010-576093f53e32)

Are there any reasons to do this? Maybe we want to link individual parts to wiki pages like this:
![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/22ca1925-7c5b-4879-828d-3161816319cf)

But even if we do, we don't have to assemble sentences. We can do something like this:
![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/38c4139f-6fc6-4b03-827d-d69b5d3de67f)

What would you like locale entries like this one to be converted to?
```
summit:
  - Summit
  - peak
```

- option A:
  ```
  summit: "Summit"
  peak: "Peak"
  ```

- option B:
  ```
  summit: "Summit and peak"
  ```

This issue [suggests B](https://github.com/openstreetmap/openstreetmap-website/pull/3731#issuecomment-1269667154). I think A is better because they are shared between different map layers where they may get [combined in a different manner](https://github.com/openstreetmap/openstreetmap-website/pull/4371#issuecomment-1827223460).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3816#issuecomment-1856090472
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/3816/1856090472 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231214/d6ccbdb3/attachment-0001.htm>


More information about the rails-dev mailing list