1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00

Add link to printable ASCII chars for the corresponding WPA2 password error (close #9)

This commit is contained in:
Julien VAUBOURG 2015-07-25 00:37:00 +02:00
parent 3ed39d684b
commit 721a2d979a
4 changed files with 162 additions and 6 deletions

View file

@ -218,7 +218,11 @@ dispatch_put('/settings', function() {
}
if($ssid['wifi_secure'] && preg_match('/[^[:print:]]/', $ssid['wifi_passphrase'])) {
throw new Exception(_('Only printable ASCII characters are permitted in your password'));
$msg = _('Only <LINK:ASCII>printable ASCII characters</LINK:ASCII> are permitted in your password');
$msg = str_replace('<LINK:ASCII>', '<a href="https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/ASCII_full.svg/217px-ASCII_full.svg.png" class="alert-link">', $msg);
$msg = str_replace('</LINK:ASCII>', '</a>', $msg);
throw new Exception($msg);
}
if(!$wifi_device_exists) {

View file

@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-07-24 23:35+0200\n"
"PO-Revision-Date: 2015-07-24 23:37+0100\n"
"POT-Creation-Date: 2015-07-25 00:23+0200\n"
"PO-Revision-Date: 2015-07-25 00:33+0100\n"
"Last-Translator: root <root@ustelo>\n"
"Language-Team: French\n"
"Language: fr\n"
@ -104,7 +104,7 @@ msgstr "Confirmer"
msgid "Save and reload"
msgstr "Sauvegarder et recharger"
#: sources/views/_ssid.html.php:3
#: sources/views/_ssid.html.php:3 sources/controller.php:285
msgid "Hotspot"
msgstr "Point d'accès"
@ -192,3 +192,81 @@ msgstr "Préfixe NAT (/24')"
#: sources/views/_ssid.html.php:105
msgid "Delete"
msgstr "Supprimer"
#: sources/controller.php:195
msgid "All Wifi names must be unique"
msgstr "Tous les noms de de WiFi doivent être uniques"
#: sources/controller.php:201
msgid "All IPv4 NAT prefixes must be unique"
msgstr "Tous les préfixes NAT doivent être uniques"
#: sources/controller.php:207
msgid "All IPv6 delegated prefixes must be unique"
msgstr "Tous les préfixes IPv6 délégués doivent être uniques"
#: sources/controller.php:213
msgid "Your Wifi Hotspot needs a name and a password"
msgstr "Votre point d'accès doit avoir un nom et un mot de passe"
#: sources/controller.php:217
msgid "Your password must from 8 to 63 characters (WPA2 passphrase)"
msgstr ""
"Votre mot de passe doit avoir entre 8 et 63 caractères (passphrase WPA2)"
#: sources/controller.php:221
msgid ""
"Only <LINK:ASCII>printable ASCII characters</LINK:ASCII> are permitted in "
"your password"
msgstr ""
"Seuls des <LINK:ASCII>caractères ASCII imprimables</LINK:ASCII> sont "
"autorisés dans votre mot de passe"
#: sources/controller.php:229
msgid "The wifi antenna interface seems not exist on the system"
msgstr "L'interface de l'antenne WiFi ne semble pas exister sur le système"
#: sources/controller.php:236
msgid "The IPv6 Delegated Prefix format looks bad"
msgstr "Le format du préfixe IPv6 délégué ne semble pas correct"
#: sources/controller.php:250
msgid "The format of the first IPv6 DNS Resolver looks bad"
msgstr "Le format du premier résolveur DNS IPv6 ne semble pas correct"
#: sources/controller.php:259
msgid "The format of the second IPv6 DNS Resolver looks bad"
msgstr "Le format du second résolveur DNS IPv6 ne semble pas correct"
#: sources/controller.php:267
msgid "The format of the first IPv4 DNS Resolver looks bad"
msgstr "Le format du premier résolveur DNS IPv4 ne semble pas correct"
#: sources/controller.php:271
msgid "The format of the second IPv4 DNS Resolver looks bad"
msgstr "Le format du second résolveur DNS IPv4 ne semble pas correct"
#: sources/controller.php:275
msgid "The format of the IPv4 NAT Prefix (/24) looks bad : x.x.x expected)"
msgstr ""
"Le format du préfixe NAT IPv4 (/24) ne semble pas correct : x.x.x.x attendu)"
#: sources/controller.php:279
msgid "The IPv4 NAT Prefix must be from a private range"
msgstr "Le préfixe NAT IPv4 doit correspondre à une plage privée"
#: sources/controller.php:285
msgid "configuration not updated"
msgstr "configuration non-mise à jour"
#: sources/controller.php:313
msgid "Configuration updated and service successfully reloaded"
msgstr "Configuration mise à jour et service rechargé avec succès"
#: sources/controller.php:315
msgid "Configuration updated but service reload failed"
msgstr "Configuration mise à jour mais le rechargement du service a échoué"
#: sources/controller.php:319
msgid "Service successfully disabled"
msgstr "Service désactivé avec succès"

View file

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-07-24 23:35+0200\n"
"POT-Creation-Date: 2015-07-25 00:23+0200\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"
@ -98,7 +98,7 @@ msgstr ""
msgid "Save and reload"
msgstr ""
#: sources/views/_ssid.html.php:3
#: sources/views/_ssid.html.php:3 sources/controller.php:285
msgid "Hotspot"
msgstr ""
@ -179,3 +179,77 @@ msgstr ""
#: sources/views/_ssid.html.php:105
msgid "Delete"
msgstr ""
#: sources/controller.php:195
msgid "All Wifi names must be unique"
msgstr ""
#: sources/controller.php:201
msgid "All IPv4 NAT prefixes must be unique"
msgstr ""
#: sources/controller.php:207
msgid "All IPv6 delegated prefixes must be unique"
msgstr ""
#: sources/controller.php:213
msgid "Your Wifi Hotspot needs a name and a password"
msgstr ""
#: sources/controller.php:217
msgid "Your password must from 8 to 63 characters (WPA2 passphrase)"
msgstr ""
#: sources/controller.php:221
msgid ""
"Only <LINK:ASCII>printable ASCII characters</LINK:ASCII> are permitted in "
"your password"
msgstr ""
#: sources/controller.php:229
msgid "The wifi antenna interface seems not exist on the system"
msgstr ""
#: sources/controller.php:236
msgid "The IPv6 Delegated Prefix format looks bad"
msgstr ""
#: sources/controller.php:250
msgid "The format of the first IPv6 DNS Resolver looks bad"
msgstr ""
#: sources/controller.php:259
msgid "The format of the second IPv6 DNS Resolver looks bad"
msgstr ""
#: sources/controller.php:267
msgid "The format of the first IPv4 DNS Resolver looks bad"
msgstr ""
#: sources/controller.php:271
msgid "The format of the second IPv4 DNS Resolver looks bad"
msgstr ""
#: sources/controller.php:275
msgid "The format of the IPv4 NAT Prefix (/24) looks bad : x.x.x expected)"
msgstr ""
#: sources/controller.php:279
msgid "The IPv4 NAT Prefix must be from a private range"
msgstr ""
#: sources/controller.php:285
msgid "configuration not updated"
msgstr ""
#: sources/controller.php:313
msgid "Configuration updated and service successfully reloaded"
msgstr ""
#: sources/controller.php:315
msgid "Configuration updated but service reload failed"
msgstr ""
#: sources/controller.php:319
msgid "Service successfully disabled"
msgstr ""