Page MenuHomePhabricator

allow configurable categorization by two- or three-letter codes
Closed, DeclinedPublic

Description

OmegaWiki ( http://www.omegawiki.org/ ) mostly uses three-letter language codes. It uses the Babel extension. Apparently the categorization that it uses is rather confusing.

For example, i have "heb-5" and i am categorized as "User he-5" - three letters in the template, but two in the category.

Some other users are currently categorized as "User heb", but if a null edit is made to their user page, it is re-categorized as "User he". This is confusing and wrong.

It is certainly OK to support two-language codes, but the site should be able to control the categorization. Maybe the extension should simply categorize by the code used in the template. And maybe the extension can allow the site master to force three-letter codes, i.e. two-letter codes simply won't work.

Details

Reference
bz23034

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:07 PM
bzimport set Reference to bz23034.
bzimport added a subscriber: Unknown Object (MLST).

Gerard.meijssen wrote:

There is no problem with Babel categories. Most ISO-639-1 languages are still considered languages in the ISO-639-3. In the ISO-639-6 the codes of the ISO-639-1 will be used in preference to the ISO-639-3 codes.
Thanks,

GerardM

For languages included in ISO-639-1 both codes are valid, for example en/eng.

Mixing them in one wiki leads to confusing results, however, and this should be fixed or at least clarified.

Both are accepted ('eng' and 'en' for instance) by the Babel extension, which I fine I guess. (Easier to use, people can use whichever they know or prefer in the wikitext). In categorization only one of them should be used though.

Afaik this is already the case.

I just tried on my User-page at TranslateWiki:

NL ENG DE
{{#babel:nl|eng-4|de-2}}

Categories: User nl | User nl-N | User en | User en-4 | User de | User de-2

NLD EN DEU
{{#babel:nld|en-4|de-2

Categories: User nl | User nl-N | User en | User en-4 | User de | User de-2

Both give the same categories (two-letter codes)

Nikerabbit removed a subscriber: wikibugs-l-list.
Nikerabbit subscribed.

@Amire80 I am inclined to decline this. It seems better to advocate the practice of using shortest suitable code.

@Amire80 I am inclined to decline this. It seems better to advocate the practice of using shortest suitable code.

I declined T64715: {{#Babel:deu|...}}shows language code de instead of deu in Babel boxes along the same lines, and this is effectively the same issue. You know what they say... great minds think alike ;)