Menu

#4 language problem

open
nobody
Main Window (2)
5
2007-12-04
2007-12-04
Anonymous
No

ink check works only if the default language is english.
the script search for string in english (yellow magenta etc. etc.). so, for example, in italian only the magenta ink level is show, because also in italian magenta is 'magenta' as in english. btu yellow, cyan and black bar don't show the ink level.

obviously starting the script with 'LANG=En stylus-toolbox' fix the problem.

Discussion

  • makz

    makz - 2007-12-11

    Logged In: YES
    user_id=1103162
    Originator: NO

    This is easy to fix, just open stylus-toolbox.py and add the following to the import list:

    import gettext

    Then under the refresh window function around line 247 after def(... add this:

    gettext.bindtextdomain('gutenprint')
    gettext.textdomain('gutenprint')

    After that around line 274 look for this:

    if y=='Black':

    and change it into this

    if y==gettext.gettext('Black'):

    do the same for Cyan, Magenta, Yellow and Light. Save and Make Install.

     
  • Nobody/Anonymous

    Logged In: NO

    Targetted fix for 1.0rc1.

     
  • Nobody/Anonymous

    Logged In: NO

    Targetted fix for 1.0rc1.

     

Log in to post a comment.