Page MenuHomePhabricator

Flow should respect uselang
Open, Needs TriagePublic

Description

There is a bulleted list in the middle of the February 2016 newsletter for VisualEditor. This list includes MediaWiki messages. They automatically display in the language of the user's preferences (if the messages have been translated at Translatewiki.net yet). Compare, for example:

English (original): https://meta.wikimedia.org/wiki/VisualEditor/Newsletter/2016/February
Polish: https://meta.wikimedia.org/wiki/VisualEditor/Newsletter/2016/February?uselang=pl
Japanese: https://meta.wikimedia.org/wiki/VisualEditor/Newsletter/2016/February?uselang=ja

This internationalization feature is not working in Flow. https://pl.wikipedia.org/wiki/Wątek:Sz4s81homyd3i5ss?uselang=en shows the messages in Polish. https://pl.wikipedia.org/wiki/Wątek:Sz4s81homyd3i5ss?uselang=ja shows the messages in Polish. Even https://pl.wikipedia.org/wiki/Wątek:Sz4s81homyd3i5ss?uselang=qqx shows the messages in Polish.

Flow should respect uselang and setlang for message contents.

Event Timeline

Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald Transcript

Ugh... I'm guessing this is because the wikitext uses {{int:}} and we then convert that to HTML using the language of whoever saved it. Another problem with HTML storage.

Correction -- looks like we use the content language for {{int:}}, see https://pl.wikipedia.org/wiki/Dyskusja_wikipedysty:Roan_Kattouw_%28WMF%29 . That seems like the most sensible thing to do given the constraints of HTML storage.

Duplicate of T95204 (though that one is explicitly about error message) or not?