Page MenuHomePhabricator

Document how to show the local names of countries in Graph maps
Open, LowPublic

Description

The graph maps that are loaded using codes (ALB for Albania) show the names in English. This names come from somewhere, but it is not clear where from. it should be documented so other languages can also use this maps.

irudia.png (483×707 px, 77 KB)

Event Timeline

What are clear steps to reproduce or an example link?

Any place using this extension outside of the English Wikipedia should work. There's a live example here: https://eu.wikipedia.org/wiki/Giza_Immunoeskasiaren_Birusa#Epidemiologia. If you hover any country, you get the country name in English, and there's no documentation on how to change this.

Yes, I know it comes from there. But we shouldn't be uploading a map per language, if this labels can be retrieved from Wikidata or if the translation may be done via i18n somehow.

you can probably create a https://www.mediawiki.org/wiki/Help:Tabular_Data table with translations (the way TNT module also works) and source that table for your labels in the graph.

Something like this
https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab?

Le jeu. 20 janv. 2022 à 16:34, TheDJ <no-reply@phabricator.wikimedia.org> a
écrit :

TheDJ a ajouté un commentaire. View Task
https://phabricator.wikimedia.org/T291790

you can probably create a https://www.mediawiki.org/wiki/Help:Tabular_Data
table with translations (the way TNT module also works) and source that
table for your labels in the graph.

*DÉTAIL DE LA TÂCHE*
https://phabricator.wikimedia.org/T291790

*PRÉFÉRENCES DE COURRIEL*
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

*To: *TheDJ
*Cc: *TheDJ, Aklapper, Theklan, Prufkick, Timbaaa, Pietrasagh, Bouzinac,
Esc3300, Srdjan, MuhammadShuaib, LNDDYL, Psychoslave, Base, Gryllida,
Shizhao, fbstj, Yurik, Arrbee, Jay8g

(@Bouzinac: Please strip unneeded full quotes of previous emails when replying via email, to keep things readable. Thanks.)

you can probably create a https://www.mediawiki.org/wiki/Help:Tabular_Data table with translations (the way TNT module also works) and source that table for your labels in the graph.

That is the point of this message: documenting it. Is it possible? Then how? I have been searching for it but can't find, and being multilingual is something important on its own.

I get what you are asking, but who are we asking to write this tutorial ? This is a "making difficult things with difficult tools is difficult"-problem. And if no one wants to learn this, then there is also no one to document it.

To whoever who knows how to do this.

Aklapper added a project: Documentation.