Changeset 154

Show
Ignore:
Timestamp:
Mon Mar 19 14:24:36 2007
Author:
manatlan
Message:

- menu help can now run help in fr/en, depands on locale

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/jbrout.py

    r141 r154  
    1781 1781  
    1782 1782     def on_help_activate(self,*args):  
    1783           # "START" is the command start on win32 to run a program or url  
    1784           # it's in uppercase because on linux, there is "start" too  
    1785           openURL(u"http://jbrout.free.fr/aide/")  
      1783         try:  
      1784             import locale  
      1785             lang=locale.getdefaultlocale()[0][:2].lower()  
      1786             if lang!="fr":  
      1787                 lang="en"  
      1788         except:  
      1789             lang="en"  
      1790         openURL(u"http://jbrout.free.fr/help/%s/" % lang)  
    1786 1791  
    1787 1792     def on_a_propos_activate(self, widget, *args):