Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #133 from usableprivacy/setup-ipv6-message
Browse files Browse the repository at this point in the history
Added dedicated IPv6 setup messages, closes #125
  • Loading branch information
markushuber authored May 18, 2018
2 parents 0931d4e + 12ba284 commit 63e20e0
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 10 deletions.
Binary file modified upribox_interface/setup/locale/en/LC_MESSAGES/django.mo
Binary file not shown.
33 changes: 24 additions & 9 deletions upribox_interface/setup/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-04-19 19:05+0000\n"
"POT-Creation-Date: 2018-05-18 07:49+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand All @@ -35,15 +35,30 @@ msgstr ""
"\"upribox\" WLAN. Alternatively, you can complete the setup of your upribox "
"manually by <a href=\"%(help)s\">configuring DHCP</a>."

#: setup/templates/setup.html:26 setup/templates/setup.html:33
#: setup/templates/setup.html:26 setup/templates/setup.html:35
#: setup/templates/setup.html:42
msgid "Geräteübersicht"
msgstr "Device Overview"

#: setup/templates/setup.html:30
msgid ""
"\n"
" <p> Eine IPv6-fähige Internetverbindung wurde erkannt. Die "
"upribox ist über das WLAN \"upribox\" verfügbar, der automatische Modus "
"wurde nicht aktiviert. </p>\n"
" "
msgstr ""
"\n"
" <p> You Internet connection is IPv6-enabled. Use the "
"upribox WiFi \"upribox\", the automatic modus "
"has not been activated. </p>\n"
" "

#: setup/templates/setup.html:39
msgid "Ihre upribox wurde erfolgreich eingerichtet!"
msgstr "Your upribox has been successfully set up!"

#: setup/templates/setup.html:38
#: setup/templates/setup.html:47
msgid ""
"\n"
" <p> Die upribox verfügt derzeit über keine Internetverbindung. "
Expand All @@ -56,7 +71,7 @@ msgstr ""
"sure the upribox is connected to your home network.</p>\n"
" "

#: setup/templates/setup.html:43
#: setup/templates/setup.html:52
#, python-format
msgid ""
"\n"
Expand All @@ -74,22 +89,22 @@ msgstr ""
" Is the page reachable? </p>\n"
" "

#: setup/templates/setup.html:47
#: setup/templates/setup.html:56
msgid "Ja"
msgstr "Yes"

#: setup/templates/setup.html:47
#: setup/templates/setup.html:56
msgid "Nein"
msgstr "No"

#: setup/templates/setup.html:49
#: setup/templates/setup.html:58
msgid "Bitte warten, das Setup wird gestartet."
msgstr "Please wait, while the setup is being started."

#: setup/templates/setup.html:54
#: setup/templates/setup.html:63
msgid "Es ist leider ein Fehler während des Setups der upribox aufgetreten."
msgstr "Unfortunately, an error occurred while setting up the upribox."

#: setup/templates/setup.html:54
#: setup/templates/setup.html:63
msgid "Bitte versuchen Sie es erneut"
msgstr "Please try again"
9 changes: 9 additions & 0 deletions upribox_interface/setup/templates/setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ <h1>{% trans "Einrichtung der upribox" %}</h1>
{% endblocktrans %}
</div>

<button onclick="location.href='{% url 'upri_devices' %}';"> {% trans "Geräteübersicht" %} </button>
{% elif phase == "ipv6"%}
<div class="icon i-setup-failed"> </div>
<div class="setup-text">
{% blocktrans %}
<p> Eine IPv6-fähige Internetverbindung wurde erkannt. Die upribox ist über das WLAN "upribox" verfügbar, der automatische Modus wurde nicht aktiviert. </p>
{% endblocktrans %}
</div>

<button onclick="location.href='{% url 'upri_devices' %}';"> {% trans "Geräteübersicht" %} </button>
{% elif phase == "success"%}
<div class="icon i-setup-successful"></div>
Expand Down
5 changes: 4 additions & 1 deletion upribox_interface/setup/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ def setup_failed(request):
phase = "failed"
context = {}

if info.check_ipv6():
phase = "ipv6"

_setup_redis(phase)

if not info.check_ipv6():
Expand All @@ -85,7 +88,7 @@ def setup_failed(request):
# context.update({'message': True})

context.update({
'phase': phase # init, failed, success
'phase': phase # init, failed, ipv6, success
})
return render(request, "setup.html", context)

Expand Down

0 comments on commit 63e20e0

Please sign in to comment.