(bug 1495) Include the site language in the fallback list
authorMormegil <mormegil@centrum.cz>
Mon, 25 Mar 2013 22:50:47 +0000 (23:50 +0100)
committerMormegil <mormegil@centrum.cz>
Mon, 25 Mar 2013 22:50:47 +0000 (23:50 +0100)
commit1b8cb8dc3119bfb12d86d2f044018dc12553939b
tree68bd04d6e3bfe7886fb9d2358ce63d6dcd5172b5
parenta1ecc266d8659e2d5874cadb16f5fa3d1c692c9b
(bug 1495) Include the site language in the fallback list

In Iaaf6ccebd8c40c9602748c58c3a5c73c29e7aa4d, the behavior of MessageCache
was changed so that it iterates over all possible on-wiki fallbacks including
the site language fallbacks. However, it omitted the site language itself.
Obviously, the problem appears only when the site language is not English,
because English is included always as the fallback language of last resort.
But in other cases, we need to add it explicitly.

Bug: 1495
Change-Id: Ib607a446d3499a3c042dce408db5cbaf12fa9e3d
languages/Language.php
tests/phpunit/includes/cache/MessageCacheTest.php