01tonythomas has uploaded a new change for review.
https://gerrit.wikimedia.org/r/107360
Change subject: Splitted date and time in message 'rclistfrom'
......................................................................
Splitted date and time in message 'rclistfrom'
Any language need a split of date and time to make better translation.
added a new parameter $2 for the rclistform
Bug: 19104
Change-Id: Id9127cf022be2394b2a4843572088e0ba8a888a8
---
M includes/specials/SpecialRecentchanges.php
M languages/messages/MessagesEn.php
M languages/messages/MessagesQqq.php
3 files changed, 12 insertions(+), 7 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/60/107360/1
diff --git a/includes/specials/SpecialRecentchanges.php
b/includes/specials/SpecialRecentchanges.php
index a4e0b85..05209f7 100644
--- a/includes/specials/SpecialRecentchanges.php
+++ b/includes/specials/SpecialRecentchanges.php
@@ -962,14 +962,18 @@
// show from this onward link
$timestamp = wfTimestampNow();
- $now = $lang->userTimeAndDate( $timestamp, $user );
- $tl = $this->makeOptionsLink(
- $now, array( 'from' => $timestamp ), $nondefaults
+ $timenow = $lang->userTime( $timestamp, $user );
+ $datenow = $lang->userDate( $timestamp, $user );
+ $tltime = $this->makeOptionsLink(
+ $timenow, array( 'from' => $timestamp ), $nondefaults
+ );
+ $tldate = $this->makeOptionsLink(
+ $datenow, array( 'from' => $timestamp ), $nondefaults
);
$rclinks = $this->msg( 'rclinks' )->rawParams( $cl, $dl,
$lang->pipeList( $links ) )
->parse();
- $rclistfrom = $this->msg( 'rclistfrom' )->rawParams( $tl
)->parse();
+ $rclistfrom = $this->msg( 'rclistfrom' )->rawParams( $tltime ,
$tldate )->parse();
return "{$note}$rclinks<br />$rclistfrom";
}
diff --git a/languages/messages/MessagesEn.php
b/languages/messages/MessagesEn.php
index 41a38e4..d6ea3be 100644
--- a/languages/messages/MessagesEn.php
+++ b/languages/messages/MessagesEn.php
@@ -2196,7 +2196,7 @@
'recentchanges-legend-newpage' => '(also see [[Special:NewPages|list of
new pages]])',
'recentchanges-legend-plusminus' => "(''±123'')",
'rcnotefrom' => "Below are the changes since '''$2'''
(up to '''$1''' shown).",
-'rclistfrom' => 'Show new changes starting from $1',
+'rclistfrom' => 'Show new changes starting from $1, $2',
'rcshowhideminor' => '$1 minor edits',
'rcshowhidebots' => '$1 bots',
'rcshowhideliu' => '$1 registered users',
diff --git a/languages/messages/MessagesQqq.php
b/languages/messages/MessagesQqq.php
index 1f47bf0..7907c3e 100644
--- a/languages/messages/MessagesQqq.php
+++ b/languages/messages/MessagesQqq.php
@@ -3613,7 +3613,7 @@
'recentchanges-legend-plusminus' => 'A plus/minus sign with a number for the
legend.',
'rcnotefrom' => 'This message is displayed at [[Special:RecentChanges]] when
viewing recentchanges from some specific time.
-The corresponding message is {{msg-mw|Rclistfrom}} (without split of date and
time, [[bugzilla:19104|Bug 19104]]).
+The corresponding message is {{msg-mw|Rclistfrom}} (split into date and
time,[[bugzilla:19104|Bug 19104]]).
Parameters:
* $1 - the maximum number of changes that are displayed
@@ -3623,7 +3623,8 @@
'rclistfrom' => 'Used on [[Special:RecentChanges]].
Parameters:
-* $1 - a link to the revision of a specific date and time. The date and the
time are the link description (without split of date and time,
[[bugzilla:19104|Bug 19104]]).
+* $1 - a link to the revision of a specific time. The time is the link
description (witht split of date and time, [[bugzilla:19104|Bug 19104]]).
+* $2 - a link to the revision of a specific date. The date is the link
description (witht split of date and time, [[bugzilla:19104|Bug 19104]]).
The corresponding message is {{msg-mw|Rcnotefrom}}.',
'rcshowhideminor' => 'Option text in [[Special:RecentChanges]]. Parameters:
--
To view, visit https://gerrit.wikimedia.org/r/107360
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id9127cf022be2394b2a4843572088e0ba8a888a8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: 01tonythomas <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits