[gparted] Indicate required software packages if unable to read file system (#576908)
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Indicate required software packages if unable to read file system (#576908)
- Date: Sat, 20 Feb 2010 18:30:09 +0000 (UTC)
commit eba0c88da56707aa8d21610658eab42d2a3090b2
Author: Curtis Gedak <gedakc gmail com>
Date: Sat Feb 20 11:25:55 2010 -0700
Indicate required software packages if unable to read file system (#576908)
src/GParted_Core.cc | 21 +++++++++++++++------
1 files changed, 15 insertions(+), 6 deletions(-)
---
diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
index 095783d..1242ef0 100644
--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -1164,11 +1164,7 @@ void GParted_Core::set_mountpoints( std::vector<Partition> & partitions )
void GParted_Core::set_used_sectors( std::vector<Partition> & partitions )
{
struct statvfs sfs ;
-
- temp = _("Unable to read the contents of this file system!") ;
- temp += "\n" ;
- temp += _("Because of this some operations may be unavailable.") ;
-
+
for ( unsigned int t = 0 ; t < partitions .size() ; t++ )
{
if ( partitions[ t ] .filesystem != GParted::FS_LINUX_SWAP &&
@@ -1213,8 +1209,21 @@ void GParted_Core::set_used_sectors( std::vector<Partition> & partitions )
}
if ( partitions[ t ] .sectors_used == -1 )
+ {
+ temp = _("Unable to read the contents of this file system!") ;
+ temp += "\n" ;
+ temp += _("Because of this some operations may be unavailable.") ;
+ if ( ! Utils::get_filesystem_software( partitions[ t ] .filesystem ) .empty() )
+ {
+ temp += "\n\n" ;
+ /*TO TRANSLATORS: looks like The following list of software packages is required for NTFS file system support: ntfsprogs. */
+ temp += String::ucompose( _("The following list of software packages is required for %1 file system support: %2."),
+ Utils::get_filesystem_string( partitions[ t ] .filesystem ),
+ Utils::get_filesystem_software( partitions[ t ] .filesystem )
+ ) ;
+ }
partitions[ t ] .messages .push_back( temp ) ;
-
+ }
}
else if ( partitions[ t ] .type == GParted::TYPE_EXTENDED )
set_used_sectors( partitions[ t ] .logicals ) ;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]