From fe1f33940fc6b857b5251af5fb9c9efb7df5f7f2 Mon Sep 17 00:00:00 2001 From: Danny B Date: Sat, 12 Jul 2008 19:51:32 +0000 Subject: [PATCH] * new date/time formats according to Czech state norms and The rules of Czech orthography * adding couple descriptions * abc ordering of authors * minor formatting tweaks --- RELEASE-NOTES | 1 + languages/messages/MessagesCs.php | 80 ++++++++++++++++++++++--------- 2 files changed, 58 insertions(+), 23 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 8ad7e7083e..21a863c054 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -185,6 +185,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Add a new hook NormalizeMessageKey to allow extensions to replace messages before the database is potentially queried * (bug 9736) Redirects on Special:Fewestrevisions are now marked as such. +* New date/time formats in Cs localization according to ČSN and PČP. === Bug fixes in 1.13 === diff --git a/languages/messages/MessagesCs.php b/languages/messages/MessagesCs.php index 96c23ccdcb..2b0aff6032 100644 --- a/languages/messages/MessagesCs.php +++ b/languages/messages/MessagesCs.php @@ -4,17 +4,16 @@ * @ingroup Language * @file * - * @author Li-sung * @author Danny B. + * @author Helix84 + * @author Li-sung + * @author Martin Kozák * @author Matěj Grabovský - * @author לערי ריינהארט + * @author Michawiki * @author Mormegil - * @author Siebrand * @author Reaperman - * @author Helix84 - * @author Michawiki - * @author Martin Kozák - * @author Sp5uhe + * @author Siebrand + * @author לערי ריינהארט */ $fallback8bitEncoding = 'cp1250'; @@ -53,34 +52,70 @@ $skinNames = array( 'modern' => 'Moderní', ); +/** + * Date formats list for Special:Preferences + * see $dateFormats for definitions + */ $datePreferences = array( - 'dmy', - 'alt dmy', - 'ISO 8601', + 'ČSN basic dt', + 'ČSN padded dt', + 'ČSN basic td', + 'ČSN padded td', + 'PČP dt', + 'PČP td', + 'ISO dt', ); -$defaultDateFormat = 'dmy'; +/** + * Default date format to be used + */ +$defaultDateFormat = 'ČSN basic dt'; +/** + * Date formats definitions + * + * ČSN - Česká státní norma 01 6910 / Czech state norm 01 6910; numeral representation, basic = 1-12(31), padded = 01-12(31) + * PČP - Pravidla českého pravopisu / The rules of Czech ortography (ISBN 80-200-0475-0); verbal representation + * ISO - ISO 8601:2004 - Data elements and interchange formats -- Information interchange -- Representation of dates and times + * dt - date, time order + * td - time, date order + */ $dateFormats = array( - 'dmy time' => 'H:i', - 'dmy date' => 'j. n. Y', - 'dmy both' => 'H:i, j. n. Y', + 'ČSN basic dt time' => 'H:i', + 'ČSN basic dt date' => 'j. n. Y', + 'ČSN basic dt both' => 'j. n. Y, H:i', + + 'ČSN padded dt time' => 'H:i', + 'ČSN padded dt date' => 'd.m.Y', + 'ČSN padded dt both' => 'd.m.Y, H:i', - 'alt dmy time' => 'H.i', - 'alt dmy date' => 'j. xg Y', - 'alt dmy both' => 'H.i, j. xg Y', + 'ČSN basic td time' => 'H:i', + 'ČSN basic td date' => 'j. n. Y', + 'ČSN basic td both' => 'H:i, j. n. Y', - 'ISO 8601 time' => 'xnH:xni:xns', - 'ISO 8601 date' => 'xnY-xnm-xnd', - 'ISO 8601 both' => 'xnY-xnm-xnd"T"xnH:xni:xns', + 'ČSN padded td time' => 'H:i', + 'ČSN padded td date' => 'd.m.Y', + 'ČSN padded td both' => 'H:i, d.m.Y', + + 'PČP dt time' => 'H.i', + 'PČP dt date' => 'j. xg Y', + 'PČP dt both' => 'j. xg Y, H.i', + + 'PČP td time' => 'H.i', + 'PČP td date' => 'j. xg Y', + 'PČP td both' => 'H.i, j. xg Y', + + 'ISO dt time' => 'xnH:xni:xns', + 'ISO dt date' => 'xnY-xnm-xnd', + 'ISO dt both' => 'xnY-xnm-xnd"T"xnH:xni:xns', ); /** - * Hledání knihy podle ISBN * Default list of book sources + * Hledání knihy podle ISBN */ $bookstoreList = array( - 'Národní knihovna' => 'http://sigma.nkp.cz/F/?func=find-a&find_code=ISN&request=$1', + 'Národní knihovna' => 'http://sigma.nkp.cz/F/?func=find-a&find_code=ISN&request=$1', 'Státní technická knihovna' => 'http://www.stk.cz/cgi-bin/dflex/CZE/STK/BROWSE?A=01&V=$1', 'inherit' => true, ); @@ -209,7 +244,6 @@ $magicWords = array( # Písmena, která se mají objevit jako část odkazu ve formě '[[jazyk]]y' atd: $linkTrail = '/^([a-záčďéěíňóřšťúůýž]+)(.*)$/sDu'; - $separatorTransformTable = array(',' => "\xc2\xa0", '.' => ',' ); $specialPageAliases = array( -- 2.20.1