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 0000000..f64e39e Binary files /dev/null and b/languages/de/cls_mth_fc.mo differ diff --git a/languages/de/wirepy.mo b/languages/de/wirepy.mo new file mode 100644 index 0000000..db911e3 Binary files /dev/null and b/languages/de/wirepy.mo differ 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 """