From f46aed2c9031c2d6dfb32f3515725d868d2b1582 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 30 Jun 2006 19:03:36 +0000 Subject: [PATCH] * (bug 6498) Use localized forms for image size in Special:Undelete --- RELEASE-NOTES | 1 + includes/SpecialUndelete.php | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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" ); } -- 2.20.1