Last modified: 2006-05-09 20:51:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T7887, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 5887 - lang attribute for interlanguage wikis
lang attribute for interlanguage wikis
Status: RESOLVED DUPLICATE of bug 4901
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
PC Linux
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-05-09 19:22 UTC by suruena
Modified: 2006-05-09 20:51 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description suruena 2006-05-09 19:22:26 UTC
Hello, this is an easy one:

The interwikis inside the "in other languages" box (linking to the same article
in other wikipedias) is a list of languages written in their own language.
Therefore, that content isn't in the same language of the HTML page and should
be tagged using the 'lang' attribute. For example:
<li ...><a lang="es" xml:lang="es"
href="http://es.wikipedia.org/wiki/...">Español</a></li> 
<li ...><a lang="eo" xml:lang="eo"
href="http://eo.wikipedia.org/wiki/...">Esperanto</a></li>

This is useful for [[web accessibility]] reasons, and also to let the browser
choose adequate fonts (specially for Asian languages).

However, IMHO it's not a good idea to also add automatically the 'lang'
attribute for embedded interwikis (interwikis inside the article's text, i.e.
[[:es:other article]] instead of [[es:same article]]). The link's title is the
target name and not language name, and it could be in the foreign language or
not (the editor can specify whether the link is in another language using the
{{lang|...|...}} template). Neither is a good idea to automatically add the
'hreflang' attribute, a lot of wikipedias have some help articles in English,
for example.

Thanks for your attention. Best regards,

Santi
Comment 1 Brion Vibber 2006-05-09 20:51:08 UTC

*** This bug has been marked as a duplicate of 4901 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links