mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
Merge pull request #427 from jvalleroy/dynamicdns-string-updates
dynamicdns source string corrections
This commit is contained in:
commit
9b4497212d
@ -32,20 +32,20 @@ title = _('Dynamic DNS Client')
|
|||||||
|
|
||||||
description = [
|
description = [
|
||||||
format_lazy(
|
format_lazy(
|
||||||
_('If your internet provider changes your IP address periodic '
|
_('If your internet provider changes your IP address periodically '
|
||||||
'(i.e. every 24h) it may be hard for others to find you in the '
|
'(i.e. every 24h), it may be hard for others to find you on the '
|
||||||
'WEB. And for this reason nobody may find the services which are '
|
'internet. This will prevent others from finding services which are '
|
||||||
'provided by {box_name}, such as ownCloud.'),
|
'provided by this {box_name}.'),
|
||||||
box_name=_(cfg.box_name)),
|
box_name=_(cfg.box_name)),
|
||||||
|
|
||||||
_('The solution is to assign a DNS name to your IP address and '
|
_('The solution is to assign a DNS name to your IP address and '
|
||||||
'update the DNS name every time your IP is changed by your '
|
'update the DNS name every time your IP is changed by your '
|
||||||
'Internet provider. Dynamic DNS allows you to push your current '
|
'internet provider. Dynamic DNS allows you to push your current '
|
||||||
'public IP address to an '
|
'public IP address to a '
|
||||||
'<a href=\'http://gnudip2.sourceforge.net/\' target=\'_blank\'> '
|
'<a href=\'http://gnudip2.sourceforge.net/\' target=\'_blank\'> '
|
||||||
'gnudip </a> server. Afterwards the Server will assign your DNS name '
|
'GnuDIP</a> server. Afterwards, the server will assign your DNS name '
|
||||||
'with the new IP and if someone from the Internet asks for your DNS '
|
'to the new IP, and if someone from the Internet asks for your DNS '
|
||||||
'name he will get your current IP answered.')
|
'name, they will get a response with your current IP address.')
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -65,7 +65,7 @@ class ConfigureForm(forms.Form):
|
|||||||
'see the update URL templates of the example providers.')
|
'see the update URL templates of the example providers.')
|
||||||
help_services = \
|
help_services = \
|
||||||
ugettext_lazy('Please choose an update protocol according to your '
|
ugettext_lazy('Please choose an update protocol according to your '
|
||||||
'provider. If your provider does not support the GnudIP '
|
'provider. If your provider does not support the GnuDIP '
|
||||||
'protocol or your provider is not listed you may use the '
|
'protocol or your provider is not listed you may use the '
|
||||||
'update URL of your provider.')
|
'update URL of your provider.')
|
||||||
help_server = \
|
help_server = \
|
||||||
@ -73,7 +73,7 @@ class ConfigureForm(forms.Form):
|
|||||||
'"https://example.com/") but only the hostname of the '
|
'"https://example.com/") but only the hostname of the '
|
||||||
'GnuDIP server (like "example.com").')
|
'GnuDIP server (like "example.com").')
|
||||||
help_domain = format_lazy(
|
help_domain = format_lazy(
|
||||||
ugettext_lazy('The public domain name you want use to reach your '
|
ugettext_lazy('The public domain name you want to use to reach your '
|
||||||
'{box_name}.'), box_name=ugettext_lazy(cfg.box_name))
|
'{box_name}.'), box_name=ugettext_lazy(cfg.box_name))
|
||||||
help_disable_ssl = \
|
help_disable_ssl = \
|
||||||
ugettext_lazy('Use this option if your provider uses self signed '
|
ugettext_lazy('Use this option if your provider uses self signed '
|
||||||
@ -83,18 +83,18 @@ class ConfigureForm(forms.Form):
|
|||||||
'will be used for HTTP basic authentication.')
|
'will be used for HTTP basic authentication.')
|
||||||
help_secret = \
|
help_secret = \
|
||||||
ugettext_lazy('Leave this field empty if you want to keep your '
|
ugettext_lazy('Leave this field empty if you want to keep your '
|
||||||
'previous configured password.')
|
'current password.')
|
||||||
help_ip_url = format_lazy(
|
help_ip_url = format_lazy(
|
||||||
ugettext_lazy('Optional Value. If your {box_name} is not connected '
|
ugettext_lazy('Optional Value. If your {box_name} is not connected '
|
||||||
'directly to the Internet (i.e. connected to a NAT '
|
'directly to the Internet (i.e. connected to a NAT '
|
||||||
'router) this URL is used to figure out the real '
|
'router) this URL is used to determine the real '
|
||||||
'Internet IP. The URL should simply return the IP where '
|
'IP address. The URL should simply return the IP where '
|
||||||
'the client comes from (example: '
|
'the client comes from (example: '
|
||||||
'http://myip.datasystems24.de).'),
|
'http://myip.datasystems24.de).'),
|
||||||
box_name=ugettext_lazy(cfg.box_name))
|
box_name=ugettext_lazy(cfg.box_name))
|
||||||
help_user = \
|
help_user = \
|
||||||
ugettext_lazy('You should have been requested to select a username '
|
ugettext_lazy('The username that was used when the account was '
|
||||||
'when you created the account.')
|
'created.')
|
||||||
|
|
||||||
"""ToDo: sync this list with the html template file"""
|
"""ToDo: sync this list with the html template file"""
|
||||||
provider_choices = (
|
provider_choices = (
|
||||||
@ -107,12 +107,12 @@ class ConfigureForm(forms.Form):
|
|||||||
enabled = forms.BooleanField(label=ugettext_lazy('Enable Dynamic DNS'),
|
enabled = forms.BooleanField(label=ugettext_lazy('Enable Dynamic DNS'),
|
||||||
required=False)
|
required=False)
|
||||||
|
|
||||||
service_type = forms.ChoiceField(label=ugettext_lazy('Service type'),
|
service_type = forms.ChoiceField(label=ugettext_lazy('Service Type'),
|
||||||
help_text=help_services,
|
help_text=help_services,
|
||||||
choices=provider_choices)
|
choices=provider_choices)
|
||||||
|
|
||||||
dynamicdns_server = TrimmedCharField(
|
dynamicdns_server = TrimmedCharField(
|
||||||
label=ugettext_lazy('GnudIP Server Address'),
|
label=ugettext_lazy('GnuDIP Server Address'),
|
||||||
required=False,
|
required=False,
|
||||||
help_text=help_server,
|
help_text=help_server,
|
||||||
validators=[
|
validators=[
|
||||||
@ -150,7 +150,7 @@ class ConfigureForm(forms.Form):
|
|||||||
required=False)
|
required=False)
|
||||||
|
|
||||||
dynamicdns_ipurl = TrimmedCharField(
|
dynamicdns_ipurl = TrimmedCharField(
|
||||||
label=ugettext_lazy('IP check URL'),
|
label=ugettext_lazy('IP Check URL'),
|
||||||
required=False,
|
required=False,
|
||||||
help_text=help_ip_url,
|
help_text=help_ip_url,
|
||||||
validators=[
|
validators=[
|
||||||
@ -176,7 +176,7 @@ class ConfigureForm(forms.Form):
|
|||||||
# Check if gnudip server or update URL is filled
|
# Check if gnudip server or update URL is filled
|
||||||
if not dynamicdns_update_url and not dynamicdns_server:
|
if not dynamicdns_update_url and not dynamicdns_server:
|
||||||
raise forms.ValidationError(
|
raise forms.ValidationError(
|
||||||
_('Please provide update URL or a GnuDIP Server'))
|
_('Please provide update URL or a GnuDIP server'))
|
||||||
|
|
||||||
if dynamicdns_server and not dynamicdns_user:
|
if dynamicdns_server and not dynamicdns_user:
|
||||||
raise forms.ValidationError(_('Please provide GnuDIP username'))
|
raise forms.ValidationError(_('Please provide GnuDIP username'))
|
||||||
@ -223,10 +223,10 @@ def statuspage(request):
|
|||||||
logger.info('Not behind a NAT')
|
logger.info('Not behind a NAT')
|
||||||
|
|
||||||
if nat_unchecked:
|
if nat_unchecked:
|
||||||
logger.info('Did not check if we are behind a NAT')
|
logger.info('Did not check if behind a NAT')
|
||||||
|
|
||||||
return TemplateResponse(request, 'dynamicdns_status.html',
|
return TemplateResponse(request, 'dynamicdns_status.html',
|
||||||
{'title': _('Status of Dynamic DNS'),
|
{'title': _('Dynamic DNS Status'),
|
||||||
'no_nat': no_nat,
|
'no_nat': no_nat,
|
||||||
'nat_unchecked': nat_unchecked,
|
'nat_unchecked': nat_unchecked,
|
||||||
'timer': timer,
|
'timer': timer,
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
If you are looking for a free dynamic DNS account, you may find
|
If you are looking for a free dynamic DNS account, you may find
|
||||||
a free GnuDIP service at <a href='http://gnudip.datasystems24.net'
|
a free GnuDIP service at <a href='http://gnudip.datasystems24.net'
|
||||||
target='_blank'>gnudip.datasystems24.net</a> or you may find
|
target='_blank'>gnudip.datasystems24.net</a> or you may find
|
||||||
free update URL based services on
|
free update URL based services at
|
||||||
<a href='http://freedns.afraid.org/' target='_blank'>
|
<a href='http://freedns.afraid.org/' target='_blank'>
|
||||||
freedns.afraid.org</a>.
|
freedns.afraid.org</a>.
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
@ -34,9 +34,9 @@
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
{% blocktrans trimmed %}
|
{% blocktrans trimmed %}
|
||||||
If your {{ box_name }} is connected behind some NAT router, don't forget
|
If your {{ box_name }} is connected behind a NAT router, don't forget
|
||||||
to add port forwarding (i.e. forward some standard ports like 80 and
|
to add port forwarding for standard ports, including TCP port 80 (HTTP)
|
||||||
443).
|
and TCP port 443 (HTTPS).
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@ -27,18 +27,18 @@
|
|||||||
<p>
|
<p>
|
||||||
{% if nat_unchecked %}
|
{% if nat_unchecked %}
|
||||||
{% blocktrans trimmed %}
|
{% blocktrans trimmed %}
|
||||||
NAT type not detected yet, if you do not provide a "IP check
|
NAT type was not detected yet. If you do not provide an "IP Check
|
||||||
URL" we will not detect a NAT type.
|
URL", we will not detect a NAT type.
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if no_nat %}
|
{% if no_nat %}
|
||||||
{% trans "Direct connection to the Internet." %}
|
{% trans "Direct connection to the internet." %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% blocktrans trimmed %}
|
{% blocktrans trimmed %}
|
||||||
Behind NAT. This means that Dynamic DNS service will poll
|
Behind NAT. This means that Dynamic DNS service will poll
|
||||||
the "IP check URL" for changes (the "IP check URL" entry is
|
the "IP Check URL" for changes (the "IP Check URL" entry is
|
||||||
needed for this - otherwise IP changes will not be
|
needed for this, otherwise IP changes will not be
|
||||||
detected). In case the WAN IP changes, it may take up to
|
detected). In case the WAN IP changes, it may take up to
|
||||||
{{ timer }} minutes until your DNS entry is updated.
|
{{ timer }} minutes until your DNS entry is updated.
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@ -87,7 +87,7 @@ def show(request, uuid):
|
|||||||
device, connection_status['wireless']['ssid'])
|
device, connection_status['wireless']['ssid'])
|
||||||
|
|
||||||
return TemplateResponse(request, 'connection_show.html',
|
return TemplateResponse(request, 'connection_show.html',
|
||||||
{'title': _('Show Connection information'),
|
{'title': _('Show Connection Information'),
|
||||||
'subsubmenu': subsubmenu,
|
'subsubmenu': subsubmenu,
|
||||||
'connection': connection_status,
|
'connection': connection_status,
|
||||||
'active_connection': active_connection_status,
|
'active_connection': active_connection_status,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user