PyShift Work Schedule
Work Schedule for Python
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
localizer.Localizer Class Reference

The Localizer class provides localization services for work schedule user-visible text as well as for error messages. More...

Public Member Functions

def __init__ (self)
 Construct the Localizer.
 
str messageStr (self, str msgId)
 Get the translated error message text for the default locale and country code. More...
 

Static Public Member Functions

def instance ()
 Get the single instance of Localizer

 
str getLC ()
 get the the language country code from the default locale
 

Public Attributes

 messages
 

Static Public Attributes

string localePath = "locales"
 
 singleton = None
 

Detailed Description

The Localizer class provides localization services for work schedule user-visible text as well as for error messages.

It is a Singleton class

Member Function Documentation

◆ messageStr()

str localizer.Localizer.messageStr (   self,
str  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: