Skip to content

Commit

Permalink
mpsk: Fix some translation issues
Browse files Browse the repository at this point in the history
- Add transalations for creating and editing mpsk clients.
- Fix singular/plural typos
- Add examples for devices incapable of WPA-Enterprise in german
  • Loading branch information
hw0lff committed Jan 23, 2025
1 parent 9ff8922 commit 32b756b
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 16 deletions.
12 changes: 9 additions & 3 deletions sipa/templates/usersuite/_index_status.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,16 @@ <h2 id="hot-buttons">{{ _("Häufige Aktionen") }}</h2>
</div>

<div>
{% if current_user.mpsk_clients %}
<a href="{{ url_for('.view_mpsk') }}">Create clients</a>
{% if not current_user.mpsk_clients %}
<a href="{{ url_for('.view_mpsk') }}" class="btn btn-outline-secondary" title="{{ _('Erstellen IOT Geräte') }}">
<span class="bi-wifi"></span>
{{ _('Erstellen IOT Geräte') }}
</a>
{% else %}
<a href="{{ url_for('.view_mpsk') }}" class="btn btn-outline-secondary" title="{{ _('Editieren IOT Geräte') }}">Clients </a>
<a href="{{ url_for('.view_mpsk') }}" class="btn btn-outline-secondary" title="{{ _('Editieren IOT Geräte') }}">
<span class="bi-wifi"></span>
{{ _('Editieren IOT Geräte') }}
</a>
{% endif %}
</div>

Expand Down
Binary file modified sipa/translations/de/LC_MESSAGES/messages.mo
Binary file not shown.
9 changes: 6 additions & 3 deletions sipa/translations/de/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2025-01-23 13:17+0100\n"
"POT-Creation-Date: 2025-01-23 13:44+0100\n"
"PO-Revision-Date: 2019-09-10 15:06+0200\n"
"Last-Translator: \n"
"Language: de\n"
Expand Down Expand Up @@ -476,7 +476,7 @@ msgid "WLAN MPSK Clients"
msgstr ""

msgid "Für Geräte die kein WPA-Enterprise Unterstützen"
msgstr ""
msgstr "Für Geräte die kein WPA-Enterprise Unterstützen (PS4, Smart Geräte, ...)"

msgid "MySQL Datenbank"
msgstr ""
Expand Down Expand Up @@ -919,8 +919,11 @@ msgstr ""
msgid "hier"
msgstr ""

msgid "Erstellen IOT Geräte"
msgstr "IOT Geräte anlegen"

msgid "Editieren IOT Geräte"
msgstr ""
msgstr "IOT Geräte editieren"

msgid "Kontaktformular"
msgstr ""
Expand Down
Binary file modified sipa/translations/en/LC_MESSAGES/messages.mo
Binary file not shown.
25 changes: 15 additions & 10 deletions sipa/translations/en/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,19 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Sipa\n"
"Project-Id-Version: Sipa\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2025-01-22 23:35+0100\n"
"POT-Creation-Date: 2025-01-23 13:44+0100\n"
"PO-Revision-Date: 2025-01-22 23:35+0100\n"
"Last-Translator: Lukas Juhrich <[email protected]>\n"
"Language-Team: \n"
"Language: en\n"
"Language-Team: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Generated-By: Babel 2.13.1\n"
"X-Source-Language: de\n"
"X-Generator: Poedit 3.5\n"
"X-Source-Language: de"

msgid "Kleinbuchstaben (a-z)"
msgstr "lower case letters (a-z)"
Expand Down Expand Up @@ -830,11 +829,13 @@ msgstr "Older"
msgid "Achtung:"
msgstr "Attention:"

msgid "Hier wird dir\n"
msgid ""
"Hier wird dir\n"
" nicht mit deinem Anschluss geholfen! Dieses Formular ist\n"
" nur für die Kommunikation mit unseren Partnern gedacht. Bei\n"
" Missbrauch kann dein Account gesperrt werden."
msgstr "Here, nobody will help you with your connection! This form is reserved for communication with our partners.\n"
msgstr ""
"Here, nobody will help you with your connection! This form is reserved for communication with our partners.\n"
"Abuse may be punished by blocking your account."

msgid "Deine Nutzer-ID lautet"
Expand Down Expand Up @@ -922,8 +923,11 @@ msgstr "You need a WiFi password first. Create one"
msgid "hier"
msgstr "over here"

msgid "Erstellen IOT Geräte"
msgstr "Create IOT devices"

msgid "Editieren IOT Geräte"
msgstr "edit IOT devices"
msgstr "Edit IOT devices"

msgid "Kontaktformular"
msgstr "Contact form"
Expand Down Expand Up @@ -1037,7 +1041,7 @@ msgid "Bitte gehe sicher, dass es sich um die WLAN MAC-Adresse deines Gerätes h
msgstr "Please make sure that it is the devices WiFi MAC address!"

msgid "MPSK WLAN Geräte"
msgstr "MPSK WiFi device"
msgstr "MPSK WiFi devices"

msgid "Greät"
msgstr "Device"
Expand Down Expand Up @@ -1176,3 +1180,4 @@ msgstr ""

#~ msgid "Wi-Fi MAC"
#~ msgstr "New Wi-Fi MAC"

0 comments on commit 32b756b

Please sign in to comment.