networks: Better explain auto/shared connections

This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2016-06-07 08:12:25 -04:00
1 parent 4865a64d2b
commit 4f634b86e2
1 file changed
+10 -4
+10 -4
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')])