Menu

Code Merge Request #5: Translate toolbar button tooltips (open)

Merging...

Merged

Something went wrong. Please, merge manually

Checking if merge is possible...

Something went wrong. Please, merge manually

Jens Hoffmann wants to merge 1 commit from /u/cudos/scid/ to master, 2015-11-29

Commit Date  
[31f7c0] (translate-toolbar-button-tooltips) by Jens Hoffmann Jens Hoffmann

Use translations for toolbar button tooltips

2015-11-23 17:22:24 Tree

Discussion

  • Fulvio

    Fulvio - 2015-11-23

    There are two common ways to deal with a language change:
    - update the texts on the fly
    - require to restart the program
    This patch implements the second approach, and it's not necessarily a bad thing (the code is simpler).
    However, the rest of Scid code try to update the texts on the fly and i believe that an hybrid is confusing: the menus (for example) are immediately updated but tooltips are updated only after a restart.
    I honestly prefer the "restart to make changes effective", but implementing a coherent approach is probably the right thing to do.
    Maybe the best way to proceed is to compile a list identifing the code that updates immediately and the code that require a restart.

     
  • Jens Hoffmann

    Jens Hoffmann - 2015-11-27

    Okay, I'll try to compile that list.

     
  • Jens Hoffmann

    Jens Hoffmann - 2015-11-29

    I just found out that tcl has a pretty neat framework around i18n (msgcat) (since tcl 8.1). Right now I try to see how msgcat could be integrated into Scid. I have already the impression that using msgcat would move some complexity out of tcl/languages.tcl and the lang/ files itself and increase the maintability for i18n.

    Do you already have an opinion about using msgcat in Scid?

     

Log in to post a comment.