Added translator comments

svn path=/trunk/; revision=945
This commit is contained in:
Curtis Gedak 2008-10-30 19:10:17 +00:00
parent f543db1541
commit da9d41d459
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2008-10-30 Curtis Gedak <gedakc@gmail.com> 2008-10-30 Curtis Gedak <gedakc@gmail.com>
* src/GParted_Core.cc: Added translator comments
* src/Win_GParted.cc: Added thread status message update to pulsebar * src/Win_GParted.cc: Added thread status message update to pulsebar
* include/GParted_Core.h, * include/GParted_Core.h,

View File

@ -171,6 +171,7 @@ void GParted_Core::set_devices( std::vector<Device> & devices )
{ {
//try to have libparted detect the device and add it to the list //try to have libparted detect the device and add it to the list
device = "/dev/" + device; device = "/dev/" + device;
/*TO TRANSLATORS: looks like Scanning /dev/sda ... */
set_thread_status_message( String::ucompose ( _("Scanning %1 ..."), device ) ) ; set_thread_status_message( String::ucompose ( _("Scanning %1 ..."), device ) ) ;
ped_device_get( device .c_str() ) ; ped_device_get( device .c_str() ) ;
} }
@ -218,6 +219,7 @@ void GParted_Core::set_devices( std::vector<Device> & devices )
continue; continue;
if ( dm_majors .find( major( st.st_rdev ) ) != dm_majors .end() ) if ( dm_majors .find( major( st.st_rdev ) ) != dm_majors .end() )
//TODO avoid probing partition nodes for dmraid devices //TODO avoid probing partition nodes for dmraid devices
/*TO TRANSLATORS: looks like Scanning /dev/sda ... */
set_thread_status_message( String::ucompose ( _("Scanning %1 ..."), mapper_name ) ) ; set_thread_status_message( String::ucompose ( _("Scanning %1 ..."), mapper_name ) ) ;
ped_device_get( mapper_name .c_str() ) ; ped_device_get( mapper_name .c_str() ) ;
} }
@ -237,6 +239,7 @@ void GParted_Core::set_devices( std::vector<Device> & devices )
char * buf = static_cast<char *>( malloc( lp_device ->sector_size ) ) ; char * buf = static_cast<char *>( malloc( lp_device ->sector_size ) ) ;
if ( buf ) if ( buf )
{ {
/*TO TRANSLATORS: looks like Reading /dev/sda ... */
set_thread_status_message( String::ucompose ( _("Reading %1 ..."), lp_device ->path ) ) ; set_thread_status_message( String::ucompose ( _("Reading %1 ..."), lp_device ->path ) ) ;
if ( ped_device_open( lp_device ) ) if ( ped_device_open( lp_device ) )
{ {
@ -255,7 +258,8 @@ void GParted_Core::set_devices( std::vector<Device> & devices )
} }
for ( unsigned int t = 0 ; t < device_paths .size() ; t++ ) for ( unsigned int t = 0 ; t < device_paths .size() ; t++ )
{ {
/*TO TRANSLATORS: looks like Scanning /dev/sda for partitions ... */
set_thread_status_message( String::ucompose ( _("Scanning %1 for partitions ..."), device_paths[ t ] ) ) ; set_thread_status_message( String::ucompose ( _("Scanning %1 for partitions ..."), device_paths[ t ] ) ) ;
if ( open_device_and_disk( device_paths[ t ], false ) ) if ( open_device_and_disk( device_paths[ t ], false ) )
{ {