| Trees | Indices | Help |
|
|---|
|
|
|
|||
| I18nManager | |||
| I18nException | |||
| I18nFileSystemHandler | |||
| I18nLocale | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
_PYICU_LOCALE = <Locale: en_US>
|
|||
_WX_LOCALE = <Locale: en_US>
|
|||
_WX_AVAILABLE = True
|
|||
|
|||
|
Sets the c{PyICU.Locale} to the value passed in c{str} locale argument. If the locale passed in not a valid / supported PyICU locale a c{I18nException} is raised.
|
|
|
|
|
|
Sets the c{wx.Locale} to the value passed in c{str} locale argument. If the locale passed is not a valid wx locale and and that locale consists of a lang and country code, the country code is stripped and the lang code is set as the c{wx.Locale}. This logic is employed in the cases such as "es_UY" where wxPython does not have a translation for 'es_UY' but does have one for 'es'. If the locale is still not valid after attempting to use just the lang code a c{I18nException} is raised.
|
Looks up the wx Language integer code. The code is needed to create a c{wx.Locale} object. For example the code for "en_US" is 58. If c{wx.FindLanguageInfo(locale)} returns None then wx does not support the requested locale or the lang / country codes are invalid. the findWxLocale method can raise the following exceptions:
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Sun Oct 28 06:06:59 2007 | http://epydoc.sourceforge.net |