diff --git a/includes/admin.php b/includes/admin.php index ea2ede1f..8592b178 100755 --- a/includes/admin.php +++ b/includes/admin.php @@ -38,32 +38,32 @@ function DisplayAuthConfig($username, $password){
-
Configure Auth
+

showMessages(); ?>

- +
- +
- +
- +
diff --git a/includes/authenticate.php b/includes/authenticate.php old mode 100644 new mode 100755 diff --git a/includes/configure_client.php b/includes/configure_client.php index 4b1ede62..24eca808 100755 --- a/includes/configure_client.php +++ b/includes/configure_client.php @@ -145,7 +145,7 @@ function DisplayWPAConfig(){
-
Configure client
+

showMessages(); ?>

@@ -159,10 +159,10 @@ function DisplayWPAConfig(){ - - - - + + + + @@ -207,7 +207,7 @@ function DisplayWPAConfig(){
SSIDChannelSecurityPassphrase
- +
diff --git a/includes/dashboard.php b/includes/dashboard.php index 1f66542a..995c5c47 100755 --- a/includes/dashboard.php +++ b/includes/dashboard.php @@ -77,24 +77,24 @@ function DisplayDashboard(){
-
Dashboard
+

showMessages(); ?>

-

Interface Information

-
Interface Name
wlan0
-
IP Address

-
Subnet Mask

-
Mac Address


+

+
wlan0
+

+

+


-

Interface Statistics

-
Received Packets

-
Received Bytes


-
Transferred Packets

-
Transferred Bytes

+

+

+


+

+

@@ -102,14 +102,14 @@ function DisplayDashboard(){
-

Wireless Information

-
Connected To

-
AP Mac Address

-
Bitrate

-
Signal Level

-
Transmit Power

-
Frequency


-
Link Quality
+

+

+

+

+

+

+


+
-
+
'; + echo ''; } else { - echo ''; + echo ''; } ?> - + " onclick="document.location.reload(true)" />
- +
diff --git a/includes/dhcp.php b/includes/dhcp.php index 465d56e4..f65059f6 100755 --- a/includes/dhcp.php +++ b/includes/dhcp.php @@ -98,16 +98,15 @@ function DisplayDHCPConfig() {
-
Configure DHCP -
+

showMessages(); ?>

@@ -136,36 +135,36 @@ function DisplayDHCPConfig() {
- +
- +
- +
- +
- + " name="savedhcpdsettings" /> '; + echo ''; } else { - echo''; + echo''; } ?> @@ -175,20 +174,18 @@ function DisplayDHCPConfig() {

Client list

-
- Active DHCP leases -
+
- - - - - + + + + + @@ -213,7 +210,7 @@ function DisplayDHCPConfig() { - + diff --git a/includes/hostapd.php b/includes/hostapd.php index ece1a83d..46ca8aae 100755 --- a/includes/hostapd.php +++ b/includes/hostapd.php @@ -64,27 +64,27 @@ function DisplayHostAPDConfig(){
-
Configure hotspot
+

showMessages(); ?>

-

Basic settings

+

- + @@ -92,49 +92,49 @@ function DisplayHostAPDConfig(){
- +
- +
- +
-

Security settings

+

- +
- +
- +
-

Advanced settings

+

- + - - + " /> + " /> + " onclick="document.location.reload(true)" />
-
- -
+
+
+
+ +
+
+
diff --git a/includes/themes.php b/includes/themes.php old mode 100644 new mode 100755 index 44af3511..fb3850c0 --- a/includes/themes.php +++ b/includes/themes.php @@ -25,18 +25,18 @@ function DisplayThemeConfig(){
-
Change Theme
+
-

Theme settings

+

- - @@ -50,7 +50,7 @@ function DisplayThemeConfig(){
- + " onclick="document.location.reload(true)" />
diff --git a/index.php b/index.php index 1c1eb921..fcecd06f 100755 --- a/index.php +++ b/index.php @@ -43,7 +43,12 @@ define('RASPI_TORPROXY_CONFIG', '/etc/tor/torrc'); define('RASPI_OPENVPN_ENABLED', false ); define('RASPI_TORPROXY_ENABLED', false ); +// Locale settings +define('LOCALE_ROOT', 'locale'); +define('LOCALE_DOMAIN', 'messages'); + include_once( RASPI_CONFIG.'/raspap.php' ); +include_once( 'includes/locale.php'); include_once( 'includes/functions.php' ); include_once( 'includes/dashboard.php' ); include_once( 'includes/authenticate.php' ); @@ -84,7 +89,7 @@ $theme_url = 'dist/css/' . $theme; - Raspbian WiFi Configuration Portal + <?php echo _("Raspbian WiFi Configuration Portal"); ?> @@ -127,7 +132,7 @@ $theme_url = 'dist/css/' . $theme; - RaspAP Wifi Portal v1.2.2 +
@@ -136,35 +141,35 @@ $theme_url = 'dist/css/' . $theme; diff --git a/locale/en_US/LC_MESSAGES/messages.mo b/locale/en_US/LC_MESSAGES/messages.mo new file mode 100644 index 00000000..e9b8990d Binary files /dev/null and b/locale/en_US/LC_MESSAGES/messages.mo differ diff --git a/locale/en_US/LC_MESSAGES/messages.po b/locale/en_US/LC_MESSAGES/messages.po new file mode 100644 index 00000000..344d920d --- /dev/null +++ b/locale/en_US/LC_MESSAGES/messages.po @@ -0,0 +1,266 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR billzimmerman@gmail.com, 2017. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: 1.2.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-19 08:56+0000\n" +"PO-Revision-Date: 2017-10-23 9:50+0000\n" +"Last-Translator: Bill Zimmerman \n" +"Language-Team: \n" +"Language: en_US\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: index.php +msgid "RaspAP Wifi Configuration Portal" +msgstr "RaspAP Wifi Configuration Portal" + +msgid "Toggle navigation" +msgstr "Toggle navigation" + +msgid "RaspAP Wifi Portal v1.2.1" +msgstr "RaspAP Wifi Portal v1.2.1" + +msgid "Dashboard" +msgstr "Dashboard" + +msgid "Configure client" +msgstr "Configure client" + +msgid "Configure hotspot" +msgstr "Configure hotspot" + +msgid "Configure DHCP Server" +msgstr "Configure DHCP Server" + +msgid "Configure OpenVPN" +msgstr "Configure OpenVPN" + +msgid "Configure TOR proxy" +msgstr "Configure TOR proxy" + +msgid "Configure Auth" +msgstr "Configure Auth" + +msgid "Change Theme" +msgstr "Change Theme" + +msgid "System" +msgstr "System" + +#: includes/admin.php +msgid "New passwords do not match" +msgstr "New passwords do not match" + +msgid "Username must not be empty" +msgstr "Username must not be empty" + +msgid "Admin password updated" +msgstr "Admin password updated" + +msgid "Failed to update admin password" +msgstr "Failed to update admin password" + +msgid "Old password does not match" +msgstr "Old password does not match" + +msgid "Username" +msgstr "Username" + +msgid "Old password" +msgstr "Old password" + +msgid "New password" +msgstr "New password" + +msgid "Repeat new password" +msgstr "Repeat new password" + +#: includes/configure_client.php +msgid "Client settings" +msgstr "Client settings" + +msgid "SSID" +msgstr "SSID" + +msgid "Channel" +msgstr "Channel" + +msgid "Security" +msgstr "Security" + +msgid "Passphrase" +msgstr "Passphrase" + +msgid "Note: WEP access points appear as 'Open'. RaspAP does not currently support connecting to WEP" +msgstr "Note: WEP access points appear as 'Open'. RaspAP does not currently support connecting to WEP" + +#: includes/dashboard.php +msgid "Interface Information" +msgstr "Interface Information" + +msgid "Interface Name" +msgstr "Interface Name" + +msgid "IP Address" +msgstr "IP Address" + +msgid "Subnet Mask" +msgstr "Subnet Mask" + +msgid "Mac Address" +msgstr "Mac Address" + +msgid "Interface Statistics" +msgstr "Interface Statistics" + +msgid "Received Packets" +msgstr "Received Packets" + +msgid "Received Bytes" +msgstr "Received Bytes" + +msgid "Transferred Packets" +msgstr "Transferred Packets" + +msgid "Transferred Bytes" +msgstr "Transferred Bytes" + +msgid "Wireless Information" +msgstr "Wireless Information" + +msgid "Connected To" +msgstr "Connected To" + +msgid "AP Mac Address" +msgstr "AP Mac Address" + +msgid "Bitrate" +msgstr "Bitrate" + +msgid "Signal Level" +msgstr "Signal Level" + +msgid "Transmit Power" +msgstr "Transmit Power" + +msgid "Frequency" +msgstr "Frequency" + +msgid "Link Quality" +msgstr "Link Quality" + +msgid "Information provided by ifconfig and iwconfig" +msgstr "Information provided by ifconfig and iwconfig" + +#: includes/dhcp.php +msgid "Server settings" +msgstr "Server settings" + +msgid "Client list" +msgstr "Client list" + +msgid "Starting IP Address" +msgstr "Starting IP Address" + +msgid "Ending IP Address" +msgstr "Ending IP Address" + +msgid "Lease Time" +msgstr "Lease Time" + +msgid "Interval" +msgstr "Interval" + +msgid "Active DHCP leases" +msgstr "Active DHCP leases" + +msgid "Expire time" +msgstr "Expire time" + +msgid "MAC Address" +msgstr "MAC Address" + +msgid "Host name" +msgstr "Host name" + +msgid "Client ID" +msgstr "Client ID" + +msgid "Information provided by Dnsmasq" +msgstr "Information provided by Dnsmasq" + +msgid "Stop dnsmasq" +msgstr "Stop dnsmasq" + +msgid "Start dnsmasq" +msgstr "Start dnsmasq" + +#: includes/hostapd.php +msgid "Basic" +msgstr "Basic" + +msgid "Advanced" +msgstr "Advanced" + +msgid "Basic settings" +msgstr "Basic settings" + +msgid "Wireless Mode" +msgstr "Wireless Mode" + +msgid "Security settings" +msgstr "Security settings" + +msgid "Security type" +msgstr "Security type" + +msgid "Encryption Type" +msgstr "Encryption Type" + +msgid "PSK" +msgstr "PSK" + +msgid "Advanced settings" +msgstr "Advanced settings" + +msgid "Country Code" +msgstr "Country Code" + +msgid "Information provided by hostapd" +msgstr "Information provided by hostapd" + +#: includes/system.php +msgid "Hostname" +msgstr "Hostname" + +msgid "Pi Revision" +msgstr "Pi Revision" + +msgid "Uptime" +msgstr "Uptime" + +msgid "Memory Used" +msgstr "Memory Used" + +msgid "CPU Load" +msgstr "CPU Load" + +#: includes/themes.php +msgid "Theme settings" +msgstr "Theme settings" + +msgid "Select a theme" +msgstr "Select a theme" + +#: common form controls +msgid "Save settings" +msgstr "Save settings" + + diff --git a/locale/fr_FR/LC_MESSAGES/messages.mo b/locale/fr_FR/LC_MESSAGES/messages.mo new file mode 100644 index 00000000..3d9392ef Binary files /dev/null and b/locale/fr_FR/LC_MESSAGES/messages.mo differ diff --git a/locale/fr_FR/LC_MESSAGES/messages.po b/locale/fr_FR/LC_MESSAGES/messages.po new file mode 100644 index 00000000..fc3f427b --- /dev/null +++ b/locale/fr_FR/LC_MESSAGES/messages.po @@ -0,0 +1,264 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR billzimmerman@gmail.com, 2017. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: 1.2.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-19 08:56+0000\n" +"PO-Revision-Date: 2017-10-23 9:50+0000\n" +"Last-Translator: Bill Zimmerman \n" +"Language-Team: \n" +"Language: fr_FR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: index.php +msgid "RaspAP Wifi Configuration Portal" +msgstr "RaspAP Wifi Portail de Configuration" + +msgid "Toggle navigation" +msgstr "Toggle navigation" + +msgid "RaspAP Wifi Portal v1.2.1" +msgstr "RaspAP Wifi Portal v1.2.1" + +msgid "Dashboard" +msgstr "Tableau de bord" + +msgid "Configure client" +msgstr "Configurer le client" + +msgid "Configure hotspot" +msgstr "Configurer le hotspot" + +msgid "Configure DHCP" +msgstr "Configurer DHCP" + +msgid "Configure OpenVPN" +msgstr "Configurer OpenVPN" + +msgid "Configure TOR proxy" +msgstr "Configurer le proxy TOR" + +msgid "Configure Auth" +msgstr "Configurer l'authentification" + +msgid "Change Theme" +msgstr "Change le thème" + +msgid "System" +msgstr "Système" + +#: includes/admin.php +msgid "New passwords do not match" +msgstr "Les nouveaux mots de passe ne correspondent pas" + +msgid "Username must not be empty" +msgstr "Le nom d'utilisateur ne doit pas être vide" + +msgid "Admin password updated" +msgstr "Mot de passe admin modifié" + +msgid "Failed to update admin password" +msgstr "Modifier le mot de passe d'admin a échouéd" + +msgid "Old password does not match" +msgstr "L'ancien mot de passe ne correspond pas" + +msgid "Username" +msgstr "Nom d'utilisateur" + +msgid "Old password" +msgstr "Ancien mot de passe" + +msgid "New password" +msgstr "Nouveau mot de passe" + +msgid "Repeat new password" +msgstr "Répété le nouveau mot de passe" + +#: includes/configure_client.php +msgid "Client settings" +msgstr "Paramètres du client" + +msgid "SSID" +msgstr "SSID" + +msgid "Channel" +msgstr "Canal" + +msgid "Security" +msgstr "Sécurité" + +msgid "Passphrase" +msgstr "Phrase secrète" + +msgid "Note: WEP access points appear as 'Open'. RaspAP does not currently support connecting to WEP" +msgstr "Remarque: Les points d'accès WEP apparaissent comme 'ouverts'. RaspAP ne prend actuellement pas en charge la connexion à WEP" + +#: includes/dashboard.php +msgid "Interface Information" +msgstr "Informations d'interface" + +msgid "Interface Name" +msgstr "Nom de l'interface" + +msgid "IP Address" +msgstr "Adresse IP" + +msgid "Subnet Mask" +msgstr "Masque de sous-réseau" + +msgid "Mac Address" +msgstr "Adresse Mac" + +msgid "Interface Statistics" +msgstr "Statistiques d'interface" + +msgid "Received Packets" +msgstr "Paquets reçus" + +msgid "Received Bytes" +msgstr "Octets reçus" + +msgid "Transferred Packets" +msgstr "Paquets transférés" + +msgid "Transferred Bytes" +msgstr "Octets transférés" + +msgid "Wireless Information" +msgstr "Informations sans fil" + +msgid "Connected To" +msgstr "Connecté à" + +msgid "AP Mac Address" +msgstr "AP Mac Adresse" + +msgid "Bitrate" +msgstr "Bitrate" + +msgid "Signal Level" +msgstr "Niveau du signal" + +msgid "Transmit Power" +msgstr "Puissance de transmission" + +msgid "Frequency" +msgstr "La fréquence" + +msgid "Link Quality" +msgstr "Qualité de lien" + +msgid "Information provided by ifconfig and iwconfig" +msgstr "Informations fournies par ifconfig et iwconfig" + +#: includes/dhcp.php +msgid "Server settings" +msgstr "Paramètres du serveur" + +msgid "Client list" +msgstr "Liste des clients" + +msgid "Starting IP Address" +msgstr "Adresse IP de départ" + +msgid "Ending IP Address" +msgstr "Adresse IP de fin" + +msgid "Lease Time" +msgstr "Temps de bail" + +msgid "Interval" +msgstr "Intervalle" + +msgid "Active DHCP leases" +msgstr "Baux DHCP actifs" + +msgid "Expire time" +msgstr "Temps d'expiration" + +msgid "MAC Address" +msgstr "Adresse Mac" + +msgid "Host name" +msgstr "Nom d'hôte" + +msgid "Client ID" +msgstr "ID du client" + +msgid "Information provided by Dnsmasq" +msgstr "Informations fournies par Dnsmasq" + +msgid "Stop dnsmasq" +msgstr "Stop dnsmasq" + +msgid "Start dnsmasq" +msgstr "Commencer dnsmasq" + +#: includes/hostapd.php +msgid "Basic" +msgstr "De base" + +msgid "Advanced" +msgstr "Avancé" + +msgid "Basic settings" +msgstr "Paramètres de base" + +msgid "Wireless Mode" +msgstr "Mode sans fil" + +msgid "Security settings" +msgstr "Les paramètres de sécurité" + +msgid "Security type" +msgstr "Type de sécurité" + +msgid "Encryption Type" +msgstr "Type de chiffrement" + +msgid "PSK" +msgstr "PSK" + +msgid "Advanced settings" +msgstr "Réglages avancés" + +msgid "Country Code" +msgstr "Le code du pays" + +msgid "Information provided by hostapd" +msgstr "Informations fournies par hostapd" + +#: includes/system.php +msgid "Hostname" +msgstr "Nom d'hôte" + +msgid "Pi Revision" +msgstr "Pi Révision" + +msgid "Uptime" +msgstr "Durée de fonctionnent" + +msgid "Memory Used" +msgstr "Mémoire utilisée" + +msgid "CPU Load" +msgstr "Charge du processeur" + +#: includes/themes.php +msgid "Theme settings" +msgstr "Réglage des thèmes" + +msgid "Select a theme" +msgstr "Sélectionnez un thème" + +#: common form controls +msgid "Save settings" +msgstr "Enregistrer les paramètres" diff --git a/raspap.php b/raspap.php old mode 100644 new mode 100755
Expire timeMAC AddressIP AddressHost nameClient ID