Added wxWidgets locale files
This commit is contained in:
parent
a66430c255
commit
bf7e602e4a
BIN
src/locales/es/LC_MESSAGES/wxstd.mo
Normal file
BIN
src/locales/es/LC_MESSAGES/wxstd.mo
Normal file
Binary file not shown.
BIN
src/locales/ru/LC_MESSAGES/wxstd.mo
Normal file
BIN
src/locales/ru/LC_MESSAGES/wxstd.mo
Normal file
Binary file not shown.
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user