[gparted] Mark string "Force Cancel" for translation
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Mark string "Force Cancel" for translation
- Date: Tue, 12 Mar 2013 01:36:05 +0000 (UTC)
commit 6ea69b0ff8e12dad826940c0822f0786a8be9159
Author: Curtis Gedak <gedakc gmail com>
Date: Mon Mar 11 19:35:43 2013 -0600
Mark string "Force Cancel" for translation
src/Dialog_Progress.cc | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/src/Dialog_Progress.cc b/src/Dialog_Progress.cc
index 98641bb..5c3efef 100644
--- a/src/Dialog_Progress.cc
+++ b/src/Dialog_Progress.cc
@@ -289,10 +289,12 @@ void Dialog_Progress::on_cell_data_description( Gtk::CellRenderer * renderer, co
bool Dialog_Progress::cancel_timeout()
{
- if (--cancel_countdown)
- cancelbutton->set_label( Glib::ustring::compose("Force Cancel (%1)", cancel_countdown ) );
- else {
- cancelbutton->set_label( "Force Cancel" );
+ if (--cancel_countdown) {
+ /*TO TRANSLATORS: looks like Force Cancel (5)
+ * where the number represents a count down in seconds until the button is enabled */
+ cancelbutton->set_label( Glib::ustring::compose( _("Force Cancel (%1)"), cancel_countdown ) );
+ } else {
+ cancelbutton->set_label( _("Force Cancel") );
canceltimer.disconnect();
cancelbutton->set_sensitive();
return false;
@@ -319,11 +321,13 @@ void Dialog_Progress::on_cancel()
cancelbutton->set_sensitive( false );
if (!cancel) {
cancel_countdown = 5;
- cancelbutton->set_label( Glib::ustring::compose("Force Cancel (%1)", cancel_countdown
) );
+ /*TO TRANSLATORS: looks like Force Cancel (5)
+ * where the number represents a count down in seconds until the button is enabled */
+ cancelbutton->set_label( Glib::ustring::compose( _("Force Cancel (%1)"),
cancel_countdown ) );
canceltimer = Glib::signal_timeout().connect(
sigc::mem_fun(*this, &Dialog_Progress::cancel_timeout), 1000 );
}
- else cancelbutton->set_label( "Force Cancel" );
+ else cancelbutton->set_label( _("Force Cancel") );
operations[t]->operation_detail.signal_cancel( cancel );
cancel = true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]