code: def set_application_language(params):
      
      lang = params.get('config', 'language', None)
      if lang:
          set_locale(lang)
          set_translation(lang)
docs: Set the locale and translation for a pywws program.
  
      This function reads the language from the configuration file, then
      calls :func:`set_locale` and :func:`set_translation`.
  
      :param params: a :class:`pywws.storage.params` object.
  
      :type params: object