国际化

修改数据库
This commit is contained in:
luoxueyi 2021-09-30 14:01:54 +08:00
parent 4e377dbecf
commit f2192c289a
6 changed files with 13 additions and 4 deletions

2
.gitignore vendored
View File

@ -14,6 +14,8 @@ debian/kylin-system-updater.prerm.debhelper
debian/kylin-system-updater.substvars
po/kylin-system-updater.pot
system-updater.session.sql
build/scripts-3.8/
debian/files
# Misc
.*cache

View File

@ -19,7 +19,7 @@ class Sqlite3Server(object):
def __init__(self, window_main):
self.connect = None
self.window_main = window_main
logging.info("Init Sqlite3Server...")
logging.info(_("Init Sqlite3Server..."))
self.init_sqlit()
# 初始化连接数据库

View File

@ -60,7 +60,7 @@ class UpdateListFilterCache(apt.Cache):
self.allowed_origins = get_allowed_origins()
self.allowed_origins = deleteDuplicatedElementFromList(self.allowed_origins)
logging.info("Allowed origins are: %s",
logging.info(_("Allowed origins are: %s"),
self.allowed_origins)
self.blacklist = apt_pkg.config.value_list(

View File

@ -291,5 +291,5 @@ class UpdateManager():
except dbus.DBusException:
bus_name = dbus.service.BusName('com.kylin.systemupgrade',
bus)
logging.info('initiate dbus success ...')
logging.info(_("initiate dbus success ..."))
return UpdateManagerDbusController(self, bus_name)

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
kylin-system-updater (1.1.2kord) v101; urgency=medium
* 增加数据库接口 .
-- luoxueyi <luoxueyi@kylinos.cn> Wed, 29 Sep 2021 17:13:31 +0800
kylin-system-updater (1.1.1kord) v101; urgency=medium
* add database .

View File

@ -5,4 +5,5 @@ SystemUpdater/UpdateManager.py
SystemUpdater/Core/MyCache.py
SystemUpdater/Core/UpdateList.py
SystemUpdater/Core/filter.py
kylin-system-updater
SystemUpdater/Core/Database.py
SystemUpdater/UpdateManagerDbus.py