mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
networks: Better explain auto/shared connections
This commit is contained in:
parent
4865a64d2b
commit
4f634b86e2
@ -17,10 +17,11 @@
|
|||||||
|
|
||||||
from django import forms
|
from django import forms
|
||||||
from django.core import validators
|
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 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')
|
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')])
|
choices=[('external', 'External'), ('internal', 'Internal')])
|
||||||
ipv4_method = forms.ChoiceField(
|
ipv4_method = forms.ChoiceField(
|
||||||
label=_('IPv4 Addressing Method'),
|
label=_('IPv4 Addressing Method'),
|
||||||
help_text=_('"Shared" method will start a DHCP server and "Automatic" '
|
help_text=format_lazy(
|
||||||
'method will acquire configuration from a DHCP server.'),
|
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)'),
|
choices=[('auto', 'Automatic (DHCP)'),
|
||||||
('shared', 'Shared'),
|
('shared', 'Shared'),
|
||||||
('manual', 'Manual')])
|
('manual', 'Manual')])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user