mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
Merge branch '1431_missing_translation'
* 1431_missing_translation: Ticket #1431 (Missing translation in view.c ButtonBar)
This commit is contained in:
commit
35798a2d71
24
src/view.c
24
src/view.c
@ -3392,10 +3392,10 @@ view_labels (WView *view)
|
|||||||
buttonbar_set_label (h, 1, Q_("ButtonBar|Help"), view_help_cmd);
|
buttonbar_set_label (h, 1, Q_("ButtonBar|Help"), view_help_cmd);
|
||||||
|
|
||||||
my_define (h, 10, Q_("ButtonBar|Quit"), view_quit_cmd, view);
|
my_define (h, 10, Q_("ButtonBar|Quit"), view_quit_cmd, view);
|
||||||
text = view->hex_mode ? "ButtonBar|Ascii" : "ButtonBar|Hex";
|
text = view->hex_mode ? Q_("ButtonBar|Ascii") : Q_("ButtonBar|Hex");
|
||||||
my_define (h, 4, Q_(text), view_toggle_hex_mode_cmd, view);
|
my_define (h, 4, text, view_toggle_hex_mode_cmd, view);
|
||||||
text = view->hex_mode ?"ButtonBar|Goto": "ButtonBar|Line";
|
text = view->hex_mode ? Q_("ButtonBar|Goto"): Q_("ButtonBar|Line");
|
||||||
my_define (h, 5, Q_(text),
|
my_define (h, 5, text,
|
||||||
view->hex_mode ? view_moveto_addr_cmd : view_moveto_line_cmd, view);
|
view->hex_mode ? view_moveto_addr_cmd : view_moveto_line_cmd, view);
|
||||||
|
|
||||||
if (view->hex_mode) {
|
if (view->hex_mode) {
|
||||||
@ -3411,19 +3411,19 @@ view_labels (WView *view)
|
|||||||
my_define (h, 6, Q_("ButtonBar|Save"),
|
my_define (h, 6, Q_("ButtonBar|Save"),
|
||||||
view_hexedit_save_changes_cmd, view);
|
view_hexedit_save_changes_cmd, view);
|
||||||
} else {
|
} else {
|
||||||
text = view->text_wrap_mode ? "ButtonBar|UnWrap" : "ButtonBar|Wrap";
|
text = view->text_wrap_mode ? Q_("ButtonBar|UnWrap") : Q_("ButtonBar|Wrap");
|
||||||
my_define (h, 2, Q_(text), view_toggle_wrap_mode_cmd, view);
|
my_define (h, 2, text, view_toggle_wrap_mode_cmd, view);
|
||||||
}
|
}
|
||||||
|
|
||||||
text = view->hex_mode ? "ButtonBar|HxSrch" : "ButtonBar|Search";
|
text = view->hex_mode ? Q_("ButtonBar|HxSrch") : Q_("ButtonBar|Search");
|
||||||
my_define (h, 7, Q_(text), view_search_cmd, view);
|
my_define (h, 7, text, view_search_cmd, view);
|
||||||
text = view->magic_mode ? "ButtonBar|Raw" : "ButtonBar|Parse";
|
text = view->magic_mode ? Q_("ButtonBar|Raw") : Q_("ButtonBar|Parse");
|
||||||
my_define (h, 8, Q_(text), view_toggle_magic_mode_cmd, view);
|
my_define (h, 8, text, view_toggle_magic_mode_cmd, view);
|
||||||
|
|
||||||
/* don't override the key to access the main menu */
|
/* don't override the key to access the main menu */
|
||||||
if (!view_is_in_panel (view)) {
|
if (!view_is_in_panel (view)) {
|
||||||
text = view->text_nroff_mode ? "ButtonBar|Unform" : "ButtonBar|Format";
|
text = view->text_nroff_mode ? Q_("ButtonBar|Unform") : Q_("ButtonBar|Format");
|
||||||
my_define (h, 9, Q_(text), view_toggle_nroff_mode_cmd, view);
|
my_define (h, 9, text, view_toggle_nroff_mode_cmd, view);
|
||||||
my_define (h, 3, Q_("ButtonBar|Quit"), view_quit_cmd, view);
|
my_define (h, 3, Q_("ButtonBar|Quit"), view_quit_cmd, view);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user