r49338 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49337‎ | r49338 | r49339 >
Date:12:28, 9 April 2009
Author:purodha
Status:deferred
Tags:
Comment:
vigaton links in translation edit page stylable with class="mw-translate-nav-prev-next-list"
Message name (key) added as a parameter to two messages on the edit page as per suggestion at
http://translatewiki.net/wiki/Support#translatewiki.nets_UI.2C_edit_page_suggestion .
Documentation added.
Modified paths:
  • /trunk/extensions/Translate/Translate.i18n.php (modified) (history)
  • /trunk/extensions/Translate/TranslateEditAddons.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateEditAddons.php
@@ -71,7 +71,7 @@
7272
7373 $text .= <<<EOEO
7474 <hr />
75 -<ul>
 75+<ul class="mw-translate-nav-prev-next-list">
7676 <li>$prevLink</li>
7777 <li>$nextLink</li>
7878 <li>$list</li>
@@ -230,7 +230,7 @@
231231 }
232232 }
233233 if ( count( $inOtherLanguages ) ) {
234 - $boxes[] = TranslateUtils::fieldset( wfMsgHtml( self::MSG . 'in-other-languages' ),
 234+ $boxes[] = TranslateUtils::fieldset( wfMsgHtml( self::MSG . 'in-other-languages' , $key ),
235235 implode( "\n", $inOtherLanguages ), array( 'class' => 'mw-sp-translate-edit-inother' ) );
236236 }
237237
@@ -265,7 +265,7 @@
266266 // Remove whatever block element wrapup the parser likes to add
267267 $contents = preg_replace( '~^<([a-z]+)>(.*)</\1>$~us', '\2', $contents );
268268 $boxes[] = TranslateUtils::fieldset(
269 - wfMsgHtml( self::MSG . 'information', $edit ), $contents, array( 'class' => $class )
 269+ wfMsgHtml( self::MSG . 'information', $edit , $key ), $contents, array( 'class' => $class )
270270 );
271271 }
272272 }
Index: trunk/extensions/Translate/Translate.i18n.php
@@ -65,8 +65,8 @@
6666 'translate-edit-contribute' => 'contribute',
6767 'translate-edit-no-information' => "''This message has no documentation.
6868 If you know where or how this message is used, you can help other translators by adding documentation to this message.''",
69 - 'translate-edit-information' => 'Information about this message ($1)',
70 - 'translate-edit-in-other-languages' => 'Message in other languages',
 69+ 'translate-edit-information' => 'Information about message "$2" ($1)',
 70+ 'translate-edit-in-other-languages' => 'Message "$1" in other languages',
7171 'translate-edit-committed' => 'Current translation in software',
7272 'translate-edit-warnings' => 'Warnings about incomplete translations',
7373
@@ -239,7 +239,8 @@
240240 'translate-page-edit' => '{{Identical|Edit}}',
241241 'translate-optional' => '{{Identical|Optional}}',
242242 'translate-edit-no-information' => 'Message is used as a hint to translators that documentation for a message without documentation is needed.',
243 - 'translate-edit-in-other-languages' => 'Caption for box which contains translation of message in other languages',
 243+ 'translate-edit-information' => 'Caption for box which contains information about the message. $2 is the message name. $1 is {{msg-mw|translate-edit-contribute}}.',
 244+ 'translate-edit-in-other-languages' => 'Caption for box which contains translation of message in other languages. $1 is the message name.',
244245 'translate-edit-warnings' => 'Title of the warnings box when editing a message.
245246 This box list the problems found in the translation.',
246247 'translate-magic-help' => 'Description of [[Special:AdvancedTranslate]].',

Status & tagging log