Page MenuHomePhabricator

CLDR in MediaWiki
Open, MediumPublic

Description

I wish to request a new method that we implement CLDR on MediaWiki, as it currently leaves a lot to be desired regarding adding and modifying content.

I started investigating this as I am working on translating strings to the language Toki Pona (tok). In preparation for the possible Toki Pona Wikipedia and for adding support for existing Toki Pona wikis, me and other contributors have been translating strings and have come across the fact that there are several missing and simply incorrect pieces of information relating to the language locale. For example, 'Bulgarian' (bg) is translated as 'ma Pokasi' meaning 'Bulgaria' (the country); and the date formats have not been properly marked: 3 January 2025 is '3 tenpo mun #1 2024', however speakers would rather say 'sike #2025 la mun #1 la suno #3' or similar. In order to edit Toki Pona items, I contacted CLDR to create a Survey Tool account. However, the project only accepts updates for a short period of time, requires a lot of votes to pass and takes months to be released.

Below are a few other related tasks and discussions, where people had to endure with incorrect or missing information for a long time (some tasks are still even open), brought to my attention from the kind people at the Wikimedia community Discord server. This is not a problem just for the small languages but for all languages.

Previous discussions

This is an issue because as far as I am aware, contributors choose to stick to CLDR and not interfere with it locally, as one pointed out to edit CLDR directly rather than MediaWiki. With the difficulty of editing, however, this is not possible for most contributors. With the recent membership of the Wikimedia Foundation to Unicode, I suggest that it help contributors to add local strings upstream to the CLDR.

Stjn proposed a basic workflow which I will reiterate here as a proposal:

  • Post information regarding the desired changes to Village Pump of relevant language Wikipedia (possibly other projects as well)
  • Update local CLDR extension files if approved by contributors
  • A WMF member raises the issue upstream and votes for it being fixed

This would be better as a method to more quickly update errors on our projects and more quickly update CLDR.
I hope to hear feedback on this idea.

Event Timeline

requires a lot of votes to pass

The CLDR concept of "votes" is misleadingly named. The Wikimedia Foundation is a Unicode organization member so accounts set up by @Nemo_bis following the process at https://translatewiki.net/wiki/CLDR are by themselves capable of providing 4 votes, which is enough to change something for the kinds of low-use languages typically involved in this process like Toki Pona by themselves.

(the rest of your criticism of CLDR is definitely valid, just felt that one issue deserved correction)

This looks very much like a duplicate of T364334

If you want to upstream data to CLDR, there are points to considered:

@Bugreporter, I don't believe that it would be helpful to upstream these automatically. I can definitely see the danger there. this would ideally firstly need to gather approval from multiple speakers before being pushed.

@Pppery, thank you for the correction and for pointing out the other tasks. I have subscribed to these and will keep a look for updates.

this would ideally firstly need to gather approval from multiple speakers before being pushed.

Yeah, but once you can translate local language names in translatewiki, the number of localizations that may be upstreamed may be too many to be checked one-by-one. In additional in several languages there are few but still some translators - which means "gather approval from multiple speakers" may be impossible.

there would still need to be some confirmation from other speakers, may them be locally in Wikimedia or in CLDR:

  • any user may add a new translation for MediaWiki
  • other users may review it locally and that translation may be passed upstream to CLDR
  • Wikimedia may add a translation to CLDR as unconfirmed
  • with confirmation from other translators on CLDR, it may be voted upon and confirmed (with the help of votes from Wikimedia)