The Localizer class provides localization services for unit of measure names, symbols and descriptions as well as error messages.
More...
|
def | __init__ (self) |
|
def | messageStr (self, msgId) |
| Get the translated error message text for the default locale and country code. More...
|
|
def | langStr (self, msgId) |
| Get the translated user-visible text for the default locale and country code. More...
|
|
|
def | instance () |
|
def | getLC () |
|
|
string | localePath = "locales" |
|
| localizer = None |
|
The Localizer class provides localization services for unit of measure names, symbols and descriptions as well as error messages.
◆ langStr()
def uom.localizer.Localizer.langStr |
( |
|
self, |
|
|
|
msgId |
|
) |
| |
Get the translated user-visible text for the default locale and country code.
- Parameters
-
- Returns
- translated text
◆ messageStr()
def uom.localizer.Localizer.messageStr |
( |
|
self, |
|
|
|
msgId |
|
) |
| |
Get the translated error message text for the default locale and country code.
- Parameters
-
- Returns
- translated text
The documentation for this class was generated from the following file: