Added wxWidgets locale files

This commit is contained in:
Manuel Cortez 2019-01-11 08:55:28 -06:00
parent a66430c255
commit bf7e602e4a
3 changed files with 11 additions and 10 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,8 +1,10 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
#from __future__ import unicode_literals #from __future__ import unicode_literals
from __future__ import unicode_literals from __future__ import unicode_literals
from builtins import range import languageHandler
import paths
import wx import wx
from builtins import range
toolkit = "wx" toolkit = "wx"
@ -120,15 +122,14 @@ class mainLoopObject(wx.App):
def __init__(self): def __init__(self):
self.app = wx.App() self.app = wx.App()
# self.lc = wx.Locale() self.lc = wx.Locale()
# lang=languageHandler.getLanguage() lang=languageHandler.getLanguage()
# wxLang=self.lc.FindLanguageInfo(lang) wxLang=self.lc.FindLanguageInfo(lang)
# if not wxLang and '_' in lang: if not wxLang and '_' in lang:
# wxLang=self.lc.FindLanguageInfo(lang.split('_')[0]) wxLang=self.lc.FindLanguageInfo(lang.split('_')[0])
# if hasattr(sys,'frozen'): self.lc.AddCatalogLookupPathPrefix(paths.locale_path())
# self.lc.AddCatalogLookupPathPrefix(paths.app_path("locales")) if wxLang:
# if wxLang: self.lc.Init(wxLang.Language)
# self.lc.Init(wxLang.Language)
def run(self): def run(self):
self.app.MainLoop() self.app.MainLoop()