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

Class TranslatableString

source code

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