From a0da356cec9cd00c89040fb464f4f04b142706fa Mon Sep 17 00:00:00 2001 From: punix Date: Sun, 10 Nov 2024 13:17:11 +0100 Subject: [PATCH] - Preparation for language translation part 5 --- Changelog | 1 + install | 8 ++++---- languages/de/cls_mth_fc.mo | Bin 0 -> 1138 bytes languages/de/wirepy.mo | Bin 0 -> 5157 bytes wg_main.py | 4 ++-- 5 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 languages/de/cls_mth_fc.mo create mode 100644 languages/de/wirepy.mo diff --git a/Changelog b/Changelog index e6a0253..091c1b2 100644 --- a/Changelog +++ b/Changelog @@ -15,6 +15,7 @@ My standard System: Linux Mint 22 Cinnamon - Move Version Variable in main script - Edit Class GiteaUpdate for requests in api_down and download - Description on Class GiteaUpdate +- Translate file De complete ### Added diff --git a/install b/install index 2a6fcea..9978256 100755 --- a/install +++ b/install @@ -11,7 +11,7 @@ install_file_with(){ sudo mkdir -p /etc/wire_py && sudo touch /etc/wire_py/.keys && sudo cp -u settings.conf /etc/wire_py/ && \ sudo cp -uR wp-icons lx-icons /usr/share/icons/ && sudo cp -uR TK-Themes /usr/share/ && \ sudo chown -R root:root /etc/wire_py && sudo chmod 755 /etc/wire_py && \ - sudo cp languages/de/*.mo /usr/share/locale/de/LC_MESSAGES/ && \ + sudo cp -u languages/de/*.mo /usr/share/locale/de/LC_MESSAGES/ && \ sudo ln -sf /usr/bin/wirepy.py /usr/local/bin/wirepy && \ sudo cp -u org.wirepy.policy /usr/share/polkit-1/actions/ && \ sudo cp -u Wire-Py.desktop /usr/share/applications/ && \ @@ -26,7 +26,7 @@ install_arch_d(){ sudo mkdir -p /etc/wire_py && sudo touch /etc/wire_py/.keys && sudo cp -u settings.conf /etc/wire_py/ && \ sudo cp -uR wp-icons lx-icons /usr/share/icons/ && sudo cp -uR TK-Themes /usr/share/ && \ sudo chown -R root:root /etc/wire_py && sudo chmod 755 /etc/wire_py && \ - sudo cp languages/de/*.mo /usr/share/locale/de/LC_MESSAGES/ && \ + sudo cp -u languages/de/*.mo /usr/share/locale/de/LC_MESSAGES/ && \ sudo ln -sf /usr/bin/wirepy.py /usr/local/bin/wirepy && \ sudo cp -u org.wirepy.policy /usr/share/polkit-1/actions/ && \ sudo cp -u Wire-Py.desktop /usr/share/applications/ && \ @@ -94,7 +94,7 @@ elif grep -i 'fedora' /etc/os-release > /dev/null 2>&1 sudo cp -u wg_main.py start_wg.py cls_mth_fc.py wirepy.py run_as open_gitea.py /usr/bin/ && \ sudo mkdir -p /etc/wire_py && sudo touch /etc/wire_py/.keys && \ sudo cp -u settings.conf /etc/wire_py/ && \ - sudo cp languages/de/*.mo /usr/share/locale/de/LC_MESSAGES/ && \ + sudo cp -u languages/de/*.mo /usr/share/locale/de/LC_MESSAGES/ && \ sudo cp -uR wp-icons lx-icons /usr/share/icons/ && sudo cp -uR TK-Themes /usr/share/ && \ sudo chown -R root:root /etc/wire_py && sudo chmod 755 /etc/wire_py && \ sudo ln -sf /usr/bin/wirepy.py /usr/local/bin/wirepy && \ @@ -111,7 +111,7 @@ elif grep -i 'suse' /etc/os-release > /dev/null 2>&1 sudo cp -u wg_main.py start_wg.py cls_mth_fc.py wirepy.py run_as open_gitea.py /usr/bin/ && \ sudo mkdir -p /etc/wire_py && sudo touch /etc/wire_py/.keys && \ sudo cp -u settings.conf /etc/wire_py/ && \ - sudo cp languages/de/*.mo /usr/share/locale/de/LC_MESSAGES/ && \ + sudo cp -u languages/de/*.mo /usr/share/locale/de/LC_MESSAGES/ && \ sudo cp -uR wp-icons lx-icons /usr/share/icons/ && sudo cp -uR TK-Themes /usr/share/ && \ sudo chown -R root:root /etc/wire_py && sudo chmod 755 /etc/wire_py && \ sudo ln -sf /usr/bin/wirepy.py /usr/local/bin/wirepy && \ diff --git a/languages/de/cls_mth_fc.mo b/languages/de/cls_mth_fc.mo new file mode 100644 index 0000000000000000000000000000000000000000..f64e39eeccebcd478c00a3f73ff9b67bab86b3bb GIT binary patch literal 1138 zcmZXS&2G~`5XVhv`7mFiJ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l3G4+#03X6J4w1}nXh-G$;9*gRW;fvB@JVePU^q^MaTRA literal 0 HcmV?d00001 diff --git a/wg_main.py b/wg_main.py index da94025..4c0ae7c 100755 --- a/wg_main.py +++ b/wg_main.py @@ -251,11 +251,11 @@ class FrameWidgets(ttk.Frame): self.updates_lb.bind('', congratulations_leave) else: set_update.set(value=0) - text = _(f'Update {res} available!') + text = f'Update {res} ' + _('available!') ''' Update BTN Menu''' self.update_btn = ttk.Menubutton(self.menu_frame, text=text) - self.update_btn.grid(column=4, row=0, padx=0) + self.update_btn.grid(column=4, columnspan=3, row=0, padx=0) def download_enter(event): """ The mouse moves into the entry widget """