From 43ad4c196e8d26d725cc5bc2697be35ac308182f Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Thu, 30 Jul 2009 15:25:59 +0300 Subject: [PATCH] Ticket #1431 (Missing translation in view.c ButtonBar) Fixed some text constants. Thanks to dmartina Signed-off-by: Slava Zanko --- src/view.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/view.c b/src/view.c index 4c95b6b4d..b9aa24780 100644 --- a/src/view.c +++ b/src/view.c @@ -3392,10 +3392,10 @@ view_labels (WView *view) buttonbar_set_label (h, 1, Q_("ButtonBar|Help"), view_help_cmd); my_define (h, 10, Q_("ButtonBar|Quit"), view_quit_cmd, view); - text = view->hex_mode ? "ButtonBar|Ascii" : "ButtonBar|Hex"; - my_define (h, 4, Q_(text), view_toggle_hex_mode_cmd, view); - text = view->hex_mode ?"ButtonBar|Goto": "ButtonBar|Line"; - my_define (h, 5, Q_(text), + text = view->hex_mode ? Q_("ButtonBar|Ascii") : Q_("ButtonBar|Hex"); + my_define (h, 4, text, view_toggle_hex_mode_cmd, view); + text = view->hex_mode ? Q_("ButtonBar|Goto"): Q_("ButtonBar|Line"); + my_define (h, 5, text, view->hex_mode ? view_moveto_addr_cmd : view_moveto_line_cmd, view); if (view->hex_mode) { @@ -3411,19 +3411,19 @@ view_labels (WView *view) my_define (h, 6, Q_("ButtonBar|Save"), view_hexedit_save_changes_cmd, view); } else { - text = view->text_wrap_mode ? "ButtonBar|UnWrap" : "ButtonBar|Wrap"; - my_define (h, 2, Q_(text), view_toggle_wrap_mode_cmd, view); + text = view->text_wrap_mode ? Q_("ButtonBar|UnWrap") : Q_("ButtonBar|Wrap"); + my_define (h, 2, text, view_toggle_wrap_mode_cmd, view); } - text = view->hex_mode ? "ButtonBar|HxSrch" : "ButtonBar|Search"; - my_define (h, 7, Q_(text), view_search_cmd, view); - text = view->magic_mode ? "ButtonBar|Raw" : "ButtonBar|Parse"; - my_define (h, 8, Q_(text), view_toggle_magic_mode_cmd, view); + text = view->hex_mode ? Q_("ButtonBar|HxSrch") : Q_("ButtonBar|Search"); + my_define (h, 7, text, view_search_cmd, view); + text = view->magic_mode ? Q_("ButtonBar|Raw") : Q_("ButtonBar|Parse"); + my_define (h, 8, text, view_toggle_magic_mode_cmd, view); /* don't override the key to access the main menu */ if (!view_is_in_panel (view)) { - text = view->text_nroff_mode ? "ButtonBar|Unform" : "ButtonBar|Format"; - my_define (h, 9, Q_(text), view_toggle_nroff_mode_cmd, view); + text = view->text_nroff_mode ? Q_("ButtonBar|Unform") : Q_("ButtonBar|Format"); + my_define (h, 9, text, view_toggle_nroff_mode_cmd, view); my_define (h, 3, Q_("ButtonBar|Quit"), view_quit_cmd, view); } }