-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
522 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,7 @@ coverage.xml | |
|
||
# Translations | ||
*.mo | ||
*.pot | ||
# *.pot | ||
|
||
# Django stuff: | ||
*.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
# main.py | ||
import json | ||
import os | ||
import threading | ||
import time | ||
import json | ||
from gettext import gettext as _ | ||
from datetime import datetime | ||
from gettext import gettext as _ | ||
|
||
from gi.repository import Adw, Gdk, Gio, GLib, Gtk | ||
|
||
from lfy import RES_PATH, VERSION | ||
from lfy.api.utils import is_text | ||
from lfy.api.utils.bak import backup_gsettings | ||
from lfy.api.utils.check_update import main as check_update | ||
from lfy.preference import PreferenceWindow | ||
from lfy.settings import Settings | ||
from lfy.translate import TranslateWindow | ||
from lfy.api.utils.bak import backup_gsettings | ||
|
||
# 设置代理地址和端口号 | ||
PROXY_ADDRESS = Settings.get().vpn_addr_port | ||
|
@@ -108,7 +109,7 @@ def on_about_action(self, _widget, _w): | |
ad.set_documenters(['yuh <[email protected]>, 2023-2023']) | ||
ad.set_translator_credits(_('translator_credits')) | ||
ad.set_comments(_('A translation app for GNOME.')) | ||
ad.set_copyright(_(f'© 2023-{datetime.now().year} yuh')) | ||
ad.set_copyright(f'© 2023-{datetime.now().year} yuh') | ||
|
||
s = f"Version: {VERSION}" | ||
gvs = Gtk.get_major_version(), Gtk.get_minor_version(), Gtk.get_micro_version() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.