r39581 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39580‎ | r39581 | r39582 >
Date:12:28, 18 August 2008
Author:grondin
Status:old
Tags:
Comment:
Adding news internationalization messages.
Correcting english messages.
Modified paths:
  • /trunk/extensions/LiquidThreads/Lqt.i18n.php (modified) (history)
  • /trunk/extensions/LiquidThreads/LqtPages.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/Lqt.i18n.php
@@ -114,13 +114,15 @@
115115 'lqt-newer' => 'newer',
116116 'lqt-searching' => 'Searching for threads',
117117 'lqt-read-email' => 'Read',
118 - 'lqt-email-remove' => 'Remove this thread from New Messages.',
119 - 'lqt-marked-read' => 'Thread <b>$1</b> marked as read.',
120 - 'lqt-count-marked-read' => '$1 {{PLURAL:$1|messages|messages}} marked as read.',
 118+ 'lqt-email-remove' => 'Remove this thread from new messages.',
 119+ 'lqt-marked-read' => 'Thread \'\'\'$1\'\'\' marked as read.',
 120+ 'lqt-count-marked-read' => '$1 {{PLURAL:$1|message|messages}} marked as read.',
121121 'lqt-email-undo' => 'Undo',
122122 'lqt-messages-sent' => 'Messages sent to you:',
123 - 'lqt-other-messages' => 'Messages on other talkpages:',
 123+ 'lqt-other-messages' => 'Messages on other talk pages:',
124124 'lqt-new-messages' => 'There are new messages for you.',
 125+ 'lqt-email-info-undo' => 'Bring back the thread you just dismissed.',
 126+ 'lqt-date-info' => 'This link is disabled because you are viewing threads from all dates.',
