]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxPLURAL to allow for singular "%ld bytes" version. Noticed by Priit Laes.
authorMart Raudsepp <leio@gentoo.org>
Thu, 27 Jul 2006 11:40:15 +0000 (11:40 +0000)
committerMart Raudsepp <leio@gentoo.org>
Thu, 27 Jul 2006 11:40:15 +0000 (11:40 +0000)
This is the first usage of wxPLURAL inside the library itself. We surely have more singular/plural strings than
one?

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/filedlgg.cpp

index 072c6072c66da604cb6c2fe6b013d66fa78be434..d513ec128137e984e5b772e612726dafccbc28ec 100644 (file)
@@ -355,7 +355,7 @@ wxString wxFileData::GetHint() const
     else if (IsDrive())
         s += _("<DRIVE>");
     else // plain file
-        s += wxString::Format(_("%ld bytes"),
+        s += wxString::Format(wxPLURAL("%ld byte", "%ld bytes", m_size),
                               wxLongLong(m_size).ToString().c_str());
 
     s += wxT(' ');