From: Brion Vibber Date: Fri, 30 Jun 2006 19:03:36 +0000 (+0000) Subject: * (bug 6498) Use localized forms for image size in Special:Undelete X-Git-Tag: 1.31.0-rc.0~56509 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=f46aed2c9031c2d6dfb32f3515725d868d2b1582;p=lhc%2Fweb%2Fwiklou.git * (bug 6498) Use localized forms for image size in Special:Undelete --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 86b41ab8c8..6ba8e41701 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/SpecialUndelete.php b/includes/SpecialUndelete.php index 893798357e..72262f8ab0 100644 --- a/includes/SpecialUndelete.php +++ b/includes/SpecialUndelete.php @@ -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( "
  • $checkBox $pageLink . . $userLink $data $comment
  • \n" ); }