wiki.techinc.nl/languages
Timo Tijhof dd587fb99c language: Use item 'fallbackSequence' instead of duplicating logic
The 'fallbackSequence' is exactly generated for this purpose. It
is equal to the value of 'fallback' after splitting, trimming
and ensuring 'en' is present. See LocalisationCache::recache().

Also simplify returning of the first array index by returning it
directly instead of modifying the array first.

Due to an inconsistency between how LocalisationCache and Language classes
treat the fallback sequence differently, we have to manually fallback
to 'en' in case of unknown language codes. This is because otherwise
Language::factory() will throw an exception causing tests to fail.
We should investigate whether this is desirable or not, but keeping
existing behaviour for now and documenting it.

Change-Id: I9c1d51b59aabebf5a31f38205304bb8cc22dcd8c
2015-06-04 17:45:12 +00:00
..
classes Fix to digits grouping rule 2015-05-31 09:30:29 +00:00
data Update plural data to CLDR 26 2014-10-27 08:30:34 +00:00
i18n Localisation updates from https://translatewiki.net. 2015-06-03 21:47:14 +02:00
messages Merge "Update namespace aliases for Luri (lrc) from translatewiki" 2015-05-23 20:56:32 +00:00
utils Add missing @param to function docs 2014-08-14 19:38:57 +00:00
.htaccess
ConverterRule.php Implemented hasRules() 2014-12-28 19:37:29 -05:00
FakeConverter.php Put class FakeConverter in its own file 2014-04-22 11:08:06 +02:00
Language.php language: Use item 'fallbackSequence' instead of duplicating logic 2015-06-04 17:45:12 +00:00
LanguageConverter.php Use a fixed marker prefix string in the Parser and MWTidy 2015-05-31 19:33:36 -07:00
Names.php Merge "Revert "Remove invalid language code "bh" (alias of "bho")"" 2015-05-19 06:03:35 +00:00