Partly disable title conversion if variant == main language code
authorLiangent <liangent@gmail.com>
Wed, 15 Aug 2012 00:35:04 +0000 (08:35 +0800)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 3 May 2013 06:16:19 +0000 (06:16 +0000)
commit9e9ee49c54567b852419f591206b63d8612d3281
tree0941d25e1606333ac80ea4444c030ae4638259e5
parent04a9d80e53f64ae97d75e746377f83f8519e416d
Partly disable title conversion if variant == main language code

Currently the main language code means "no conversion",
but may technically be used as a standalone variant (and
usually falls back to another variant). However for the
page title, since there can be a nice unconverted version
from real page name, it seems better to provide people who
choose "no conversion" with this unconverted version, rather
than a fallback from a variant which is always converted.

If a string targeting exactly the main language code exists
(ie. no fallbacks needed), it's still used. Because the
magic word DISPLAYTITLE cannot be used together with
language conversion syntax and people must use -{T| }- to
show a modified display title for "no conversion" version.

Change-Id: I25cf5a94f6e47f85a9d0b80cc1c9c9f957288478
languages/LanguageConverter.php
tests/parser/parserTests.txt