mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-23 20:49:26 +01:00
fix: Missing localizations in dialogs
This commit is contained in:
parent
d5bd969095
commit
9b1d7ecef8
@ -135,6 +135,8 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||||||
final input = await showTextInputDialog(
|
final input = await showTextInputDialog(
|
||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context).pleaseEnterYourPassword,
|
title: L10n.of(context).pleaseEnterYourPassword,
|
||||||
|
okLabel: L10n.of(context).ok,
|
||||||
|
cancelLabel: L10n.of(context).cancel,
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
minLines: 1,
|
minLines: 1,
|
||||||
|
@ -324,6 +324,8 @@ class _ChatState extends State<Chat> {
|
|||||||
final reason = await showTextInputDialog(
|
final reason = await showTextInputDialog(
|
||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context).whyDoYouWantToReportThis,
|
title: L10n.of(context).whyDoYouWantToReportThis,
|
||||||
|
okLabel: L10n.of(context).ok,
|
||||||
|
cancelLabel: L10n.of(context).cancel,
|
||||||
textFields: [DialogTextField(hintText: L10n.of(context).reason)]);
|
textFields: [DialogTextField(hintText: L10n.of(context).reason)]);
|
||||||
if (reason == null || reason.single.isEmpty) return;
|
if (reason == null || reason.single.isEmpty) return;
|
||||||
final result = await showFutureLoadingDialog(
|
final result = await showFutureLoadingDialog(
|
||||||
|
@ -37,6 +37,8 @@ class _ChatDetailsState extends State<ChatDetails> {
|
|||||||
final input = await showTextInputDialog(
|
final input = await showTextInputDialog(
|
||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context).changeTheNameOfTheGroup,
|
title: L10n.of(context).changeTheNameOfTheGroup,
|
||||||
|
okLabel: L10n.of(context).ok,
|
||||||
|
cancelLabel: L10n.of(context).cancel,
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
initialText: room.getLocalizedDisplayname(
|
initialText: room.getLocalizedDisplayname(
|
||||||
@ -63,6 +65,8 @@ class _ChatDetailsState extends State<ChatDetails> {
|
|||||||
final input = await showTextInputDialog(
|
final input = await showTextInputDialog(
|
||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context).setInvitationLink,
|
title: L10n.of(context).setInvitationLink,
|
||||||
|
okLabel: L10n.of(context).ok,
|
||||||
|
cancelLabel: L10n.of(context).cancel,
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
hintText: '#localpart:domain',
|
hintText: '#localpart:domain',
|
||||||
@ -103,6 +107,8 @@ class _ChatDetailsState extends State<ChatDetails> {
|
|||||||
final input = await showTextInputDialog(
|
final input = await showTextInputDialog(
|
||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context).setGroupDescription,
|
title: L10n.of(context).setGroupDescription,
|
||||||
|
okLabel: L10n.of(context).ok,
|
||||||
|
cancelLabel: L10n.of(context).cancel,
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
hintText: L10n.of(context).setGroupDescription,
|
hintText: L10n.of(context).setGroupDescription,
|
||||||
|
@ -132,6 +132,8 @@ class _ChatListState extends State<ChatList> {
|
|||||||
final input = await showTextInputDialog(
|
final input = await showTextInputDialog(
|
||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context).setStatus,
|
title: L10n.of(context).setStatus,
|
||||||
|
okLabel: L10n.of(context).ok,
|
||||||
|
cancelLabel: L10n.of(context).cancel,
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
hintText: L10n.of(context).statusExampleMessage,
|
hintText: L10n.of(context).statusExampleMessage,
|
||||||
|
@ -89,6 +89,8 @@ class _DiscoverState extends State<Discover> {
|
|||||||
final newServer = await showTextInputDialog(
|
final newServer = await showTextInputDialog(
|
||||||
title: L10n.of(context).changeTheHomeserver,
|
title: L10n.of(context).changeTheHomeserver,
|
||||||
context: context,
|
context: context,
|
||||||
|
okLabel: L10n.of(context).ok,
|
||||||
|
cancelLabel: L10n.of(context).cancel,
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
prefixText: 'https://',
|
prefixText: 'https://',
|
||||||
|
@ -94,6 +94,8 @@ class _LoginState extends State<Login> {
|
|||||||
final input = await showTextInputDialog(
|
final input = await showTextInputDialog(
|
||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context).enterAnEmailAddress,
|
title: L10n.of(context).enterAnEmailAddress,
|
||||||
|
okLabel: L10n.of(context).ok,
|
||||||
|
cancelLabel: L10n.of(context).cancel,
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
hintText: L10n.of(context).enterAnEmailAddress,
|
hintText: L10n.of(context).enterAnEmailAddress,
|
||||||
@ -122,6 +124,8 @@ class _LoginState extends State<Login> {
|
|||||||
final password = await showTextInputDialog(
|
final password = await showTextInputDialog(
|
||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context).chooseAStrongPassword,
|
title: L10n.of(context).chooseAStrongPassword,
|
||||||
|
okLabel: L10n.of(context).ok,
|
||||||
|
cancelLabel: L10n.of(context).cancel,
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
hintText: '******',
|
hintText: '******',
|
||||||
|
@ -61,6 +61,8 @@ class _SettingsState extends State<Settings> {
|
|||||||
final input = await showTextInputDialog(
|
final input = await showTextInputDialog(
|
||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context).changePassword,
|
title: L10n.of(context).changePassword,
|
||||||
|
okLabel: L10n.of(context).ok,
|
||||||
|
cancelLabel: L10n.of(context).cancel,
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
hintText: L10n.of(context).pleaseEnterYourPassword,
|
hintText: L10n.of(context).pleaseEnterYourPassword,
|
||||||
@ -111,6 +113,8 @@ class _SettingsState extends State<Settings> {
|
|||||||
final input = await showTextInputDialog(
|
final input = await showTextInputDialog(
|
||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context).pleaseEnterYourPassword,
|
title: L10n.of(context).pleaseEnterYourPassword,
|
||||||
|
okLabel: L10n.of(context).ok,
|
||||||
|
cancelLabel: L10n.of(context).cancel,
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
obscureText: true,
|
obscureText: true,
|
||||||
@ -139,6 +143,8 @@ class _SettingsState extends State<Settings> {
|
|||||||
var input = await showTextInputDialog(
|
var input = await showTextInputDialog(
|
||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context).editJitsiInstance,
|
title: L10n.of(context).editJitsiInstance,
|
||||||
|
okLabel: L10n.of(context).ok,
|
||||||
|
cancelLabel: L10n.of(context).cancel,
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
initialText: AppConfig.jitsiInstance.replaceFirst(prefix, ''),
|
initialText: AppConfig.jitsiInstance.replaceFirst(prefix, ''),
|
||||||
@ -160,6 +166,8 @@ class _SettingsState extends State<Settings> {
|
|||||||
final input = await showTextInputDialog(
|
final input = await showTextInputDialog(
|
||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context).editDisplayname,
|
title: L10n.of(context).editDisplayname,
|
||||||
|
okLabel: L10n.of(context).ok,
|
||||||
|
cancelLabel: L10n.of(context).cancel,
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
initialText: profile?.displayname ??
|
initialText: profile?.displayname ??
|
||||||
@ -222,6 +230,8 @@ class _SettingsState extends State<Settings> {
|
|||||||
final input = await showTextInputDialog(
|
final input = await showTextInputDialog(
|
||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context).askSSSSCache,
|
title: L10n.of(context).askSSSSCache,
|
||||||
|
okLabel: L10n.of(context).ok,
|
||||||
|
cancelLabel: L10n.of(context).cancel,
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
hintText: L10n.of(context).passphraseOrKey,
|
hintText: L10n.of(context).passphraseOrKey,
|
||||||
@ -285,6 +295,7 @@ class _SettingsState extends State<Settings> {
|
|||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context).pleaseChooseAPasscode,
|
title: L10n.of(context).pleaseChooseAPasscode,
|
||||||
message: L10n.of(context).pleaseEnter4Digits,
|
message: L10n.of(context).pleaseEnter4Digits,
|
||||||
|
cancelLabel: L10n.of(context).cancel,
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
validator: (text) {
|
validator: (text) {
|
||||||
|
@ -17,6 +17,8 @@ class _Settings3PidState extends State<Settings3Pid> {
|
|||||||
final input = await showTextInputDialog(
|
final input = await showTextInputDialog(
|
||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context).enterAnEmailAddress,
|
title: L10n.of(context).enterAnEmailAddress,
|
||||||
|
okLabel: L10n.of(context).ok,
|
||||||
|
cancelLabel: L10n.of(context).cancel,
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
hintText: L10n.of(context).enterAnEmailAddress,
|
hintText: L10n.of(context).enterAnEmailAddress,
|
||||||
@ -45,6 +47,8 @@ class _Settings3PidState extends State<Settings3Pid> {
|
|||||||
final password = await showTextInputDialog(
|
final password = await showTextInputDialog(
|
||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context).pleaseEnterYourPassword,
|
title: L10n.of(context).pleaseEnterYourPassword,
|
||||||
|
okLabel: L10n.of(context).ok,
|
||||||
|
cancelLabel: L10n.of(context).cancel,
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
hintText: '******',
|
hintText: '******',
|
||||||
|
@ -66,6 +66,8 @@ class DevicesSettingsState extends State<DevicesSettings> {
|
|||||||
final displayName = await showTextInputDialog(
|
final displayName = await showTextInputDialog(
|
||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context).changeDeviceName,
|
title: L10n.of(context).changeDeviceName,
|
||||||
|
okLabel: L10n.of(context).ok,
|
||||||
|
cancelLabel: L10n.of(context).cancel,
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
hintText: device.displayName,
|
hintText: device.displayName,
|
||||||
|
Loading…
Reference in New Issue
Block a user