From 486718e2094587971f95fcc913ce5674a6308857 Mon Sep 17 00:00:00 2001 From: H2Sxxa Date: Mon, 29 Jul 2024 09:26:48 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=90=20Add=20i18n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/i18n/en_US/fields.yaml | 2 +- assets/i18n/zh_CN/fields.yaml | 2 +- lib/windows/msi.dart | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/i18n/en_US/fields.yaml b/assets/i18n/en_US/fields.yaml index ee9ac1e..4814623 100644 --- a/assets/i18n/en_US/fields.yaml +++ b/assets/i18n/en_US/fields.yaml @@ -30,5 +30,5 @@ install.automate: Automate Install manage: Manage manage.execute: Execute -manage.terminal: Terminal +manage.terminal: Open Terminal manage.root: (root) \ No newline at end of file diff --git a/assets/i18n/zh_CN/fields.yaml b/assets/i18n/zh_CN/fields.yaml index c796181..d80f20d 100644 --- a/assets/i18n/zh_CN/fields.yaml +++ b/assets/i18n/zh_CN/fields.yaml @@ -30,5 +30,5 @@ install.automate: 自动安装 manage: 管理 manage.execute: 执行 -manage.terminal: 终端 +manage.terminal: 打开终端 manage.root: (root) \ No newline at end of file diff --git a/lib/windows/msi.dart b/lib/windows/msi.dart index f5b03e8..0c76a1d 100644 --- a/lib/windows/msi.dart +++ b/lib/windows/msi.dart @@ -111,7 +111,7 @@ class DownloadMSIProgressDialog extends StatefulWidget { class DownloadMSIProgressDialogState extends State { bool afterInstall = false; - String text = "Prepare Install"; + String text = "Waiting..."; double? progress; @override void initState() { @@ -131,7 +131,7 @@ class DownloadMSIProgressDialogState extends State { onDone: () { setState(() { progress = null; - text = "Install..."; + text = context.i18n.getOrKey("install.automate"); }); }, afterInstall: () {