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

Class GettextTranslationDb

source code

TranslationDb --+
                |
               GettextTranslationDb

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

Instance Methods [hide private]
 
__init__(self, moFile) source code
 
getTranslationsOf(self, srcName)
Pure virtual method to look up the translation of a string.
source code
Method Details [hide private]

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)