Skip to content

Commit b56d0a2

Browse files
committed
feat: i18n
1 parent b70684a commit b56d0a2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

apps/common/event/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
def run():
2323
# QuerySet(Document).filter(status__in=[Status.embedding, Status.queue_up]).update(**{'status': Status.error})
2424
QuerySet(Model).filter(status=setting.models.Status.DOWNLOAD).update(status=setting.models.Status.ERROR,
25-
meta={'message': "下载程序被中断,请重试"})
25+
meta={'message': _('The download process was interrupted, please try again')})
2626
update_execute(update_document_status_sql, [])

apps/common/job/clean_chat_job.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
from django.db.models import Q, Max
1212
from common.lock.impl.file_lock import FileLock
1313
from dataset.models import File
14+
15+
1416
from django.db import connection
1517

1618
scheduler = BackgroundScheduler()
@@ -66,7 +68,7 @@ def clean_chat_log_job():
6668
if deleted_count < batch_size:
6769
break
6870

69-
logging.getLogger("max_kb").info(f'结束清理对话记录')
71+
logging.getLogger("max_kb").info(_('end clean chat log'))
7072

7173

7274
def run():

0 commit comments

Comments
 (0)