From e035a0c3c7a0e865929a38c36704645177adebd1 Mon Sep 17 00:00:00 2001 From: Npepperlinux Date: Thu, 7 Nov 2024 19:07:51 +0900 Subject: [PATCH] =?UTF-8?q?=E7=BF=BB=E8=A8=B3=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/l10n/app_ja-oj.arb | 4 ++-- lib/l10n/app_ja.arb | 8 +++++++- lib/view/common/account_select_dialog.dart | 2 +- lib/view/common/pushable_listview.dart | 7 ++++--- .../general_settings_page/general_settings_page.dart | 4 ++-- 5 files changed, 16 insertions(+), 9 deletions(-) diff --git a/lib/l10n/app_ja-oj.arb b/lib/l10n/app_ja-oj.arb index 4636ccbf1..11b89c486 100644 --- a/lib/l10n/app_ja-oj.arb +++ b/lib/l10n/app_ja-oj.arb @@ -108,9 +108,9 @@ "confirmCreateBlock": "ブロックなさりますの?", "unsupportedFile": "対応してないファイルのようですわ", - "failedFileSave": "ファイルの保存に失敗したようですわね…" - + "failedFileSave": "ファイルの保存に失敗したようですわね…", + "nothingHere": "ここには何もありませんわ" diff --git a/lib/l10n/app_ja.arb b/lib/l10n/app_ja.arb index 55369c6e0..506952a72 100644 --- a/lib/l10n/app_ja.arb +++ b/lib/l10n/app_ja.arb @@ -1005,6 +1005,12 @@ } } }, - "nonInvitedReversi": "招待はされとらへんみたいや" + "nonInvitedReversi": "招待はされとらへんみたいや", + + "remoteServerWithoutLogin": "相手先のサーバー(ログインなし)", + "nothingHere": "なんもないで", + + "deckMode": "デッキモード", + "enableDeckMode": "デッキモードにする" } diff --git a/lib/view/common/account_select_dialog.dart b/lib/view/common/account_select_dialog.dart index 35bf2f9eb..9690447fa 100644 --- a/lib/view/common/account_select_dialog.dart +++ b/lib/view/common/account_select_dialog.dart @@ -48,7 +48,7 @@ class AccountSelectDialog extends HookConsumerWidget { ), _ => ListTile( leading: const Icon(Icons.language), - title: const Text("相手先のサーバー(ログインなし)"), + title: Text(S.of(context).remoteServerWithoutLogin), onTap: navigateAsRemote.executeOrNull, ), }, diff --git a/lib/view/common/pushable_listview.dart b/lib/view/common/pushable_listview.dart index 8ca154c84..e4c04a71d 100644 --- a/lib/view/common/pushable_listview.dart +++ b/lib/view/common/pushable_listview.dart @@ -2,6 +2,7 @@ import "dart:async"; import "package:flutter/foundation.dart"; import "package:flutter/material.dart"; +import "package:flutter_gen/gen_l10n/app_localizations.dart"; import "package:flutter_hooks/flutter_hooks.dart"; import "package:hooks_riverpod/hooks_riverpod.dart"; import "package:miria/model/general_settings.dart"; @@ -119,10 +120,10 @@ class PushableListView extends HookConsumerWidget { } if (items.value.isEmpty && !hideIsEmpty) { - return const Center( + return Center( child: Padding( - padding: EdgeInsets.all(10), - child: Text("なんもないで"), + padding: const EdgeInsets.all(10), + child: Text(S.of(context).nothingHere), ), ); } diff --git a/lib/view/settings_page/general_settings_page/general_settings_page.dart b/lib/view/settings_page/general_settings_page/general_settings_page.dart index b71a61677..a0dd4b9c1 100644 --- a/lib/view/settings_page/general_settings_page/general_settings_page.dart +++ b/lib/view/settings_page/general_settings_page/general_settings_page.dart @@ -178,9 +178,9 @@ class GeneralSettingsPage extends HookConsumerWidget { onChanged: (value) async => automaticPush.value = value ?? AutomaticPush.none, ), - const Text("デッキモード"), //TODO: localize + Text(S.of(context).deckMode), CheckboxListTile( - title: const Text("デッキモードにします。"), + title: Text(S.of(context).enableDeckMode), value: isDeckMode.value, onChanged: (value) => isDeckMode.value = value ?? false, ),