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

The Localizer class provides localization services for unit of measure names, symbols and descriptions as well as error messages. More...

Public Member Functions

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...
 

Static Public Member Functions

def instance ()
 
def getLC ()
 

Public Attributes

 messages
 
 units
 

Static Public Attributes

string localePath = "locales"
 
 localizer = None
 

Detailed Description

The Localizer class provides localization services for unit of measure names, symbols and descriptions as well as error messages.

Member Function Documentation

◆ langStr()

def uom.localizer.Localizer.langStr (   self,
  msgId 
)

Get the translated user-visible text for the default locale and country code.

Parameters
msgIdMessage identifier
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
msgIdMessage identifier
Returns
translated text

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