Lang
index
/home/jachym/usr/src/pywps/trunk/pywps/Process/Lang.py

Set and get language codes, initialize translated messages, so that the
user scan use them directly in processes.
 
In the process:
 
    User has to define set of messages for all supported languages, like
 
    self.lang["eng"]["key1"] = "Hallo, world!"
    self.lang["eng"]["key2"] = "Foo"
    self.lang["eng"]["key3"] = "Bar"
 
    Than the user can use i18n(key) method, which returns the string
    in preset language (given by client request)

 
Modules
       
os

 
Classes
       
Lang

 
class Lang
     Methods defined here:
__init__(self)
get(self, key)
Will return desired string in selected language
getCode(self, langString)
initStrings(self)
Initialize self.strings object accoring to known codces from
Lang.py
 
It can be used later like:
    self.strings["eng"]["foo"] = "bar"
setCode(self)
Set choosen language code