Fix localization of time in Turkish
authorHakanIST <ozdemir@gmail.com>
Wed, 9 Aug 2017 21:37:16 +0000 (17:37 -0400)
committerLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Sat, 28 Oct 2017 20:29:16 +0000 (22:29 +0200)
Per the rules of the Turkish Language Institution [1], hours and minutes
in time expressions should be separated by periods.

[1]: http://tdk.gov.tr/index.php?option=com_content&view=article&id=187:Noktalama-Isaretleri-Aciklamalar&catid=50:yazm-kurallar&Itemid=132

Bug: T161961
Change-Id: I344cc500a780ff81f69e217c970a4a6aff288720

languages/messages/MessagesTr.php

index 564da6c..565049d 100644 (file)
@@ -352,5 +352,14 @@ $magicWords = [
        'pagesincategory_files'     => [ '0', 'dosyalar', 'files' ],
 ];
 
+$dateFormats = [
+       'mdy time' => 'H.i',
+       'mdy both' => 'H.i, F j, Y',
+       'dmy time' => 'H.i',
+       'dmy both' => 'H.i, j F Y',
+       'ymd time' => 'H.i',
+       'ymd both' => 'H.i, Y F j',
+];
+
 $separatorTransformTable = [ ',' => '.', '.' => ',' ];
 $linkTrail = '/^([a-zÇĞçğİıÖöŞşÜüÂâÎîÛû]+)(.*)$/sDu';