diff --git a/sources/controller.php b/sources/controller.php index cca8d23..e3c8f80 100644 --- a/sources/controller.php +++ b/sources/controller.php @@ -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 printable ASCII characters are permitted in your password'); + $msg = str_replace('', '', $msg); + $msg = str_replace('', '', $msg); + + throw new Exception($msg); } if(!$wifi_device_exists) { diff --git a/sources/i18n/fr_FR/LC_MESSAGES/localization.mo b/sources/i18n/fr_FR/LC_MESSAGES/localization.mo index a40f0d4..56b0ae6 100644 Binary files a/sources/i18n/fr_FR/LC_MESSAGES/localization.mo and b/sources/i18n/fr_FR/LC_MESSAGES/localization.mo differ diff --git a/sources/i18n/fr_FR/LC_MESSAGES/localization.po b/sources/i18n/fr_FR/LC_MESSAGES/localization.po index 775710c..3777170 100644 --- a/sources/i18n/fr_FR/LC_MESSAGES/localization.po +++ b/sources/i18n/fr_FR/LC_MESSAGES/localization.po @@ -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 \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 printable ASCII characters are permitted in " +"your password" +msgstr "" +"Seuls des caractères ASCII imprimables 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" diff --git a/sources/i18n/localization.pot b/sources/i18n/localization.pot index 9e31a37..5cc02f0 100644 --- a/sources/i18n/localization.pot +++ b/sources/i18n/localization.pot @@ -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 \n" "Language-Team: LANGUAGE \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 printable ASCII characters 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 ""