125127 );
126128
127129 /** Message documentation (Message documentation)
@@ -755,6 +757,8 @@
756758 'lqt-older' => 'plus ancien',
757759 'lqt-newer' => 'plus récent',
758760 'lqt-searching' => 'Recherche des fils',
 761+ 'lqt-email-info-undo' => 'Rétablir le fil que vous venez juste de révoquer.',
 762+ 'lqt-date-info' => 'Ce lien est désactivé parce que vous êtes en train de voir les fils à partir de toutes les dates. ',
759763 );
760764
761765 /** Western Frisian (Frysk)
Index: trunk/extensions/LiquidThreads/LqtPages.php
@@ -171,31 +171,31 @@
172172 $i++;
173173 }
174174 $toclines[] = $sk->tocUnindent(1);
175 -
 175+
176176 $this->openDiv('lqt_toc_wrapper');
177177 $this->output->addHTML('<h2 class="lqt_toc_title">'.wfMsg('lqt_contents_title').'</h2> <ul>');
178 -
 178+
179179 foreach($threads as $t) {
180180 $this->output->addHTML('<li><a href="#'.$this->anchorName($t).'">'.$t->subjectWithoutIncrement().'</a></li>');
181181 }
182 -
 182+
183183 $this->output->addHTML('</ul></div>');
184184 }
185185
186186 function showArchiveWidget($threads) {
187187 $threadlinks = $this->permalinksForThreads($threads);
188188 $url = $this->talkpageUrl($this->title, 'talkpage_archive');
189 -
 189+
190190 if ( count($threadlinks) > 0 ) {
191191 $this->openDiv('lqt_archive_teaser');
192192 $this->output->addHTML('<h2 class="lqt_recently_archived">'.wfMsg('lqt_recently_archived').'</h2>');
193193 // $this->output->addHTML("<span class=\"lqt_browse_archive\">[<a href=\"$url\">".wfMsg('lqt_browse_archive_with_recent')."</a>]</span></h2>");
194194 $this->outputList('ul', '', '', $threadlinks);
195195 $this->closeDiv();
196 - } else {
 196+ } else {
197197 }
198198 }
199 -
 199+
200200 function show() {
201201 global $wgHooks, $wgUser;
202202 $wgHooks['SkinTemplateTabs'][] = array($this, 'customizeTabs');
@@ -203,7 +203,7 @@
204204 $this->output->setPageTitle( $this->title->getTalkpage()->getPrefixedText() );
205205 self::addJSandCSS();
206206 $article = new Article( $this->title );
207 -
 207+
208208 if( $this->methodApplies('talkpage_sort_order') ) {
209209 global $wgRequest;
210210 $remember_sort_checked = $wgRequest->getVal('lqt_remember_sort') ? 'checked ' : '';
@@ -233,8 +233,8 @@
234234 $lqt_sort_newest_threads = wfMsg('lqt_sort_newest_threads');
235235 $lqt_sort_oldest_threads = wfMsg('lqt_sort_oldest_threads');
236236 $go=wfMsg('go');
237 - if($wgUser->isLoggedIn()) {
238 - $remember_sort =
 237+ if($wgUser->isLoggedIn()) {
 238+ $remember_sort =
239239 <<<HTML
240240 <br />
241241 <label for="lqt_remember_sort_checkbox">
@@ -245,7 +245,7 @@
246246 $remember_sort = '';
247247 }
248248 $this->openDiv('lqt_view_options');
249 - $this->output->addHTML(
 249+ $this->output->addHTML(
250250
251251 <<<HTML
252252 <form name="lqt_sort" action="$form_action_url" method="post">$lqt_sorting_order
@@ -268,7 +268,7 @@
269269 $threads = $this->queries->query('fresh');
270270
271271 $this->openDiv('lqt_toc_archive_wrapper');
272 -
 272+
273273 $this->openDiv('lqt_archive_teaser_empty');
274274 $this->output->addHTML("<div class=\"lqt_browse_archive\"><a href=\"{$this->talkpageUrl($this->title, 'talkpage_archive')}\">".wfMsg('lqt_browse_archive_without_recent')."</a></div>");
275275 $this->closeDiv();
@@ -280,7 +280,7 @@
281281 $this->closeDiv();
282282 // Clear any floats
283283 $this->output->addHTML('<br clear="all" />');
284 -
 284+
285285 foreach($threads as $t) {
286286 $this->showThread($t);
287287 }
@@ -418,7 +418,7 @@
419419 $only_date= wfMsg ( 'lqt-only-date' );
420420 $date_from= wfMsg ( 'lqt-date-from' );
421421 $date_to = wfMsg ( 'lqt-date-to' );
422 -
 422+ $date_info = wfMsg ( 'lqt-date-info' );
423423 if( isset($this->datespan) ) {
424424 $oatte = $this->starti + 1;
425425 $oatts = $this->starti + 1 + $this->datespan;
@@ -441,9 +441,9 @@
442442 'lqt_archive_end' => $months[$ne]))
443443 . '">'.wfMsg ( 'lqt-newer' ).'»</a>';
444444 }
445 - else {
446 - $older = '<span class="lqt_newer_older_disabled" title="This link is disabled because you are viewing threads from all dates.">«'.wfMsg ( 'lqt-older' ).'</span>';
447 - $newer = '<span class="lqt_newer_older_disabled" title="This link is disabled because you are viewing threads from all dates.">'.wfMsg ( 'lqt-newer' ).'»</span>';
 445+ else {
 446+ $older = '<span class="lqt_newer_older_disabled" title="'.wfMsg ( 'lqt-date-info' ).'">«'.wfMsg ( 'lqt-older' ).'</span>';
 447+ $newer = '<span class="lqt_newer_older_disabled" title="'.wfMsg ( 'lqt-date-info' ).'">'.wfMsg ( 'lqt-newer' ).'»</span>';
448448 }
449449
450450 $this->output->addHTML(<<<HTML
@@ -642,18 +642,18 @@
643643 function show() {
644644 global $wgHooks, $wgOut, $wgTitle, $wgRequest;
645645 $wgHooks['SkinTemplateTabs'][] = array($this, 'customizeTabs');
646 -
 646+
647647 if( $wgRequest->getVal('action') === 'edit' ) {
648648 $warn_bold = '<strong>' . wfMsg('lqt_header_warning_bold') . '</strong>';
649649 $warn_link = '<a href="'.$this->talkpageUrl($wgTitle, 'talkpage_new_thread').'">'.
650650 wfMsg('lqt_header_warning_new_discussion').'</a>';
651651 $wgOut->addHTML('<p class="lqt_header_warning">' .
652652 wfMsg('lqt_header_warning_before_big', $warn_bold, $warn_link) .
653 - '<big>' . wfMsg('lqt_header_warning_big', $warn_bold, $warn_link) . '</big>' .
 653+ '<big>' . wfMsg('lqt_header_warning_big', $warn_bold, $warn_link) . '</big>' .
654654 wfMsg('lqt_header_warning_after_big', $warn_bold, $warn_link) .
655655 '</p>');
656656 }
657 -
 657+
658658 return true;
659659 }
660660 }
@@ -1217,12 +1217,13 @@
12181218 }
12191219 $operand = implode(',', $ids);
12201220 $lqt_email_undo = wfMsg ( 'lqt-email-undo' );
 1221+ $lqt_info_undo = wfMsg ( 'lqt-email-info-undo' );
12211222 $this->output->addHTML(<<<HTML
12221223 <form method="POST" class="lqt_undo_mark_as_read">
12231224 $msg
12241225 <input type="hidden" name="lqt_method" value="mark_as_unread" />
12251226 <input type="hidden" name="lqt_operand" value="{$operand}" />
1226 - <input type="submit" value="{$lqt_email_undo}" name="lqt_read_button" title="Bring back the thread you just dismissed." />
 1227+ <input type="submit" value="{$lqt_email_undo}" name="lqt_read_button" title="{$lqt_info_undo}" />
12271228 </form>
12281229 HTML
12291230 );

Status & tagging log