Ticket #1431 (Missing translation in view.c ButtonBar)

Fixed some text constants.

Thanks to dmartina

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2009-07-30 15:25:59 +03:00
parent 8e4d3d6d3a
commit 43ad4c196e
1 changed files with 12 additions and 12 deletions

View File

@ -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);
}
}