[nemiver] Mark more strings for translation (Closes: 626079)
- From: Dodji Seketeli <dodji src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nemiver] Mark more strings for translation (Closes: 626079)
- Date: Sat, 21 Aug 2010 12:51:11 +0000 (UTC)
commit d7289f2c30f1a0a0653830443f9bdce3e706c8e4
Author: Dodji Seketeli <dodji gnome org>
Date: Sat Aug 21 14:41:29 2010 +0200
Mark more strings for translation (Closes: 626079)
* src/persp/dbgperspective/nmv-dbg-perspective.cc
(DBGPerspective::init_actions): Mark "Toggle _Breakpoint" and
"Enable/Disable Breakpoint" strings as translatable. Update their
comments.
src/persp/dbgperspective/nmv-dbg-perspective.cc | 22 +++++++++++++++++-----
1 files changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/src/persp/dbgperspective/nmv-dbg-perspective.cc b/src/persp/dbgperspective/nmv-dbg-perspective.cc
index b93f268..b6316e5 100644
--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc
+++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc
@@ -2159,7 +2159,7 @@ DBGPerspective::on_insertion_changed_signal
UString path;
a_editor->get_path (path);
// add one since iter is 0-based, file is 1-based
- update_toggle_menu_text(path, iter.get_line () + 1);
+ update_toggle_menu_text (path, iter.get_line () + 1);
NEMIVER_CATCH
}
@@ -3373,8 +3373,14 @@ DBGPerspective::init_actions ()
{
"ToggleBreakpointMenuItemAction",
nil_stock_id,
- //don't translate, name will be overwritten based on context
- "Toggle _Breakpoint",
+ // Depending on the context we will want this string to be
+ // either "Set Breakpoint", or "Remove Breakpoint". Hence
+ // this string is updated by
+ // DBGPerspective::update_toggle_menu_text when needed. So
+ // this initial value is going to be displayed only when
+ // Nemiver is launched with no executable on the command
+ // line.
+ _("Toggle _Breakpoint"),
_("Set/Unset a breakpoint at the current cursor location"),
sigc::mem_fun (*this,
&DBGPerspective::on_toggle_breakpoint_action),
@@ -3385,8 +3391,14 @@ DBGPerspective::init_actions ()
{
"ToggleEnableBreakpointMenuItemAction",
nil_stock_id,
- //don't translate, name will be overwritten based on context
- "Enable/Disable Breakpoint",
+ // Depending on the context we will want this string to be
+ // either "Enable Breakpoint", or "Disable
+ // Breakpoint". Hence this string is updated by
+ // DBGPerspective::update_toggle_menu_text when needed. So
+ // this initial value is going to be displayed only when
+ // Nemiver is launched with no executable on the command
+ // line.
+ _("Enable/Disable Breakpoint"),
_("Enable or disable the breakpoint that is set at "
"the current cursor location"),
sigc::mem_fun
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]