Package dogtail :: Module i18n :: Class TranslatableString
[hide private]
[frames] | no frames]

Class TranslatableString

source code

object --+
         |
        TranslatableString

Class representing a string that we want to match strings against, handling translation for us, by looking it up once at construction time.

Instance Methods [hide private]
 
__init__(self, untranslatedString)
Constructor looks up the string in all of the translation databases, storing the various translations it finds.
source code
 
matchedBy(self, string)
Compare the test string against either the translation of the original string (or simply the original string, if no translation was found).
source code
 
__str__(self)
Provide a meaningful debug version of the string (and the translation in use)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, untranslatedString)
(Constructor)

source code 

Constructor looks up the string in all of the translation databases, storing the various translations it finds.

Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

Provide a meaningful debug version of the string (and the translation in use)

Overrides: object.__str__