Logo Search packages:      
Sourcecode: language-selector version File versions  Download package

def LanguageSelector::FontConfig::FontConfigHack::getCurrentConfig (   self  ) 

returns the current language configuration as a string (e.g. zh_CN)

    if the configfile is not a symlink it raises a
     ExceptionNotSymlink exception
    if the file dosn't exists raise a
     ExceptionUnconfigured exception
    if it's unconfigured return the string 'none'

Definition at line 44 of file FontConfig.py.

00044                               :
        """ returns the current language configuration as a string (e.g. zh_CN)
        
            if the configfile is not a symlink it raises a
             ExceptionNotSymlink exception
            if the file dosn't exists raise a
             ExceptionUnconfigured exception
            if it's unconfigured return the string 'none'
        """
        f = self.configFile
        if not os.path.exists(f):
            raise ExceptionUnconfigured()
        if not os.path.islink(f):
            raise ExceptionNotSymlink()
        realpath = os.path.realpath(f)
        return os.path.basename(realpath)

    def setConfig(self, locale):


Generated by  Doxygen 1.6.0   Back to index