From 48295abcccd3afb9e1cd75e9db0915a2c04da39a Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sat, 19 Dec 2015 18:31:37 -0500 Subject: [PATCH] Use ugettext_lazy during init of config and power modules. --- plinth/modules/config/config.py | 3 ++- plinth/modules/power/__init__.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plinth/modules/config/config.py b/plinth/modules/config/config.py index 8fbe984da..cd78025c1 100644 --- a/plinth/modules/config/config.py +++ b/plinth/modules/config/config.py @@ -149,7 +149,8 @@ def init(): domainname_services = None domain_added.send_robust(sender='config', domain_type='domainname', - name=domainname, description=_('Domain Name'), + name=domainname, + description=ugettext_lazy('Domain Name'), services=domainname_services) diff --git a/plinth/modules/power/__init__.py b/plinth/modules/power/__init__.py index 9557512ef..f8f4c4e56 100644 --- a/plinth/modules/power/__init__.py +++ b/plinth/modules/power/__init__.py @@ -19,7 +19,7 @@ Plinth module for power controls. """ -from django.utils.translation import ugettext as _ +from django.utils.translation import ugettext_lazy as _ from plinth import cfg