fix: Missing localizations in dialogs

This commit is contained in:
Christian Pauly 2021-02-23 11:03:54 +01:00
parent d5bd969095
commit 9b1d7ecef8
9 changed files with 35 additions and 0 deletions

View File

@ -135,6 +135,8 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
final input = await showTextInputDialog(
context: context,
title: L10n.of(context).pleaseEnterYourPassword,
okLabel: L10n.of(context).ok,
cancelLabel: L10n.of(context).cancel,
textFields: [
DialogTextField(
minLines: 1,

View File

@ -324,6 +324,8 @@ class _ChatState extends State<Chat> {
final reason = await showTextInputDialog(
context: context,
title: L10n.of(context).whyDoYouWantToReportThis,
okLabel: L10n.of(context).ok,
cancelLabel: L10n.of(context).cancel,
textFields: [DialogTextField(hintText: L10n.of(context).reason)]);
if (reason == null || reason.single.isEmpty) return;
final result = await showFutureLoadingDialog(

View File

@ -37,6 +37,8 @@ class _ChatDetailsState extends State<ChatDetails> {
final input = await showTextInputDialog(
context: context,
title: L10n.of(context).changeTheNameOfTheGroup,
okLabel: L10n.of(context).ok,
cancelLabel: L10n.of(context).cancel,
textFields: [
DialogTextField(
initialText: room.getLocalizedDisplayname(
@ -63,6 +65,8 @@ class _ChatDetailsState extends State<ChatDetails> {
final input = await showTextInputDialog(
context: context,
title: L10n.of(context).setInvitationLink,
okLabel: L10n.of(context).ok,
cancelLabel: L10n.of(context).cancel,
textFields: [
DialogTextField(
hintText: '#localpart:domain',
@ -103,6 +107,8 @@ class _ChatDetailsState extends State<ChatDetails> {
final input = await showTextInputDialog(
context: context,
title: L10n.of(context).setGroupDescription,
okLabel: L10n.of(context).ok,
cancelLabel: L10n.of(context).cancel,
textFields: [
DialogTextField(
hintText: L10n.of(context).setGroupDescription,

View File

@ -132,6 +132,8 @@ class _ChatListState extends State<ChatList> {
final input = await showTextInputDialog(
context: context,
title: L10n.of(context).setStatus,
okLabel: L10n.of(context).ok,
cancelLabel: L10n.of(context).cancel,
textFields: [
DialogTextField(
hintText: L10n.of(context).statusExampleMessage,

View File

@ -89,6 +89,8 @@ class _DiscoverState extends State<Discover> {
final newServer = await showTextInputDialog(
title: L10n.of(context).changeTheHomeserver,
context: context,
okLabel: L10n.of(context).ok,
cancelLabel: L10n.of(context).cancel,
textFields: [
DialogTextField(
prefixText: 'https://',

View File

@ -94,6 +94,8 @@ class _LoginState extends State<Login> {
final input = await showTextInputDialog(
context: context,
title: L10n.of(context).enterAnEmailAddress,
okLabel: L10n.of(context).ok,
cancelLabel: L10n.of(context).cancel,
textFields: [
DialogTextField(
hintText: L10n.of(context).enterAnEmailAddress,
@ -122,6 +124,8 @@ class _LoginState extends State<Login> {
final password = await showTextInputDialog(
context: context,
title: L10n.of(context).chooseAStrongPassword,
okLabel: L10n.of(context).ok,
cancelLabel: L10n.of(context).cancel,
textFields: [
DialogTextField(
hintText: '******',

View File

@ -61,6 +61,8 @@ class _SettingsState extends State<Settings> {
final input = await showTextInputDialog(
context: context,
title: L10n.of(context).changePassword,
okLabel: L10n.of(context).ok,
cancelLabel: L10n.of(context).cancel,
textFields: [
DialogTextField(
hintText: L10n.of(context).pleaseEnterYourPassword,
@ -111,6 +113,8 @@ class _SettingsState extends State<Settings> {
final input = await showTextInputDialog(
context: context,
title: L10n.of(context).pleaseEnterYourPassword,
okLabel: L10n.of(context).ok,
cancelLabel: L10n.of(context).cancel,
textFields: [
DialogTextField(
obscureText: true,
@ -139,6 +143,8 @@ class _SettingsState extends State<Settings> {
var input = await showTextInputDialog(
context: context,
title: L10n.of(context).editJitsiInstance,
okLabel: L10n.of(context).ok,
cancelLabel: L10n.of(context).cancel,
textFields: [
DialogTextField(
initialText: AppConfig.jitsiInstance.replaceFirst(prefix, ''),
@ -160,6 +166,8 @@ class _SettingsState extends State<Settings> {
final input = await showTextInputDialog(
context: context,
title: L10n.of(context).editDisplayname,
okLabel: L10n.of(context).ok,
cancelLabel: L10n.of(context).cancel,
textFields: [
DialogTextField(
initialText: profile?.displayname ??
@ -222,6 +230,8 @@ class _SettingsState extends State<Settings> {
final input = await showTextInputDialog(
context: context,
title: L10n.of(context).askSSSSCache,
okLabel: L10n.of(context).ok,
cancelLabel: L10n.of(context).cancel,
textFields: [
DialogTextField(
hintText: L10n.of(context).passphraseOrKey,
@ -285,6 +295,7 @@ class _SettingsState extends State<Settings> {
context: context,
title: L10n.of(context).pleaseChooseAPasscode,
message: L10n.of(context).pleaseEnter4Digits,
cancelLabel: L10n.of(context).cancel,
textFields: [
DialogTextField(
validator: (text) {

View File

@ -17,6 +17,8 @@ class _Settings3PidState extends State<Settings3Pid> {
final input = await showTextInputDialog(
context: context,
title: L10n.of(context).enterAnEmailAddress,
okLabel: L10n.of(context).ok,
cancelLabel: L10n.of(context).cancel,
textFields: [
DialogTextField(
hintText: L10n.of(context).enterAnEmailAddress,
@ -45,6 +47,8 @@ class _Settings3PidState extends State<Settings3Pid> {
final password = await showTextInputDialog(
context: context,
title: L10n.of(context).pleaseEnterYourPassword,
okLabel: L10n.of(context).ok,
cancelLabel: L10n.of(context).cancel,
textFields: [
DialogTextField(
hintText: '******',

View File

@ -66,6 +66,8 @@ class DevicesSettingsState extends State<DevicesSettings> {
final displayName = await showTextInputDialog(
context: context,
title: L10n.of(context).changeDeviceName,
okLabel: L10n.of(context).ok,
cancelLabel: L10n.of(context).cancel,
textFields: [
DialogTextField(
hintText: device.displayName,