def getLanguage():
     if 'ses_lang' in web.template.Template.globals:
        if len(web.template.Template.globals['ses_lang']) >- 2:
            return web.template.Template.globals['ses_lang']
     if 'LANG' in GlobalFunctions.GetURLdata() is not None:
        if GlobalFunctions.GetURLdata()['LANG'] in localies.LANGS:
            if 'ses_lang' in web.template.Template.globals:
                web.template.Template.globals['ses_lang'] = GlobalFunctions.GetURLdata()['LANG']
                return web.template.Template.globals['ses_lang']
        else: web.template.Template.globals['ses_lang'] = 'en'

     web.template.Template.globals['ses_lang'] = localies.country_LANG[GeoipTable.getCountry()]

     web.ctx.session.LANG = web.template.Template.globals['ses_lang']
     return web.template.Template.globals['ses_lang']
 def GET(self, path):
     global LANG
     return "hello " + path + " "+ str(localies.country_LANG[GeoipTable.getCountry()]) + " " +  str(GlobalFunctions.GetURLdata()) + "  " + TranslationsTable.getText("Hello", LANG)