Language fallback from sh (Serbo-Croatian) to bs, sr-el, hr
authorFederico Leva <federicoleva@tiscali.it>
Sun, 15 Jan 2017 23:08:29 +0000 (00:08 +0100)
committerReedy <reedy@wikimedia.org>
Mon, 23 Jan 2017 20:18:06 +0000 (20:18 +0000)
Bosnian, Serbian and Croatian are closely related languages and have
respectively about 2700, 1400 and 1200 translations identical to that
of Serbo-Croatian, which has about 5400 in total. This demonstrates
that we can profitably reuse some translators' work to reduce the
usage of English in Serbo-Croatian despite the low level of translation
and that there is a logical order in the fallback sequence.

The information has been collected and discussed with translators at
https://translatewiki.net/wiki/Thread:Portal_talk:Sh/Language_fallback
and Wikipedia editors have been notified of the discussion with
https://sh.wikipedia.org/w/index.php?diff=40677113&oldid=40676567
and messages in the talk page of each individual editor.

Inherit linktrail and digit separators, but not $defaultDateFormat,
$datePreferences, $datePreferenceMigrationMap or
$namespaceGenderAliases to reduce the impact and variance.

Change-Id: I04310ee32370ae20c00ea970b3163dcb8f167eba

languages/messages/MessagesSh.php

index 3ee463e..8130978 100644 (file)
@@ -13,6 +13,8 @@
  * @author לערי ריינהארט
  */
 
  * @author לערי ריינהארט
  */
 
+$fallback = 'bs, sr-el, hr';
+
 $namespaceNames = [
        NS_SPECIAL          => 'Posebno',
        NS_TALK             => 'Razgovor',
 $namespaceNames = [
        NS_SPECIAL          => 'Posebno',
        NS_TALK             => 'Razgovor',
@@ -30,6 +32,23 @@ $namespaceNames = [
        NS_CATEGORY_TALK    => 'Razgovor_o_kategoriji',
 ];
 
        NS_CATEGORY_TALK    => 'Razgovor_o_kategoriji',
 ];
 
+# Some dummy translations to prevent language fallback for now
+# @TODO: Check whether localising them is appropriate.
+$namespaceGenderAliases = [];
+$defaultDateFormat = 'dmy';
+$datePreferences = [
+       'default',
+       'dmy',
+       'ymd',
+       'ISO 8601',
+];
+$datePreferenceMigrationMap = [
+       'default',
+       'mdy',
+       'dmy',
+       'ymd'
+];
+
 $specialPageAliases = [
        'Activeusers'               => [ 'Aktivni_korisnici' ],
        'Allmessages'               => [ 'Sve_poruke' ],
 $specialPageAliases = [
        'Activeusers'               => [ 'Aktivni_korisnici' ],
        'Allmessages'               => [ 'Sve_poruke' ],