diff --git a/po/com.github.ronnydo.wammer.pot b/po/com.github.ronnydo.wammer.pot index 8ab2a1e..22caef0 100644 --- a/po/com.github.ronnydo.wammer.pot +++ b/po/com.github.ronnydo.wammer.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: com.github.ronnydo.wammer\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-01-12 10:27+0100\n" +"POT-Creation-Date: 2020-05-19 22:01+0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/po/de.po b/po/de.po index a90fc13..808f90d 100644 --- a/po/de.po +++ b/po/de.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.github.ronnydo.wammer\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-01-12 10:27+0100\n" +"POT-Creation-Date: 2020-05-19 22:01+0400\n" "PO-Revision-Date: 2018-04-26 01:59-0500\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -89,7 +89,8 @@ msgid "" "country.\n" "You are using this software on your own risk!" msgstr "" -"Das Stören von Wi-Fi-Netzwerken verstößt in deinem Land möglicherweise gegen\n" +"Das Stören von Wi-Fi-Netzwerken verstößt in deinem Land möglicherweise " +"gegen\n" "bestimmte Gesetze oder Regularien. Du benutzt diese Software auf eigene " "Gefahr!" diff --git a/po/extra/fr.po b/po/extra/fr.po index 1a40d6f..3bc52ea 100644 --- a/po/extra/fr.po +++ b/po/extra/fr.po @@ -8,14 +8,15 @@ msgstr "" "Project-Id-Version: extra\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-03 10:30+0200\n" -"PO-Revision-Date: 2020-05-03 10:22+0200\n" -"Last-Translator: Nathan Bonnemains (@NathanBnm)\n" +"PO-Revision-Date: 2020-05-19 21:57+0400\n" +"Last-Translator: Andrey Kultyapov \n" "Language-Team: none\n" "Language: fr\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Poedit 2.2.3\n" #: data/com.github.ronnydo.wammer.desktop.in:3 #: data/com.github.ronnydo.wammer.appdata.xml.in:8 @@ -36,37 +37,16 @@ msgid "wammer;jammer;wifijammer;aircrack;" msgstr "wammer;brouilleur;brouilleur wifi;" #: data/com.github.ronnydo.wammer.appdata.xml.in:11 -msgid "" -"Wammer lets you kick out all clients in your WiFi network, so you can enjoy " -"its full bandwidth. Best part of the story: everything works fully " -"automatically!" -msgstr "" -"Wammer vous permet de déconnecter tous les clients connectés à votre ré" -"seau Wi-Fi, afin que vous puissiez profiter de toute la bande passante. La " -"meilleure partie de l'histoire : tout fonctionne de façon complétement " -"automatique !" +msgid "Wammer lets you kick out all clients in your WiFi network, so you can enjoy its full bandwidth. Best part of the story: everything works fully automatically!" +msgstr "Wammer vous permet de déconnecter tous les clients connectés à votre réseau Wi-Fi, afin que vous puissiez profiter de toute la bande passante. La meilleure partie de l'histoire : tout fonctionne de façon complétement automatique !" #: data/com.github.ronnydo.wammer.appdata.xml.in:12 -msgid "" -"In order to work Wammer needs the aircrack-ng installed and a compatible " -"WiFi device to work. For more information please visit the project's " -"homepage." -msgstr "" -"Afin de pouvoir fonctionner Wammer nécessite que aircrack-ng soit installé " -"et que le périphérique Wi-Fi soit compatible. Pour plus d'informations " -"veuillez consulter la page du projet." +msgid "In order to work Wammer needs the aircrack-ng installed and a compatible WiFi device to work. For more information please visit the project's homepage." +msgstr "Afin de pouvoir fonctionner Wammer nécessite que aircrack-ng soit installé et que le périphérique Wi-Fi soit compatible. Pour plus d'informations veuillez consulter la page du projet." #: data/com.github.ronnydo.wammer.appdata.xml.in:14 -msgid "" -"Disclaimer: This software is for educational purposes only. Jamming WiFi " -"networks might violate certain laws or regulations in your country. Make " -"sure you have the network owner's permission to run this program. You are " -"using this software on your own risk." -msgstr "" -"Avertissement : Ce logiciel est à but éducatif uniquement. Le brouillage " -"des réseaux Wi-Fi peut violer certaines lois ou régulations dans votre " -"pays. Assurez-vous d'avoir la permission du propriétaire du réseau pour " -"exécuter ce programme. Vous utilisez ce logiciel à vos risques et périls." +msgid "Disclaimer: This software is for educational purposes only. Jamming WiFi networks might violate certain laws or regulations in your country. Make sure you have the network owner's permission to run this program. You are using this software on your own risk." +msgstr "Avertissement : Ce logiciel est à but éducatif uniquement. Le brouillage des réseaux Wi-Fi peut violer certaines lois ou régulations dans votre pays. Assurez-vous d'avoir la permission du propriétaire du réseau pour exécuter ce programme. Vous utilisez ce logiciel à vos risques et périls." #: data/com.github.ronnydo.wammer.appdata.xml.in:27 msgid "Update build scripts" @@ -74,7 +54,7 @@ msgstr "Mise à jour des scripts de compilations" #: data/com.github.ronnydo.wammer.appdata.xml.in:34 msgid "elementary OS \"Hera\" Release!!1!" -msgstr "Version elementary OS « Hera » !" +msgstr "Version elementary OS \"Hera \"!" #: data/com.github.ronnydo.wammer.appdata.xml.in:41 msgid "\"Hans! Hol den Flammenwerfer!\" - Added German translation" @@ -86,9 +66,7 @@ msgstr "Petite correction d'orthographe" #: data/com.github.ronnydo.wammer.appdata.xml.in:43 msgid "No bigger issues so far means first main release!!1!" -msgstr "" -"Pas de gros problèmes jusque là, ce qui signifie première version " -"principale !" +msgstr "Pas de gros problèmes jusque là, ce qui signifie première version principale !" #: data/com.github.ronnydo.wammer.appdata.xml.in:50 #: data/com.github.ronnydo.wammer.appdata.xml.in:59 @@ -98,8 +76,7 @@ msgstr "Correction de « Add aircrack-ng as a dependency » (ticket N°4)" #: data/com.github.ronnydo.wammer.appdata.xml.in:51 #: data/com.github.ronnydo.wammer.appdata.xml.in:60 msgid "Fix \"Mention legality disclaimer in description\" (issue #5)" -msgstr "" -"Correction de « Mention legality disclaimer in description » (ticket N°5)" +msgstr "Correction de « Mention legality disclaimer in description » (ticket N°5)" #: data/com.github.ronnydo.wammer.appdata.xml.in:52 #: data/com.github.ronnydo.wammer.appdata.xml.in:61 @@ -108,15 +85,15 @@ msgstr "Bonus : ajout de poussière de lutin" #: data/com.github.ronnydo.wammer.appdata.xml.in:68 msgid "fix issue Invalid AppData file (issue #3)" -msgstr "Correction fdu fichier AppData invalide (ticket N°3)" +msgstr "Correction fdu fichier AppData invalide (ticket #3)" #: data/com.github.ronnydo.wammer.appdata.xml.in:75 msgid "fix issue Invalid AppData file (issue #2)" -msgstr "Correction fdu fichier AppData invalide (ticket N°2)" +msgstr "Correction fdu fichier AppData invalide (ticket #2)" #: data/com.github.ronnydo.wammer.appdata.xml.in:82 msgid "fix issue Invalid AppData file (issue #1)" -msgstr "Correction fdu fichier AppData invalide (ticket N°1)" +msgstr "Correction fdu fichier AppData invalide (ticket #1)" #: data/com.github.ronnydo.wammer.appdata.xml.in:89 msgid "Initial release" @@ -133,3 +110,4 @@ msgstr "Le brouilleur est actif" #: data/com.github.ronnydo.wammer.appdata.xml.in:107 msgid "Ronny Dobra" msgstr "Ronny Dobra" + diff --git a/po/fr.po b/po/fr.po index e247ed3..d1a79eb 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.github.ronnydo.wammer\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-05-03 10:30+0200\n" +"POT-Creation-Date: 2020-05-19 22:01+0400\n" "PO-Revision-Date: 2020-05-03 10:14+0200\n" "Last-Translator: Nathan Bonnemains (@NathanBnm)\n" "Language-Team: none\n" @@ -18,7 +18,8 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: src/MainWindow.vala:129 -msgid "Select the WiFi interface, which will be used for jamming." +#, fuzzy +msgid "Select the Wi-Fi interface, which will be used for jamming." msgstr "Sélectionnez l'interface Wi-Fi qui sera utilisée pour le brouillage." #: src/MainWindow.vala:163 @@ -26,7 +27,8 @@ msgid "Everything works fine." msgstr "Tout fonctionne bien." #: src/MainWindow.vala:163 -msgid "The jammer is inactive. Your WiFi network will work as usual." +#, fuzzy +msgid "The jammer is inactive. Your Wi-Fi network will work as usual." msgstr "" "Le brouilleur est inactif. Votre réseau Wi-Fi fonctionne normalement." @@ -44,7 +46,8 @@ msgstr "" "Le brouilleur est en cours de lancement. Veuillez patienter un instant." #: src/MainWindow.vala:182 -msgid "Full power back..." +#, fuzzy +msgid "Full power back…" msgstr "Retour en plein puissance..." #: src/MainWindow.vala:182 @@ -56,9 +59,10 @@ msgid "Bzzzzzz!" msgstr "Bzzzzzz !" #: src/MainWindow.vala:187 +#, fuzzy msgid "" "The jammer is active now! Your device should be the only one,\n" -"which is able to communicate with the WiFi router." +"which is able to communicate with the Wi-Fi router." msgstr "" "Le brouilleur est désormais actif ! Votre appareil devrait être le " "seul,\n" @@ -73,7 +77,8 @@ msgid "That won't work!" msgstr "Cela ne fonctionnera pas !" #: src/MainWindow.vala:197 -msgid "You need at least one WiFi interface installed." +#, fuzzy +msgid "You need at least one Wi-Fi interface installed." msgstr "Vous devez avoir au moins une interface Wi-Fi d'installée." #: src/MainWindow.vala:198 @@ -85,8 +90,9 @@ msgid "Disclaimer" msgstr "Avertissement" #: src/MainWindow.vala:206 +#, fuzzy msgid "" -"Jamming WiFi networks might violate certain laws or regulations in your " +"Jamming Wi-Fi networks might violate certain laws or regulations in your " "country.\n" "You are using this software on your own risk!" msgstr "" @@ -103,23 +109,24 @@ msgid "Jammer is busy or already active." msgstr "Le brouilleur est occupé ou déja actif." #: src/Services/Jammer.vala:82 -#, c-format +#, fuzzy, c-format msgid "" -"Make sure the WiFi interface '%s' is plugged in and connected to a network." +"Make sure the Wi-Fi interface '%s' is plugged in and connected to a network." msgstr "" "Assurez-vous que l'interface Wi-Fi « %s » est branchée et connectée à un " "réseau." #: src/Services/Jammer.vala:96 src/Services/Jammer.vala:147 -msgid "Uppps, something wen't wrong ... Maybe you try it one more time!" +#, fuzzy +msgid "Uppps, something wen't wrong … Maybe you try it one more time!" msgstr "" "Oups, une erreur s'est produite... Peut-être que vous devriez essayer à " "nouveau !" #: src/Services/Jammer.vala:141 -#, c-format +#, fuzzy, c-format msgid "" -"Unfortunately the WiFi interface '%s' doesn‘t seem to be supported.\n" +"Unfortunately the Wi-Fi interface '%s' doesn‘t seem to be supported.\n" "Please check %s for more information." msgstr "" "Malheureusement, l'interface Wi-Fi « %s » n'a pas l'air d'être prise en " diff --git a/po/nl.po b/po/nl.po index 6f1599e..25ae6e5 100644 --- a/po/nl.po +++ b/po/nl.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: com.github.ronnydo.wammer\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-01-12 10:27+0100\n" +"POT-Creation-Date: 2020-05-19 22:01+0400\n" "PO-Revision-Date: 2019-11-09 13:54+0100\n" "Last-Translator: Heimen Stoffels \n" "Language-Team: none\n" diff --git a/po/ru.po b/po/ru.po index 5fe2302..662cbed 100644 --- a/po/ru.po +++ b/po/ru.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: com.github.ronnydo.wammer\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-01-12 10:27+0100\n" -"PO-Revision-Date: 2019-01-19 18:33+0400\n" +"POT-Creation-Date: 2020-05-19 22:01+0400\n" +"PO-Revision-Date: 2020-05-19 22:01+0400\n" "Last-Translator: Andrey Kultyapov \n" "Language-Team: none\n" "Language: ru\n" @@ -17,7 +17,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" -"X-Generator: Poedit 2.0.6\n" +"X-Generator: Poedit 2.2.3\n" #: src/MainWindow.vala:129 msgid "Select the Wi-Fi interface, which will be used for jamming." diff --git a/src/MainWindow.vala b/src/MainWindow.vala index 30ab197..0ef09f6 100644 --- a/src/MainWindow.vala +++ b/src/MainWindow.vala @@ -73,7 +73,7 @@ namespace Wammer { jammer = new Services.Jammer (); - interface_list = Utils.Utils.get_Wi-Fi_interfaces (); + interface_list = Utils.Utils.get_Wi_Fi_interfaces (); jammer.state_changed.connect ((t,state) => { JammerState j_state = (JammerState) state; diff --git a/src/Utils/Utils.vala b/src/Utils/Utils.vala index 11fd4c4..3329b52 100644 --- a/src/Utils/Utils.vala +++ b/src/Utils/Utils.vala @@ -11,7 +11,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * -* You should have received a copy of the GNU General Public +* You should have received a copy of the GNU General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA @@ -21,48 +21,48 @@ namespace Wammer.Utils { public class Utils { - public static List get_Wi-Fi_interfaces () { + public static List get_Wi_Fi_interfaces () { List interface_list = new List (); - + string[] cmd = {"iwconfig"}; - SubprocessLauncher launcher = new SubprocessLauncher (SubprocessFlags.STDOUT_PIPE); - + SubprocessLauncher launcher = new SubprocessLauncher (SubprocessFlags.STDOUT_PIPE); + try { - Subprocess subprocess = launcher.spawnv (cmd); + Subprocess subprocess = launcher.spawnv (cmd); var input_stream = subprocess.get_stdout_pipe (); - + // wait for process to exit subprocess.wait_check (); - - // check if the subprocess was successful (exit code 0) + + // check if the subprocess was successful (exit code 0) if (subprocess.get_successful ()) { // try to extract cmd output DataInputStream dis = new DataInputStream (input_stream); string line = ""; while ((line = dis.read_line (null)) != null) { if (line.contains ("IEEE 802.11")) { - string interface_name = extract_Wi-Fi_interface (line); + string interface_name = extract_Wi_Fi_interface (line); interface_list.append (interface_name); } } } else { - error ("Process for getting Wi-Fi interfaces exited abnormally."); + error ("Process for getting Wi-Fi interfaces exited abnormally."); } } catch (Error e) { error ("Couldn't spawn process for getting Wi-Fi interface: %s\n", e.message); } - + return interface_list; // DEBUG return new List (); - } - + } + /* * Extract Wi-Fi interface name */ - public static string extract_Wi-Fi_interface (string input) { + public static string extract_Wi_Fi_interface (string input) { string interface_name = input.split (" ")[0]; - + try { Regex regex = new Regex ("[a-zA-Z0-9]+"); @@ -74,10 +74,10 @@ namespace Wammer.Utils { } catch (Error e) { warning ("Extraction of interface_name failed: %s\n", e.message); } - + return interface_name; } - + /* * Extract the MAC address from the given input in uppercase fasion. * Returns empty string if MAC wasn't found @@ -91,12 +91,12 @@ namespace Wammer.Utils { MatchInfo matchInfo = null; regex.match (input, 0, out matchInfo); if (matchInfo.matches ()) { - mac = matchInfo.fetch_all()[0]; + mac = matchInfo.fetch_all()[0]; } } catch (Error e) { warning ("Extraction of MAC address failed: %s\n", e.message); } - + // return empty string if mac is default (see man iwconfig) if (mac == "00:00:00:00:00:00") { mac = ""; @@ -104,8 +104,8 @@ namespace Wammer.Utils { return mac.up (); } - - + + /* * Extract name of monitor interface from airmon-ng output */ @@ -124,49 +124,48 @@ namespace Wammer.Utils { } return monitor_interface; } - - + + /* * Check if interface with the name of monitor_interface is running */ - public static bool monitor_interface_running (string monitor_interface) { + public static bool monitor_interface_running (string monitor_interface) { string[] cmd = {"ifconfig"}; SubprocessLauncher launcher = new SubprocessLauncher (SubprocessFlags.STDOUT_PIPE); - + try { - Subprocess subprocess = launcher.spawnv (cmd); + Subprocess subprocess = launcher.spawnv (cmd); InputStream stdout_stream = subprocess.get_stdout_pipe (); - + subprocess.wait_check (); - + string stdout_line = ""; DataInputStream stdout_datastream = new DataInputStream (stdout_stream); - + while ((stdout_line = stdout_datastream.read_line (null)) != null) { if (stdout_line.contains (monitor_interface)) { return true; } - } + } } catch (Error e) { warning ("Can't verify if monitor interface is rnnning: %s\n", e.message); } - + return false; } - + /* * Convert command array to single line string */ - public static string cmd_to_string (string[] argv) { + public static string cmd_to_string (string[] argv) { string cmd = ""; - + foreach (string arg in argv) { cmd += arg + " "; } - + return cmd.strip (); } - } }