* (bug 6498) Use localized forms for image size in Special:Undelete
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 30 Jun 2006 19:03:36 +0000 (19:03 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 30 Jun 2006 19:03:36 +0000 (19:03 +0000)
RELEASE-NOTES
includes/SpecialUndelete.php

index 86b41ab..6ba8e41 100644 (file)
@@ -613,6 +613,7 @@ Some default configuration options have changed:
   in this regard due to the bit patterns which make head and tail bytes
   distinct.
 * (bug 6497) Use $wgMetaNamespaceTalk for Esperanto if set
+* (bug 6498) Use localized forms for image size in Special:Undelete
 
 
 == Compatibility ==
index 8937983..72262f8 100644 (file)
@@ -687,8 +687,13 @@ class UndeleteForm {
                                        $pageLink = $wgLang->timeanddate( $ts, true );
                                }
                                $userLink = $sk->userLink( $row->fa_user, $row->fa_user_text );
-                               $data = $row->fa_width . 'x' . $row->fa_height . " (" .
-                                       $row->fa_size . " bytes)";
+                               $data =
+                                       wfMsgHtml( 'widthheight',
+                                               $wgLang->formatNum( $row->fa_width ),
+                                               $wgLang->formatNum( $row->fa_height ) ) .
+                                       ' (' .
+                                       wfMsgHtml( 'nbytes', $wgLang->formatNum( $row->fa_size ) ) .
+                                       ')';
                                $comment = $sk->commentBlock( $row->fa_description );
                                $wgOut->addHTML( "<li>$checkBox $pageLink . . $userLink $data $comment</li>\n" );
                        }