Page MenuHomePhabricator

Map cannot be displayed when Simplified Chinese characters are present
Closed, ResolvedPublic

Related Objects

Event Timeline

Try these parameters for mapframe.

<mapframe zoom="15" frameless="1" align="center" height="200" latitude="33.7241" longitude="135.9944" width="270">
[
    {
        "type": "Feature",
        "geometry": {
            "coordinates": [
                135.9944,
                33.7241
            ],
            "type": "Point"
        },
        "properties": {
            "title": "TITLE_TEXT",
            "marker-color": "#5E74F3"
        }
    }
]
</mapframe>

Case 1. TITLE_TEXT = 日本 (The text is the same in all variant)
OK: https://zh.wikipedia.org/zh-cn/User:A2093064-test/mapframe1
OK: https://zh.wikipedia.org/zh-tw/User:A2093064-test/mapframe1

Case 2. TITLE_TEXT = ( in zh-tw variant equals in zh-cn variant)
Broken: https://zh.wikipedia.org/zh-cn/User:A2093064-test/mapframe2
OK: https://zh.wikipedia.org/zh-tw/User:A2093064-test/mapframe2

Case 3. TITLE_TEXT = ( in zh-tw variant equals in zh-cn variant)
OK: https://zh.wikipedia.org/zh-cn/User:A2093064-test/mapframe3
Broken: https://zh.wikipedia.org/zh-tw/User:A2093064-test/mapframe3

Case 4. Put 2 <mapframe> in one page. And one TITLE_TEXT = 載載, anthoer TITLE_TEXT = 载载 ( in zh-tw variant equals in zh-cn variant)
OK: https://zh.wikipedia.org/zh-cn/User:A2093064-test/mapframe4
OK: https://zh.wikipedia.org/zh-tw/User:A2093064-test/mapframe4

Variant isn't fully supported for api calls (where the img generation depends upon). Support for variants will have to be added for Kartographer, Kartotherian and MediaWiki-API.

Yeah, it is broken now. Probably just cache before. Thanks for confirming.

This problem is already affected to view location about something (such as a station, a city, etc), please fix it ASAP!

toorich triaged this task as Unbreak Now! priority.Jun 19 2020, 3:51 AM
VulpesVulpes825 lowered the priority of this task from Unbreak Now! to Needs Triage.Jun 19 2020, 4:00 AM
VulpesVulpes825 subscribed.

@toorich, are you planning to fix this issue by yourself? If not, I am resetting the priority following the Phabricator convention and etiquette.

@toorich, are you planning to fix this issue by yourself? If not, I am resetting the priority following the Phabricator convention and etiquette.

I'm sorry but I can't fix it, and you can reset it.

I think we can generate GroupId by {{PAGENAME}} instead of title which converted by MediaWiki.

toorich renamed this task from Map cannot be displayed in simplified Chinese: "GroupId not available" to Map cannot be displayed after simplified-traditional conversion: "GroupId not available".May 15 2022, 7:46 PM
awight renamed this task from Map cannot be displayed after simplified-traditional conversion: "GroupId not available" to Map cannot be displayed when Simplified Chinese characters are present.May 25 2022, 7:37 AM
awight subscribed.