Beispiel #1
0
 def privacy_statement(self, lang = None):
     """ returns string of privacy statement """
     log_debug(1, "lang: %s" % lang)
     if lang:
         cat.setlangs(lang)
     msg = _("Red Hat Satellite Privacy Statement")
     # compress this one
     rhnFlags.set("compress_response", 1)
     return msg
Beispiel #2
0
 def welcome_message(self, lang = None):
     """ returns string of welcome message """
     log_debug(1, "lang: %s" % lang)
     if lang:
         cat.setlangs(lang)
     msg = _("Red Hat Satellite Welcome Message")
     # compress this one
     rhnFlags.set("compress_response", 1)
     return msg
Beispiel #3
0
 def privacy_statement(self, lang = None):
     """ returns string of privacy statement """
     log_debug(1, "lang: %s" % lang)
     if lang:
         cat.setlangs(lang)
     msg = _("Red Hat Satellite Privacy Statement")
     # compress this one
     rhnFlags.set("compress_response", 1)
     return msg
Beispiel #4
0
 def welcome_message(self, lang = None):
     """ returns string of welcome message """
     log_debug(1, "lang: %s" % lang)
     if lang:
         cat.setlangs(lang)
     msg = _("Red Hat Satellite Welcome Message")
     # compress this one
     rhnFlags.set("compress_response", 1)
     return msg
 def setlang(self, lang, domain):
     """
     An entry point for setting the language for the current sesstion
     """
     self.lang = lang
     self.domain = domain
     cat.set(domain=domain)
     # If the language presented by the client does not exist, the
     # translation object falls back to printing the original string, which
     # is pretty much the same as translating to en
     cat.setlangs(self.lang)
     log_debug(3, self.lang, self.domain)
Beispiel #6
0
 def setlang(self, lang, domain):
     """
     An entry point for setting the language for the current sesstion
     """
     self.lang = lang
     self.domain = domain
     cat.set(domain=domain)
     # If the language presented by the client does not exist, the
     # translation object falls back to printing the original string, which
     # is pretty much the same as translating to en
     cat.setlangs(self.lang)
     log_debug(3, self.lang, self.domain)