~ubuntu-branches/ubuntu/wily/playonlinux/wily-proposed

« back to all changes in this revision

Viewing changes to python/lib/lng.py

  • Committer: Package Import Robot
  • Author(s): Bertrand Marc
  • Date: 2011-12-10 15:48:27 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20111210154827-z9pylhgrahjh7eu1
Tags: 4.0.14-1
* New upstream release.
* Add the new TRANSLATORS file to debian/playonlinux.docs.
* Refresh patches/x-terminal-emulator.diff.
* Install etc/playonlinux.gpg to verify downloaded scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
class Lang(object):
10
10
        def __init__(self):
11
 
                """
12
 
                languages = os.listdir(Variables.playonlinux_env+'/lang/locale')
13
 
 
14
 
                langid = wx.LANGUAGE_DEFAULT
15
 
                basepath = os.popen("printf \"$PLAYONLINUX\"","r").read()
16
 
                localedir = os.path.join(basepath, "lang/locale")
17
 
                domain = "pol"
18
 
                mylocale = wx.Locale(langid)
19
 
                mylocale.AddCatalogLookupPathPrefix(localedir)
20
 
                mylocale.AddCatalog(domain)
21
 
 
22
 
                #mytranslation = gettext.translation(domain, localedir, [mylocale.GetCanonicalName()], fallback = True)
23
 
                #mytranslation.install()
24
 
                """
25
11
                return None
26
12
 
27
13
class iLang(object):