networks: Better explain auto/shared connections

This commit is contained in:
Sunil Mohan Adapa 2016-06-02 17:26:29 +05:30 committed by James Valleroy
parent 4865a64d2b
commit 4f634b86e2
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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')])