From 4f634b86e2343fb26ddafdd2b5b2c344cd5a45ca Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 2 Jun 2016 17:26:29 +0530 Subject: [PATCH] networks: Better explain auto/shared connections --- plinth/modules/networks/forms.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/plinth/modules/networks/forms.py b/plinth/modules/networks/forms.py index 99db5f111..b4490c7a8 100644 --- a/plinth/modules/networks/forms.py +++ b/plinth/modules/networks/forms.py @@ -17,10 +17,11 @@ from django import forms from django.core import validators -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import ugettext_lazy as _, ugettext_lazy +from plinth import cfg from plinth import network -from plinth.utils import import_from_gi +from plinth.utils import format_lazy, import_from_gi nm = import_from_gi('NM', '1.0') @@ -47,8 +48,13 @@ available over this interfaces. Select Internal only for trusted networks.'), choices=[('external', 'External'), ('internal', 'Internal')]) ipv4_method = forms.ChoiceField( label=_('IPv4 Addressing Method'), - help_text=_('"Shared" method will start a DHCP server and "Automatic" ' - 'method will acquire configuration from a DHCP server.'), + help_text=format_lazy( + ugettext_lazy( + '"Automatic" method will make {box_name} acquire ' + 'configuration from this network making it a client. "Shared" ' + 'method will make {box_name} act as a router, configure ' + 'clients on this network and share its Internet connection.'), + box_name=ugettext_lazy(cfg.box_name)), choices=[('auto', 'Automatic (DHCP)'), ('shared', 'Shared'), ('manual', 'Manual')])