Page MenuHomePhabricator

Localized language name as title attribute of language code-proficiency part
Closed, DeclinedPublic

Description

Author: brendan

Description:
English Wiktionary's babel templates feature as a title attribute of the language code-proficiency section the name of the language in English. This is the best way I've seen of exposing to the viewer who hasn't memorized ISO 639 what is being referenced.


Version: unspecified
Severity: enhancement

Details

Reference
bz31912

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:52 PM
bzimport set Reference to bz31912.
bzimport added a subscriber: Unknown Object (MLST).

I do not see any difference between the English Wiktionary system and the usual system. Could you give an example or explain please?

brendan wrote:

Usual system is do nothing or like English Wikipedia, have a wikilink to the Wikipedia language article, e.g. [[w:Template:User_bn-2]] features a link to [[w:Bengali language]] on the bn-2 section.

English Wiktionary has the title attribute which produces a tooltip with the language name localized for the viewer, e. g. [[wikt:Template:User_bn-2]] with the tooltip 'Bengali' over bn-2.

On reflection this bug can be broadened to expose in some way the name of the language localized for the viewer so they can identify it easily. The English Wiktionary one seemed to me the best, but certainly the merits of possibly approaches are worth considering.

Page content cannot depend on user language, not without help from JavaScript at least.

(In reply to comment #3)

Page content cannot depend on user language, not without help from JavaScript
at least.

There is a little bit of room for post-processing. Like how it's done with the edit section link now.

Is there any documentation on that? Is there general consensus that more post processing is fine?

(In reply to comment #5)

Is there general consensus that more post processing is fine?

In that case it would be nice to have the top and footer in the user language :)

Anyway, what I suppose is certainly possible is having it in the content language of the wiki, regardless of user language (as it is on en.wiktionary).

Just thinking out loud... It could be nice to have a title tooltip on the whole box which could be the text in the content language (like, "This user has advanced knowledge of French", when the box says "Cet utilisateur dispose de connaissances avancées en français."), but then we would be stuck with the links that don't display nicely in a title attribute.

Update assignee and CCs

WONTFIX per comment 3. Feel free to set to LATER if you think that's more accurate.