Skip to content

Commit 53bddcd

Browse files
committed
Update: 翻訳を修正
1 parent cb079f3 commit 53bddcd

File tree

4 files changed

+22
-10
lines changed

4 files changed

+22
-10
lines changed

assets/translations/en-US.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
"close": "Close",
1818
"overwriteConfirm": "Overwriting Confirmation",
1919
"overwriteFile": "Overwrite file",
20-
"overwriteFolder": "Overwrite folder"
20+
"overwriteFolder": "Overwrite folder",
21+
"updateInformation": "Update Information",
22+
"later": "Later",
23+
"download": "Download"
2124
},
2225
"model": {
2326
"RealESRGAN": {
@@ -61,6 +64,7 @@
6164
"invalidOutputFolderPath": "The output folder path is invalid.",
6265
"overwriteFileConfirm": "The output file \"{}\" already exists.\nDo you really want to overwrite the file?",
6366
"overwriteFolderConfirm": "The output folder \"{}\" already exists.\nFiles in the output folder may be overwritten. Do you really want to overwrite the folder?",
64-
"noImageFilesInFolder": "No image files were found in the specified folder"
67+
"noImageFilesInFolder": "No image files were found in the specified folder",
68+
"updateInformation": "New version {} has been released.\nWould you like to download the update?"
6569
}
6670
}

assets/translations/ja-JP.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
"close": "閉じる",
1818
"overwriteConfirm": "上書きの確認",
1919
"overwriteFile": "ファイルを上書き",
20-
"overwriteFolder": "フォルダを上書き"
20+
"overwriteFolder": "フォルダを上書き",
21+
"updateInformation": "アップデート情報",
22+
"later": "今はまだしない",
23+
"download": "ダウンロード"
2124
},
2225
"model": {
2326
"RealESRGAN": {
@@ -61,6 +64,7 @@
6164
"invalidOutputFolderPath": "保存先のフォルダパスが不正です。",
6265
"overwriteFileConfirm": "保存先のファイル \"{}\" はすでに存在します。\n本当にファイルを上書きしますか?",
6366
"overwriteFolderConfirm": "保存先のフォルダ \"{}\" はすでに存在します。\n保存先のフォルダ内にあるファイルが上書きされる可能性があります。本当にフォルダを上書きしますか?",
64-
"noImageFilesInFolder": "指定されたフォルダの中に画像ファイルが見つかりませんでした。"
67+
"noImageFilesInFolder": "指定されたフォルダの中に画像ファイルが見つかりませんでした。",
68+
"updateInformation": "新しいバージョン {} がリリースされています。\nアップデートをダウンロードしますか?"
6569
}
6670
}

assets/translations/uk.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
"close": "Закрити",
1818
"overwriteConfirm": "Підтвердження перезапису",
1919
"overwriteFile": "Перезапис файлів",
20-
"overwriteFolder": "Перезапис папки"
20+
"overwriteFolder": "Перезапис папки",
21+
"updateInformation": "Оновити інформацію",
22+
"later": "Пізніше",
23+
"download": "Завантажити"
2124
},
2225
"model": {
2326
"RealESRGAN": {
@@ -61,6 +64,7 @@
6164
"invalidOutputFolderPath": "Неправильний шлях до вихідної папки.",
6265
"overwriteFileConfirm": "Вихідний файл \"{}\" вже існує.\nВи дійсно хочете перезаписати файл?",
6366
"overwriteFolderConfirm": "Вихідна папка \"{}\" вже існує.\nФайли у вихідній теці можуть бути перезаписані. Ви дійсно хочете перезаписати папку?",
64-
"noImageFilesInFolder": "У зазначеній папці файлів зображень не знайдено."
67+
"noImageFilesInFolder": "У зазначеній папці файлів зображень не знайдено.",
68+
"updateInformation": "Вийшла нова версія {}.\nБажаєте завантажити оновлення?"
6569
}
6670
}

lib/main.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,22 +139,22 @@ class MainWindowPageState extends State<MainWindowPage> with SingleTickerProvide
139139
barrierDismissible: true,
140140
builder: (_) {
141141
return AlertDialog(
142-
title: const Text('アップデート情報'),
143-
content: Text('新しいバージョン ${retrieveVersion} がリリースされています。\nアップデートをダウンロードしますか?'),
142+
title: const Text('label.updateInformation').tr(),
143+
content: const Text('message.updateInformation').tr(args: [retrieveVersion]),
144144
actionsPadding: const EdgeInsets.only(right: 12, bottom: 12),
145145
actions: [
146146
SizedBox(
147147
height: 40,
148148
child: TextButton(
149-
child: const Text('今はまだしない'),
149+
child: const Text('label.later').tr(),
150150
onPressed: () => Navigator.pop(context),
151151
),
152152
),
153153
SizedBox(
154154
height: 40,
155155
child: ElevatedButton(
156156
style: const ButtonStyle(elevation: MaterialStatePropertyAll(0)),
157-
child: const Text('ダウンロード'),
157+
child: const Text('label.download').tr(),
158158
onPressed: () {
159159
goUpdateUrl = true;
160160
Navigator.pop(context);

0 commit comments

Comments
 (0)