git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20368
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
wxString s = m_filePath;
s += wxT(" ");
+
if (IsDir())
- s += wxT("<DIR> ");
+ s += _("<DIR>");
else if (IsLink())
- s += wxT("<LINK> ");
+ s += _("<LINK>");
else if (IsDrive())
+ s += _("<DRIVE>");
+ else // plain file
+ s += wxString::Format( _("%ld bytes"), m_size );
+
+ s += wxT(' ');
+
+ if ( !IsDrive() )
{
- s += wxT("<DRIVE> ");
- return s;
- }
- else
- {
- s += wxString::Format( "%ld", m_size );
- s += wxT(" bytes ");
+ s << GetModificationTime()
+ << wxT(" ")
+ << m_permissions;
}
- s += GetModificationTime();
- s += wxT(" ");
- s += m_permissions;
return s;
};