|
PySharp Units of Measure
Units of Measure in Python
|
Public Member Functions | |
| __new__ (cls) | |
| __init__ (self) | |
| messageStr (self, msgId) | |
| langStr (self, msgId) | |
Static Public Member Functions | |
| instance () | |
| getLC () | |
Public Attributes | |
| messages | |
| units | |
| localePath | |
Protected Attributes | |
| _initialized | |
Static Protected Attributes | |
| _instance = None | |
| _lock = threading.Lock() | |
Thread-safe singleton for handling localization.
|
static |
Get language code with robust fallback.
| uom.localizer.Localizer.langStr | ( | self, | |
| msgId ) |
Get translated unit text.
| uom.localizer.Localizer.messageStr | ( | self, | |
| msgId ) |
Get translated error message.