r32162 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32161‎ | r32162 | r32163 >
Date:10:21, 19 March 2008
Author:huji
Status:old
Tags:
Comment:
(bug 13429) Separate date and time in message sp-newimages-showfrom
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SpecialNewimages.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesFa.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/messages/MessagesFa.php
@@ -2182,7 +2182,7 @@
21832183 'noimages' => 'چیزی برای دیدن نیست.',
21842184 'ilsubmit' => 'جستجو',
21852185 'bydate' => 'از روی تاریخ',
2186 -'sp-newimages-showfrom' => 'نشان‌دادن تصویرهای جدید از $1 به بعد',
 2186+'sp-newimages-showfrom' => 'نشان‌دادن تصویرهای جدید از $2، $1 به بعد',
21872187
21882188 # Bad image list
21892189 'bad_image_list' => 'اطلاعات را باید به این شکل وارد کنید:
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -2523,7 +2523,7 @@
25242524 'noimages' => 'Nothing to see.',
25252525 'ilsubmit' => 'Search',
25262526 'bydate' => 'by date',
2527 -'sp-newimages-showfrom' => 'Show new files starting from $1',
 2527+'sp-newimages-showfrom' => 'Show new files starting from $2, $1',
25282528
25292529 # Video information, used by Language::formatTimePeriod() to format lengths in the above messages
25302530 'video-dims' => '$1, $2×$3', # only translate this message to other languages if you have to change it
Index: trunk/phase3/includes/SpecialNewimages.php
@@ -175,8 +175,9 @@
176176 $botpar='';
177177 }
178178 $now = wfTimestampNow();
179 - $date = $wgLang->timeanddate( $now, true );
180 - $dateLink = $sk->makeKnownLinkObj( $titleObj, wfMsgHtml( 'sp-newimages-showfrom', $date ), 'from='.$now.$botpar.$searchpar );
 179+ $d = $wgLang->date( $now, true );
 180+ $t = $wgLang->time( $now, true );
 181+ $dateLink = $sk->makeKnownLinkObj( $titleObj, wfMsgHtml( 'sp-newimages-showfrom', $d, $t ), 'from='.$now.$botpar.$searchpar );
181182
182183 $botLink = $sk->makeKnownLinkObj($titleObj, wfMsgHtml( 'showhidebots', ($hidebots ? wfMsgHtml('show') : wfMsgHtml('hide'))),'hidebots='.($hidebots ? '0' : '1').$searchpar);
183184
Index: trunk/phase3/RELEASE-NOTES
@@ -105,6 +105,7 @@
106106 * (bug 12801) Fix link in subtitle message in AJAX search
107107 * (bug 13428) Fix regression in protection form layout HTML validity
108108 * (bug 9403) Sanitize newlines from search term input
 109+* (bug 13429) Separate date and time in message sp-newimages-showfrom
109110
110111
111112 === API changes in 1.13 ===

Status & tagging log