PySharp Units of Measure
Units of Measure in Python
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | Static Protected Attributes | List of all members
uom.localizer.Localizer Class Reference

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()
 

Detailed Description

Thread-safe singleton for handling localization.

Member Function Documentation

◆ getLC()

uom.localizer.Localizer.getLC ( )
static
Get language code with robust fallback.

◆ langStr()

uom.localizer.Localizer.langStr ( self,
msgId )
Get translated unit text.

◆ messageStr()

uom.localizer.Localizer.messageStr ( self,
msgId )
Get translated error message.

The documentation for this class was generated from the following file: