Changeset 4138


Ignore:
Timestamp:
10/28/09 17:53:34 (10 years ago)
Author:
ronosman
Message:

Bug 1216 fixed : panel captions remain in previous language after switch.

Location:
extensions/pLoader/trunk/src/Uploader/GUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/pLoader/trunk/src/Uploader/GUI/wxApp.pm

    r4126 r4138  
    103103          frameLayout 
    104104          chunk_size 
     105          layout_clean 
    105106      /  
    106107); 
     
    124125    # to check if we can use stored cache 
    125126    $self->imagelist_version( 
    126         '6' 
     127        '7' 
    127128    ); 
    128129 
     
    162163    $self->_init_userdir; 
    163164 
    164  
    165165    my $conf = retrieve $self->conf_file if -e $self->conf_file;         
    166     my $layout = retrieve $self->layout_file if -e $self->layout_file;   
    167166 
    168167    if(defined $conf ){ 
     
    173172    } 
    174173 
     174    # when language is switched, need a new layout 
     175    unlink $self->layout_file if $self->layout_clean; 
     176    $self->layout_clean(0); 
     177 
     178    my $layout = retrieve $self->layout_file if -e $self->layout_file;   
    175179    if(defined $layout ){ 
    176180        $self->SetKeyValues($layout); 
     
    308312                    current_language 
    309313                    chunk_size 
     314                    layout_clean 
    310315                / 
    311316            }, 
  • extensions/pLoader/trunk/src/Uploader/GUI/wxFrameAUI.pm

    r4134 r4138  
    990990        ) 
    991991    ); 
     992    wxTheApp->layout_clean(1); 
    992993  } 
    993994 
Note: See TracChangeset for help on using the changeset viewer.