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

Class GettextTranslationDb

source code

   object --+    
            |    
TranslationDb --+
                |
               GettextTranslationDb

Implementation of TranslationDb which leverages gettext, using a single translation mo-file.

Instance Methods [hide private]
 
__init__(self, moFile)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
getTranslationsOf(self, srcName)
Pure virtual method to look up the translation of a string.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, moFile)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

getTranslationsOf(self, srcName)

source code 

Pure virtual method to look up the translation of a string. Returns a list of candidate strings (the translation), empty if not found.

Note that a source string can map to multiple translated strings. For example, in the French translation of Evolution, the string "Forward" can translate to both (i) "Faire suivre" for forwarding an email, and (ii) "Suivant" for the next page in a wizard.

Overrides: TranslationDb.getTranslationsOf
(inherited documentation)