Module localisation :: Class Languages
[hide private]
[frames] | no frames]

Class Languages

source code

Languages.xml file parser.

Instance Methods [hide private]
 
__init__(self, filename) source code
 
get_language_ids(self)
returns languages id list
source code
 
get_name(self, lid)
returns languages id list
source code
 
get_attribute(self, lid, name, default=None)
returns the value for a specific language attribute name.
source code
 
get_fallbacks(self, lid)
Return the list of available fallbacks None if not any.
source code
 
find_first_fallback(self, lid, exists)
Find recursively the first reasonable alternative lid the language id exists an existance function that takes a language id as parameter and return a boolean
source code
Method Details [hide private]

get_attribute(self, lid, name, default=None)

source code 
returns the value for a specific language attribute name. It returns default if not found.