Skip to content

Commit

Permalink
翻訳を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
Npepperlinux committed Nov 7, 2024
1 parent 7f60277 commit e035a0c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/l10n/app_ja-oj.arb
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@
"confirmCreateBlock": "ブロックなさりますの?",

"unsupportedFile": "対応してないファイルのようですわ",
"failedFileSave": "ファイルの保存に失敗したようですわね…"

"failedFileSave": "ファイルの保存に失敗したようですわね…",

"nothingHere": "ここには何もありませんわ"



Expand Down
8 changes: 7 additions & 1 deletion lib/l10n/app_ja.arb
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,12 @@
}
}
},
"nonInvitedReversi": "招待はされとらへんみたいや"
"nonInvitedReversi": "招待はされとらへんみたいや",

"remoteServerWithoutLogin": "相手先のサーバー(ログインなし)",
"nothingHere": "なんもないで",

"deckMode": "デッキモード",
"enableDeckMode": "デッキモードにする"

}
2 changes: 1 addition & 1 deletion lib/view/common/account_select_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
},
Expand Down
7 changes: 4 additions & 3 deletions lib/view/common/pushable_listview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -119,10 +120,10 @@ class PushableListView<T> 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),
),
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down

0 comments on commit e035a0c

Please sign in to comment.