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

Class TranslationDb

source code

object --+
         |
        TranslationDb
Known Subclasses:

Abstract base class representing a database of translations

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

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

Properties [hide private]

Inherited from object: __class__

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.