From: Federico Leva Date: Sun, 15 Jan 2017 23:08:29 +0000 (+0100) Subject: Language fallback from sh (Serbo-Croatian) to bs, sr-el, hr X-Git-Tag: 1.31.0-rc.0~4250 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=15a2c3797320020dc0fb8fa3d6e2964e357733de Language fallback from sh (Serbo-Croatian) to bs, sr-el, hr 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 --- diff --git a/languages/messages/MessagesSh.php b/languages/messages/MessagesSh.php index 3ee463ebec..8130978586 100644 --- a/languages/messages/MessagesSh.php +++ b/languages/messages/MessagesSh.php @@ -13,6 +13,8 @@ * @author לערי ריינהארט */ +$fallback = 'bs, sr-el, hr'; + $namespaceNames = [ NS_SPECIAL => 'Posebno', NS_TALK => 'Razgovor', @@ -30,6 +32,23 @@ $namespaceNames = [ 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' ],