From 89b5bf9438ed24ed6b65063f4910e620ca2cbd26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B1=BC=E9=A6=99ROS?= <87068644+fishros@users.noreply.github.com> Date: Mon, 9 Sep 2024 12:46:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E9=87=8F=E7=BB=9F=E8=AE=A1=E8=B6=85=E6=97=B6=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.py b/install.py index 6b3d860..21e21bb 100644 --- a/install.py +++ b/install.py @@ -64,6 +64,7 @@ def main(): # download translations CmdTask("wget {} -O /tmp/fishinstall/{} --no-check-certificate".format(translator_url,translator_url.replace(url_prefix,''))).run() + importlib.import_module("tools.translation.translator").Linguist() from tools.base import tr import copy @@ -72,8 +73,8 @@ def main(): tracing = copy.copy(Tracking) - # 使用量统计 - CmdTask("wget https://fishros.org.cn/forum/topic/1733 -O /tmp/t1733 -q && rm -rf /tmp/t1733").run() + # 使用量统计 + CmdTask("wget https://fishros.org.cn/forum/topic/1733 -O /tmp/t1733 -q --timeout 10 && rm -rf /tmp/t1733").run() PrintUtils.print_success(tr.tr("已为您切换语言至当前所在国家语言:")+tr.lang) if tr.country != 'CN':