From a64717c7e82d131103e47f4f589f36da6c9c06fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sat, 28 May 2016 11:30:49 +0200 Subject: [PATCH] hobo: initialize size language (#11107) --- wcs/ctl/check_hobos.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcs/ctl/check_hobos.py b/wcs/ctl/check_hobos.py index 8fe1f31..6cbb6fd 100644 --- a/wcs/ctl/check_hobos.py +++ b/wcs/ctl/check_hobos.py @@ -133,6 +133,8 @@ class CmdCheckHobos(Command): pub.cfg['misc'] = {} pub.cfg['misc']['sitename'] = service.get('title').encode('utf-8') pub.cfg['misc']['frontoffice-url'] = service.get('base_url').encode('utf-8') + if not pub.cfg.get('language'): + pub.cfg['language'] = {'language': 'fr'} pub.write_cfg() def update_profile(self, profile, pub): -- 2.8.1