Ticket #1431: mc.diff

File mc.diff, 1.9 KB (added by dmartina, 10 years ago)
  • src/view.c

    diff -ur mc.git/src/view.c mc.src/src/view.c
    old new  
    33923392    buttonbar_set_label (h, 1, Q_("ButtonBar|Help"), view_help_cmd); 
    33933393 
    33943394    my_define (h, 10, Q_("ButtonBar|Quit"), view_quit_cmd, view); 
    3395     text = view->hex_mode ? "ButtonBar|Ascii" : "ButtonBar|Hex"; 
     3395    text = view->hex_mode ? N_("ButtonBar|Ascii") : N_("ButtonBar|Hex"); 
    33963396    my_define (h, 4, Q_(text), view_toggle_hex_mode_cmd, view); 
    3397     text = view->hex_mode ?"ButtonBar|Goto": "ButtonBar|Line"; 
     3397    text = view->hex_mode ? N_("ButtonBar|Goto"): N_("ButtonBar|Line"); 
    33983398    my_define (h, 5, Q_(text), 
    33993399        view->hex_mode ? view_moveto_addr_cmd : view_moveto_line_cmd, view); 
    34003400 
     
    34113411        my_define (h, 6, Q_("ButtonBar|Save"), 
    34123412            view_hexedit_save_changes_cmd, view); 
    34133413    } else { 
    3414         text = view->text_wrap_mode ? "ButtonBar|UnWrap" : "ButtonBar|Wrap"; 
     3414        text = view->text_wrap_mode ? N_("ButtonBar|UnWrap") : N_("ButtonBar|Wrap"); 
    34153415        my_define (h, 2, Q_(text), view_toggle_wrap_mode_cmd, view); 
    34163416    } 
    34173417 
    3418     text = view->hex_mode ? "ButtonBar|HxSrch" : "ButtonBar|Search"; 
     3418    text = view->hex_mode ? N_("ButtonBar|HxSrch") : N_("ButtonBar|Search"); 
    34193419    my_define (h, 7, Q_(text), view_search_cmd, view); 
    3420     text = view->magic_mode ? "ButtonBar|Raw" : "ButtonBar|Parse"; 
     3420    text = view->magic_mode ? N_("ButtonBar|Raw") : N_("ButtonBar|Parse"); 
    34213421    my_define (h, 8, Q_(text), view_toggle_magic_mode_cmd, view); 
    34223422 
    34233423    /* don't override the key to access the main menu */ 
    34243424    if (!view_is_in_panel (view)) { 
    3425         text = view->text_nroff_mode ? "ButtonBar|Unform" : "ButtonBar|Format"; 
     3425        text = view->text_nroff_mode ? N_("ButtonBar|Unform") : N_("ButtonBar|Format"); 
    34263426        my_define (h, 9, Q_(text), view_toggle_nroff_mode_cmd, view); 
    34273427        my_define (h, 3, Q_("ButtonBar|Quit"), view_quit_cmd, view); 
    34283428    }