diff --git a/ChangeLog b/ChangeLog index a2dbe656..b502214f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-09-29 Bart Hakvoort + + * src/VBox_VisualDisk.cc, + src/Win_GParted.cc: minor i18n related tweaks. + 2004-09-29 Duarte Loreto * configure.in: Added Portuguese (pt) to ALL_LINGUAS. diff --git a/src/VBox_VisualDisk.cc b/src/VBox_VisualDisk.cc index b9428e56..8efc0f05 100644 --- a/src/VBox_VisualDisk.cc +++ b/src/VBox_VisualDisk.cc @@ -205,8 +205,8 @@ void VBox_VisualDisk::Build_Legend( ) hbox_legend = manage( new Gtk::HBox() ); frame_disk_legend ->add( *hbox_legend ); - Add_Legend_Item( " " + (Glib::ustring) _( "used" ) + "\t", color_used ) ; - Add_Legend_Item( " " + (Glib::ustring) _( "unused") + " ", color_unused ) ; + Add_Legend_Item( (Glib::ustring) _( "used" ) + " ", color_used ) ; + Add_Legend_Item( (Glib::ustring) _( "unused") + " ", color_unused ) ; } } diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc index 41ec4a3a..ec048796 100644 --- a/src/Win_GParted.cc +++ b/src/Win_GParted.cc @@ -350,8 +350,8 @@ void Win_GParted::Find_Devices() hbox ->pack_start( *image, Gtk::PACK_SHRINK ); //the label... - os << Sector_To_MB( devices[i] ->Get_Length() ) ; - label = manage( new Gtk::Label( " " + devices[i] ->Get_Path() + "\t (" + os.str() + " MB)" ) ); os.str("") ; + label = manage( new Gtk::Label( " " + devices[i] ->Get_Path() + "\t(" + String::ucompose( _("%1 MB"), Sector_To_MB( devices[i] ->Get_Length() ) ) + ")" ) ) ; + label ->set_alignment( Gtk::ALIGN_LEFT ); hbox ->pack_start( *label, Gtk::PACK_SHRINK );