Skip to content

Commit

Permalink
feat: 添加翻译 pot 文件
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhldr committed Sep 20, 2024
1 parent cd81e58 commit 16d1865
Show file tree
Hide file tree
Showing 4 changed files with 522 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ coverage.xml

# Translations
*.mo
*.pot
# *.pot

# Django stuff:
*.log
Expand Down
9 changes: 5 additions & 4 deletions lfy/main.py
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
Expand Down Expand Up @@ -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()
Expand Down
3 changes: 1 addition & 2 deletions po/POTFILES
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
data/cool.ldr.lfy.in.in.desktop
data/cool.ldr.lfy.in.metainfo.xml
data/cool.ldr.lfy.in.gschema.xml
data/cool.ldr.lfy.in.appdata.xml
data/resources/cool.ldr.lfy.in.appdata.xml

lfy/main.py
lfy/preference.py
Expand Down
Loading

0 comments on commit 16d1865

Please sign in to comment.