Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit 172250c8a48f93a1356e70b1f23fecf5bb2c3627

  • avatar
  • Sebastian Silva <sebastian @somos…car.org>
  • Sun May 26 16:26:37 EDT 2013
Fix glitch for locales in plugin
  
7070@babel.localeselector
7171def get_locale():
7272 global WWW
73 if 'localhost' in request.host:
73 if ('localhost' in request.host) or ('127.0.0.1' in request.host):
7474 # we're probably embedded, get locale from env
7575 lang = locale.getdefaultlocale()[0].split('_')[0]
7676 logging.debug('Locale from env: %s' % lang)