From ce4f6c84dc8260c901f5cd7a1722d5ee85c3c09a Mon Sep 17 00:00:00 2001 From: punix Date: Fri, 15 Nov 2024 18:09:21 +0100 Subject: [PATCH 1/5] - - Fix Checkbutton Autostart when first install Wire-Py --- Changelog | 6 ++++++ wg_main.py | 15 ++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Changelog b/Changelog index 60c597a..9ff6781 100644 --- a/Changelog +++ b/Changelog @@ -12,6 +12,12 @@ My standard System: Linux Mint 22 Cinnamon ### Added 10-11-2024 + - Fix Checkbutton Autostart when first install Wire-Py + + + ### Added +10-11-2024 + - Translate file de_De complete - new FrameWidget for rename Entry and rename Button diff --git a/wg_main.py b/wg_main.py index 2e7f3de..00472b4 100755 --- a/wg_main.py +++ b/wg_main.py @@ -427,8 +427,8 @@ class FrameWidgets(ttk.Frame): self.l_box.delete(self.select_tunnel[0]) with open(wg_set, 'r') as set_file6: lines6 = set_file6.readlines() - if select_tl == lines6[7].strip() and 'off' not in lines6[7].strip(): - lines6[7] = 'off' + if select_tl == lines6[7].strip() and 'off\n' not in lines6[7].strip(): + lines6[7] = 'off\n' with open(wg_set, 'w') as set_file7: set_file7.writelines(lines6) self.selected_option.set(0) @@ -649,7 +649,7 @@ class FrameWidgets(ttk.Frame): self.StrVar.set(value=self.a) with open(wg_set, 'r') as set_file5: lines5 = set_file5.readlines() - if select_tl == lines5[7].strip() and 'off' not in lines5[7].strip(): + if select_tl == lines5[7].strip() and 'off\n' not in lines5[7].strip(): lines5[7] = new_a_connect with open(wg_set, 'w') as theme_set5: theme_set5.writelines(lines5) @@ -906,7 +906,7 @@ class FrameWidgets(ttk.Frame): if self.selected_option.get() == 0: with open(wg_set, 'r') as set_file3: lines3 = set_file3.readlines() - lines3[7] = 'off' + lines3[7] = 'off\n' with open(wg_set, 'w') as set_file3: set_file3.writelines(lines3) @@ -936,15 +936,16 @@ class FrameWidgets(ttk.Frame): with open(wg_set, 'r') as set_file4: lines4 = set_file4.readlines() - if lines4[7] != 'off': + if lines4[7] != 'off\n': + print(lines4[7]) self.selected_option.set(1) self.autoconnect_var.set('') self.auto_con = lines4[7] else: - - self.wg_autostart.configure(state='disabled') + self.selected_option.set(0) self.auto_con = _('no Autoconnect') + self.autoconnect_var.set('') self.autoconnect_var = tk.StringVar() self.autoconnect_var.set(self.auto_con) From ebafdbdcb345fd02f183f49d499113425261cf21 Mon Sep 17 00:00:00 2001 From: punix Date: Sun, 17 Nov 2024 10:48:47 +0100 Subject: [PATCH 2/5] - - Fix Checkbutton Autostart when first install Wire-Py --- wg_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wg_main.py b/wg_main.py index 00472b4..0049b88 100755 --- a/wg_main.py +++ b/wg_main.py @@ -14,7 +14,7 @@ from cls_mth_fc import (Tunnel, msg_window, GiteaUpdate, _u, wg_tips, wg_set) tcl_path = Path('/usr/share/TK-Themes') ''' 1 = 1. Year, 09 = Month of the Year, 2924 = Day and Year of the Year ''' -version = 'v. 1.11.1024' +version = 'v. 1.11.1724' res = GiteaUpdate.api_down('https://git.ilunix.de/api/v1/repos/punix/Wire-Py/releases', version) From 8c01c1b984e7224362b57b3e887c589c517f7a21 Mon Sep 17 00:00:00 2001 From: punix Date: Sun, 17 Nov 2024 11:40:33 +0100 Subject: [PATCH 3/5] - Update Translate Files --- Changelog | 2 +- languages/de/cls_mth_fc.mo | Bin 1138 -> 1097 bytes languages/de/wirepy.mo | Bin 5157 -> 5157 bytes 3 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 9ff6781..f1d0035 100644 --- a/Changelog +++ b/Changelog @@ -13,7 +13,7 @@ My standard System: Linux Mint 22 Cinnamon 10-11-2024 - Fix Checkbutton Autostart when first install Wire-Py - + - Update Translate Files ### Added 10-11-2024 diff --git a/languages/de/cls_mth_fc.mo b/languages/de/cls_mth_fc.mo index f64e39eeccebcd478c00a3f73ff9b67bab86b3bb..0fce9edabfa215653aaad6415bded3b82b2f2247 100644 GIT binary patch delta 273 zcmXZXI|{-;6ouiN7%)boc~ntB4Mc4vLeM3+2E_%~S_)Z12(~s>)}p1Ajo=2-*b0`e zz<+`V&V0qa%rIZ`VWuz7*bAxCF5Oa>KBm%I<<6>Kx83yMWn@GgfS+V;08TBqPpOU5#IlPP(ADzB0~(bqNCKzbdJ<^s~^fV32lz6qpxf%F$3tpuc*n1Gm(A&Nm2$dCjIXfQJ{ z@B?WlAZ-k!gMhR-kZuFgLO^;SkOmoW5lE{7>HAPVD+`1#45UF0u>{g;K-zoaNoiG1 zAOi$AfS4PIfqK9I Date: Sun, 17 Nov 2024 11:41:13 +0100 Subject: [PATCH 4/5] - Update Translate Files --- cls_mth_fc.pot | 57 +++++++++++ wirepy.pot | 260 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 317 insertions(+) create mode 100644 cls_mth_fc.pot create mode 100644 wirepy.pot diff --git a/cls_mth_fc.pot b/cls_mth_fc.pot new file mode 100644 index 0000000..c0035a0 --- /dev/null +++ b/cls_mth_fc.pot @@ -0,0 +1,57 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR ORGANIZATION +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2024-11-17 11:33+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: pygettext.py 1.5\n" + + +#: cls_mth_fc.py:63 +msgid "Download Successful" +msgstr "" + +#: cls_mth_fc.py:64 cls_mth_fc.py:232 +msgid "Your zip file is in home directory" +msgstr "" + +#: cls_mth_fc.py:71 cls_mth_fc.py:78 +msgid "Download error" +msgstr "" + +#: cls_mth_fc.py:72 +msgid "Download failed! Please try again" +msgstr "" + +#: cls_mth_fc.py:79 +msgid "Download failed! No internet connection!" +msgstr "" + +#: cls_mth_fc.py:231 +msgid "Export Successful" +msgstr "" + +#: cls_mth_fc.py:240 +msgid "Export error" +msgstr "" + +#: cls_mth_fc.py:241 +msgid "Export failed! Please try again" +msgstr "" + +#: cls_mth_fc.py:249 +msgid "Select tunnel" +msgstr "" + +#: cls_mth_fc.py:250 +msgid "Please first import tunnel" +msgstr "" + diff --git a/wirepy.pot b/wirepy.pot new file mode 100644 index 0000000..806cc4f --- /dev/null +++ b/wirepy.pot @@ -0,0 +1,260 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR ORGANIZATION +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2024-11-17 11:33+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: pygettext.py 1.5\n" + + +#: wg_main.py:151 +msgid "Info" +msgstr "" + +#: wg_main.py:152 +msgid "" +"Wire-Py a simple Wireguard Gui for Linux systems.\n" +"\n" +"Wire-Py is open source software written in Python.\n" +"\n" +"Email: polunga40@unity-mail.de also likes for donation.\n" +"\n" +"Use without warranty!\n" +msgstr "" + +#: wg_main.py:156 +msgid "Go to Wire-Py git" +msgstr "" + +#: wg_main.py:180 +msgid "Options" +msgstr "" + +#: wg_main.py:185 +msgid "Click for Settings" +msgstr "" + +#: wg_main.py:201 +msgid "Disable Updates" +msgstr "" + +#: wg_main.py:202 +msgid "Disable Tooltips" +msgstr "" + +#: wg_main.py:203 +msgid "Light" +msgstr "" + +#: wg_main.py:204 +msgid "Dark" +msgstr "" + +#: wg_main.py:207 +msgid "About" +msgstr "" + +#: wg_main.py:223 +msgid "Update search off" +msgstr "" + +#: wg_main.py:227 +msgid "Updates you have disabled" +msgstr "" + +#: wg_main.py:237 +msgid "No Server Connection!" +msgstr "" + +#: wg_main.py:239 +msgid "No Updates" +msgstr "" + +#: wg_main.py:243 +msgid "Congratulations! Wire-Py is up to date" +msgstr "" + +#: wg_main.py:254 +msgid "available!" +msgstr "" + +#: wg_main.py:262 +msgid "Click to download new version" +msgstr "" + +#: wg_main.py:275 +msgid "Download" +msgstr "" + +#: wg_main.py:314 +msgid "Active: " +msgstr "" + +#: wg_main.py:323 +msgid "Interface" +msgstr "" + +#: wg_main.py:328 +msgid "Peer" +msgstr "" + +#: wg_main.py:359 +msgid "" +"You must first import\n" +"a Wireguard tunnel" +msgstr "" + +#: wg_main.py:368 +msgid "Select a Tunnel" +msgstr "" + +#: wg_main.py:408 +msgid "Click to import a Wireguard Tunnel" +msgstr "" + +#: wg_main.py:435 wg_main.py:947 +msgid "no Autoconnect" +msgstr "" + +#: wg_main.py:452 wg_main.py:1016 +msgid "No tunnels to start in the list" +msgstr "" + +#: wg_main.py:474 wg_main.py:571 +msgid "Max. 12 characters!" +msgstr "" + +#: wg_main.py:494 wg_main.py:503 wg_main.py:1104 wg_main.py:1113 +msgid "Select tunnel" +msgstr "" + +#: wg_main.py:495 wg_main.py:666 wg_main.py:1105 +msgid "Please select a tunnel from the list" +msgstr "" + +#: wg_main.py:504 wg_main.py:1114 +msgid "Please first import tunnel" +msgstr "" + +#: wg_main.py:514 +msgid "No tunnels to delete in the list" +msgstr "" + +#: wg_main.py:524 wg_main.py:823 +msgid "" +"Click to delete a Wireguard Tunnel\n" +"Select from the list!" +msgstr "" + +#: wg_main.py:544 +msgid "No Tunnels in List for Export" +msgstr "" + +#: wg_main.py:554 wg_main.py:834 +msgid "" +" Click to export all\n" +"Wireguard Tunnel to Zipfile" +msgstr "" + +#: wg_main.py:582 +msgid "To rename a tunnel, at least one must be in the list" +msgstr "" + +#: wg_main.py:587 wg_main.py:845 +msgid "" +"To rename a tunnel, you need to\n" +"select a tunnel from the list" +msgstr "" + +#: wg_main.py:609 wg_main.py:618 wg_main.py:627 wg_main.py:665 +msgid "Renaming not possible" +msgstr "" + +#: wg_main.py:610 +msgid "The new name may contain only 12 characters" +msgstr "" + +#: wg_main.py:619 +msgid "At least one character must be entered" +msgstr "" + +#: wg_main.py:628 +msgid "" +"No valid sign. These must not be used.\n" +"Blank, Slash, Backslash and { }\n" +msgstr "" + +#: wg_main.py:670 +msgid "Rename" +msgstr "" + +#: wg_main.py:682 +msgid "Autoconnect on:" +msgstr "" + +#: wg_main.py:689 +msgid "" +"You must have at least one\n" +"tunnel in the list,to use the autostart" +msgstr "" + +#: wg_main.py:701 wg_main.py:802 +msgid "To use the autostart, enable this Checkbox" +msgstr "" + +#: wg_main.py:718 +msgid "To use the autostart, a tunnel must be selected from the list" +msgstr "" + +#: wg_main.py:742 +msgid "Select Wireguard config File" +msgstr "" + +#: wg_main.py:743 +msgid "WG config files" +msgstr "" + +#: wg_main.py:762 wg_main.py:882 +msgid "Import Error" +msgstr "" + +#: wg_main.py:763 +msgid "" +"Tunnel already available!\n" +"Please use another file for import" +msgstr "" + +#: wg_main.py:813 +msgid "List of available tunnels" +msgstr "" + +#: wg_main.py:883 +msgid "" +"Oh... no valid Wireguard File!\n" +"Please select a valid Wireguard File" +msgstr "" + +#: wg_main.py:965 +msgid "Address: " +msgstr "" + +#: wg_main.py:969 +msgid "Endpoint: " +msgstr "" + +#: wg_main.py:999 +msgid "Click to stop selected Wireguard Tunnel" +msgstr "" + +#: wg_main.py:1025 +msgid "Click to start selected Wireguard Tunnel" +msgstr "" + From 762694aa941e06210d36116fc173ecca43ee8c2d Mon Sep 17 00:00:00 2001 From: punix Date: Sun, 17 Nov 2024 11:42:58 +0100 Subject: [PATCH 5/5] - Update Translate Files --- wg_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wg_main.py b/wg_main.py index 0049b88..6c4937d 100755 --- a/wg_main.py +++ b/wg_main.py @@ -14,7 +14,7 @@ from cls_mth_fc import (Tunnel, msg_window, GiteaUpdate, _u, wg_tips, wg_set) tcl_path = Path('/usr/share/TK-Themes') ''' 1 = 1. Year, 09 = Month of the Year, 2924 = Day and Year of the Year ''' -version = 'v. 1.11.1724' +version = 'v. 1.11.1824' res = GiteaUpdate.api_down('https://git.ilunix.de/api/v1/repos/punix/Wire-Py/releases', version)