From 9a6dbae0c463208df8c09935e43ae35a75018430 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Thu, 24 Jun 2021 14:37:19 -0700 Subject: [PATCH] Remove todos + show/hide password translations --- lib/l10n/intl_de.arb | 4 +++- lib/l10n/intl_en.arb | 4 +++- lib/l10n/intl_es.arb | 4 +++- lib/l10n/intl_fr.arb | 4 +++- lib/l10n/intl_it.arb | 4 +++- lib/l10n/intl_pt.arb | 4 +++- lib/views/peersettingsview.dart | 1 - lib/widgets/invitationbubble.dart | 1 - lib/widgets/passwordfield.dart | 5 +++-- 9 files changed, 21 insertions(+), 10 deletions(-) diff --git a/lib/l10n/intl_de.arb b/lib/l10n/intl_de.arb index 3e3fd14..fed2336 100644 --- a/lib/l10n/intl_de.arb +++ b/lib/l10n/intl_de.arb @@ -1,6 +1,8 @@ { "@@locale": "de", - "@@last_modified": "2021-06-24T22:33:44+02:00", + "@@last_modified": "2021-06-24T23:32:06+02:00", + "tooltipHidePassword": "Hide Password", + "tooltipShowPassword": "Show Password", "serverNotSynced": "Syncing New Messages (This can take some time)...", "groupInviteSettingsWarning": "You have been invited to join a group! Please enable the Group Chat Experiment in Settings to view this Invitation.", "shutdownCwtchAction": "Shutdown Cwtch", diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb index 2e06e53..9c5a22a 100644 --- a/lib/l10n/intl_en.arb +++ b/lib/l10n/intl_en.arb @@ -1,6 +1,8 @@ { "@@locale": "en", - "@@last_modified": "2021-06-24T22:33:44+02:00", + "@@last_modified": "2021-06-24T23:32:06+02:00", + "tooltipHidePassword": "Hide Password", + "tooltipShowPassword": "Show Password", "serverNotSynced": "Syncing New Messages (This can take some time)...", "groupInviteSettingsWarning": "You have been invited to join a group! Please enable the Group Chat Experiment in Settings to view this Invitation.", "shutdownCwtchAction": "Shutdown Cwtch", diff --git a/lib/l10n/intl_es.arb b/lib/l10n/intl_es.arb index 79b0d35..0d42ec4 100644 --- a/lib/l10n/intl_es.arb +++ b/lib/l10n/intl_es.arb @@ -1,6 +1,8 @@ { "@@locale": "es", - "@@last_modified": "2021-06-24T22:33:44+02:00", + "@@last_modified": "2021-06-24T23:32:06+02:00", + "tooltipHidePassword": "Hide Password", + "tooltipShowPassword": "Show Password", "serverNotSynced": "Fuera de sincronización con el servidor", "groupInviteSettingsWarning": "You have been invited to join a group! Please enable the Group Chat Experiment in Settings to view this Invitation.", "shutdownCwtchAction": "Shutdown Cwtch", diff --git a/lib/l10n/intl_fr.arb b/lib/l10n/intl_fr.arb index 48f8f3c..cd9c93f 100644 --- a/lib/l10n/intl_fr.arb +++ b/lib/l10n/intl_fr.arb @@ -1,6 +1,8 @@ { "@@locale": "fr", - "@@last_modified": "2021-06-24T22:33:44+02:00", + "@@last_modified": "2021-06-24T23:32:06+02:00", + "tooltipHidePassword": "Hide Password", + "tooltipShowPassword": "Show Password", "serverNotSynced": "Syncing New Messages (This can take some time)...", "groupInviteSettingsWarning": "You have been invited to join a group! Please enable the Group Chat Experiment in Settings to view this Invitation.", "shutdownCwtchAction": "Shutdown Cwtch", diff --git a/lib/l10n/intl_it.arb b/lib/l10n/intl_it.arb index acfe3e9..a66d843 100644 --- a/lib/l10n/intl_it.arb +++ b/lib/l10n/intl_it.arb @@ -1,6 +1,8 @@ { "@@locale": "it", - "@@last_modified": "2021-06-24T22:33:44+02:00", + "@@last_modified": "2021-06-24T23:32:06+02:00", + "tooltipHidePassword": "Hide Password", + "tooltipShowPassword": "Show Password", "serverNotSynced": "Non sincronizzato", "groupInviteSettingsWarning": "You have been invited to join a group! Please enable the Group Chat Experiment in Settings to view this Invitation.", "shutdownCwtchAction": "Shutdown Cwtch", diff --git a/lib/l10n/intl_pt.arb b/lib/l10n/intl_pt.arb index 9c361ad..e94df9f 100644 --- a/lib/l10n/intl_pt.arb +++ b/lib/l10n/intl_pt.arb @@ -1,6 +1,8 @@ { "@@locale": "pt", - "@@last_modified": "2021-06-24T22:33:44+02:00", + "@@last_modified": "2021-06-24T23:32:06+02:00", + "tooltipHidePassword": "Hide Password", + "tooltipShowPassword": "Show Password", "serverNotSynced": "Syncing New Messages (This can take some time)...", "groupInviteSettingsWarning": "You have been invited to join a group! Please enable the Group Chat Experiment in Settings to view this Invitation.", "shutdownCwtchAction": "Shutdown Cwtch", diff --git a/lib/views/peersettingsview.dart b/lib/views/peersettingsview.dart index 892d4cf..cdcfc70 100644 --- a/lib/views/peersettingsview.dart +++ b/lib/views/peersettingsview.dart @@ -77,7 +77,6 @@ class _PeerSettingsViewState extends State { }; final setPeerAttributeJson = jsonEncode(setPeerAttribute); Provider.of(context, listen: false).cwtch.SendProfileEvent(profileOnion, setPeerAttributeJson); - // todo translations final snackBar = SnackBar(content: Text(AppLocalizations.of(context)!.nickChangeSuccess)); ScaffoldMessenger.of(context).showSnackBar(snackBar); }, diff --git a/lib/widgets/invitationbubble.dart b/lib/widgets/invitationbubble.dart index 1781b18..ff86ffc 100644 --- a/lib/widgets/invitationbubble.dart +++ b/lib/widgets/invitationbubble.dart @@ -14,7 +14,6 @@ import 'messagebubbledecorations.dart'; // Like MessageBubble but for displaying chat overlay 100/101 invitations // Offers the user an accept/reject button if they don't have a matching contact already -// todo: Reject buttons currently aren't tracked and will reset when the message is reloaded class InvitationBubble extends StatefulWidget { @override InvitationBubbleState createState() => InvitationBubbleState(); diff --git a/lib/widgets/passwordfield.dart b/lib/widgets/passwordfield.dart index 64b4404..c48b5ef 100644 --- a/lib/widgets/passwordfield.dart +++ b/lib/widgets/passwordfield.dart @@ -2,6 +2,7 @@ import 'package:cwtch/cwtch_icons_icons.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import '../settings.dart'; +import 'package:flutter_gen/gen_l10n/app_localizations.dart'; // Provides a styled Password Input Field for use in Form Widgets. // Callers must provide a text controller, label helper text and a validator. @@ -22,9 +23,9 @@ class _CwtchTextFieldState extends State { @override Widget build(BuildContext context) { // todo: translations - var label = "View Password"; + var label = AppLocalizations.of(context)!.tooltipShowPassword; if (!obscureText) { - label = "Hide Password"; + label = AppLocalizations.of(context)!.tooltipHidePassword; } return Consumer(builder: (context, theme, child) {