[openstreetmap/openstreetmap-website] Language of headers vs. names (#3094)
積丹尼 Dan Jacobson
notifications at github.com
Mon Feb 15 01:27:12 UTC 2021
Here we see an opposite logic is happening.
E.g., in
```
Case 3:
<title>路徑:Former Tianlun-Wufeng Line
Case 5:
<title>Way: 舊天輪-霧峰線
```
I.e., for an object with tags
```
name 舊天輪-霧峰線
name:en Former Tianlun-Wufeng Line
name:zh-Hant 舊天輪-霧峰線
```
So it is quite a gamble of what people we share it to will see in their
browser, depending on what their browser sends for the Accept-Language
header.
```
Case 1:
Accept-Language:
<title>Way: 舊天輪-霧峰線
Case 2:
Accept-Language: accept-language: en-US,en;q=0.9
<title>Way: Former Tianlun-Wufeng Line
Case 3:
Accept-Language: zh-TW,zh;q=0.9,en-US;q=0.8,en;q=0.7
<title>路徑:Former Tianlun-Wufeng Line
Case 4:
Accept-Language: zh-TW,zh;q=0.9
<title>路徑:舊天輪-霧峰線
Case 5:
Accept-Language: zh-Hant,zh;q=0.9
<title>Way: 舊天輪-霧峰線
```
All this if further complicated by the quasi zh-TW - zh-Hant
relationship...
[Makefile.txt](https://github.com/openstreetmap/openstreetmap-website/files/5979025/Makefile.txt)
--
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/issues/3094
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210214/04da9a3c/attachment-0001.htm>
More information about the rails-dev
mailing list