Improved abilility to translate text

svn path=/trunk/; revision=825
This commit is contained in:
Curtis Gedak 2008-04-20 16:11:23 +00:00
parent f2c6c7e34e
commit 1eb4e1aea5
2 changed files with 8 additions and 12 deletions

View File

@ -1,3 +1,8 @@
2008-04-20 Curtis Gedak <gedakc@gmail.com>
* src/Dialog_Disklabel.cc: Improved ability to translate text
- Closes GParted bug #529063
2008-04-18 Curtis Gedak <gedakc@gmail.com>
* src/Dialog_Disklabel.cc,

View File

@ -78,23 +78,14 @@ Dialog_Disklabel::Dialog_Disklabel( const Glib::ustring & device_path, const std
//standard warning
str_temp = "\n<i>" ;
str_temp += _("Choosing ") ;
str_temp += "<b>" ;
/*TO TRANSLATORS: This is the name of the button Gtk::RESPONSE_OK below. */
str_temp += _("Create") ;
str_temp += "</b>" ;
str_temp += _(" will") ;
str_temp += ":\n - " ;
/*TO TRANSLATORS: looks like IMMEDIATELY ERASE ALL DATA on disk /dev/hda */
str_temp += String::ucompose( _("IMMEDIATELY ERASE ALL DATA on disk %1"), device_path ) ;
str_temp += "\n - " ;
/*TO TRANSLATORS: looks like Create a new partition table on disk /dev/hda */
str_temp += String::ucompose( _("Create a new partition table on disk %1"), device_path ) ;
/*TO TRANSLATORS: looks like Choosing the Create button will IMMEDIATELY ERASE ALL DATA on disk /dev/hda */
str_temp += String::ucompose( _("Choosing the Create button will IMMEDIATELY ERASE ALL DATA on disk %1"), device_path ) ;
str_temp += "\n</i>";
vbox ->pack_start( * Utils::mk_label( str_temp, true, Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, true ),
Gtk::PACK_SHRINK );
this ->add_button( Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL );
/*TO TRANSLATORS: This is the name of the button referred to in the previous text Choosing the Create button will .... */
this ->add_button( _("Create"), Gtk::RESPONSE_OK );
this ->show_all_children() ;