diff --git a/lib/l10n/intl_de.arb b/lib/l10n/intl_de.arb index 34d6c77f..575bbdb3 100644 --- a/lib/l10n/intl_de.arb +++ b/lib/l10n/intl_de.arb @@ -1,6 +1,9 @@ { "@@locale": "de", - "@@last_modified": "2021-11-02T19:44:05+01:00", + "@@last_modified": "2021-11-02T23:03:43+01:00", + "copyAddress": "Copy Address", + "settingServersDescription": "The hosting servers experiment enables hosting and managing Cwtch servers", + "settingServers": "Hosting Servers", "enterServerPassword": "Enter password to unlock server", "unlockProfileTip": "Please create or unlock a profile to begin!", "unlockServerTip": "Please create or unlock a server to begin!", diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb index e44616f2..b6badee4 100644 --- a/lib/l10n/intl_en.arb +++ b/lib/l10n/intl_en.arb @@ -1,6 +1,9 @@ { "@@locale": "en", - "@@last_modified": "2021-11-02T19:44:05+01:00", + "@@last_modified": "2021-11-02T23:03:43+01:00", + "copyAddress": "Copy Address", + "settingServersDescription": "The hosting servers experiment enables hosting and managing Cwtch servers", + "settingServers": "Hosting Servers", "enterServerPassword": "Enter password to unlock server", "unlockProfileTip": "Please create or unlock a profile to begin!", "unlockServerTip": "Please create or unlock a server to begin!", diff --git a/lib/l10n/intl_es.arb b/lib/l10n/intl_es.arb index f5255737..1892268e 100644 --- a/lib/l10n/intl_es.arb +++ b/lib/l10n/intl_es.arb @@ -1,6 +1,9 @@ { "@@locale": "es", - "@@last_modified": "2021-11-02T19:44:05+01:00", + "@@last_modified": "2021-11-02T23:03:43+01:00", + "copyAddress": "Copy Address", + "settingServersDescription": "The hosting servers experiment enables hosting and managing Cwtch servers", + "settingServers": "Hosting Servers", "enterServerPassword": "Enter password to unlock server", "unlockProfileTip": "Please create or unlock a profile to begin!", "unlockServerTip": "Please create or unlock a server to begin!", diff --git a/lib/l10n/intl_fr.arb b/lib/l10n/intl_fr.arb index 6c083644..37865907 100644 --- a/lib/l10n/intl_fr.arb +++ b/lib/l10n/intl_fr.arb @@ -1,6 +1,9 @@ { "@@locale": "fr", - "@@last_modified": "2021-11-02T19:44:05+01:00", + "@@last_modified": "2021-11-02T23:03:43+01:00", + "copyAddress": "Copy Address", + "settingServersDescription": "The hosting servers experiment enables hosting and managing Cwtch servers", + "settingServers": "Hosting Servers", "enterServerPassword": "Enter password to unlock server", "unlockProfileTip": "Please create or unlock a profile to begin!", "unlockServerTip": "Please create or unlock a server to begin!", diff --git a/lib/l10n/intl_it.arb b/lib/l10n/intl_it.arb index f0626eb6..97a272ba 100644 --- a/lib/l10n/intl_it.arb +++ b/lib/l10n/intl_it.arb @@ -1,6 +1,9 @@ { "@@locale": "it", - "@@last_modified": "2021-11-02T19:44:05+01:00", + "@@last_modified": "2021-11-02T23:03:43+01:00", + "copyAddress": "Copy Address", + "settingServersDescription": "The hosting servers experiment enables hosting and managing Cwtch servers", + "settingServers": "Hosting Servers", "enterServerPassword": "Enter password to unlock server", "unlockProfileTip": "Please create or unlock a profile to begin!", "unlockServerTip": "Please create or unlock a server to begin!", diff --git a/lib/l10n/intl_pl.arb b/lib/l10n/intl_pl.arb index fdfc189a..8905b0ea 100644 --- a/lib/l10n/intl_pl.arb +++ b/lib/l10n/intl_pl.arb @@ -1,6 +1,9 @@ { "@@locale": "pl", - "@@last_modified": "2021-11-02T19:44:05+01:00", + "@@last_modified": "2021-11-02T23:03:43+01:00", + "copyAddress": "Copy Address", + "settingServersDescription": "The hosting servers experiment enables hosting and managing Cwtch servers", + "settingServers": "Hosting Servers", "enterServerPassword": "Enter password to unlock server", "unlockProfileTip": "Please create or unlock a profile to begin!", "unlockServerTip": "Please create or unlock a server to begin!", diff --git a/lib/l10n/intl_pt.arb b/lib/l10n/intl_pt.arb index 5cac141c..7000bec8 100644 --- a/lib/l10n/intl_pt.arb +++ b/lib/l10n/intl_pt.arb @@ -1,6 +1,9 @@ { "@@locale": "pt", - "@@last_modified": "2021-11-02T19:44:05+01:00", + "@@last_modified": "2021-11-02T23:03:43+01:00", + "copyAddress": "Copy Address", + "settingServersDescription": "The hosting servers experiment enables hosting and managing Cwtch servers", + "settingServers": "Hosting Servers", "enterServerPassword": "Enter password to unlock server", "unlockProfileTip": "Please create or unlock a profile to begin!", "unlockServerTip": "Please create or unlock a server to begin!", diff --git a/lib/views/addeditservers.dart b/lib/views/addeditservers.dart index 63a547a1..c4477659 100644 --- a/lib/views/addeditservers.dart +++ b/lib/views/addeditservers.dart @@ -56,7 +56,7 @@ class _AddEditServerViewState extends State { return Scaffold( appBar: AppBar( - title: ctrlrOnion.text.isEmpty ? Text(AppLocalizations.of(context)!.addServerTitle) : Text(AppLocalizations.of(context)!.editServerTitle), //), + title: ctrlrOnion.text.isEmpty ? Text(AppLocalizations.of(context)!.addServerTitle) : Text(AppLocalizations.of(context)!.editServerTitle), ), body: _buildSettingsList(), ); diff --git a/lib/views/contactsview.dart b/lib/views/contactsview.dart index ae2af434..0ac5ae72 100644 --- a/lib/views/contactsview.dart +++ b/lib/views/contactsview.dart @@ -5,6 +5,7 @@ import 'package:cwtch/widgets/contactrow.dart'; import 'package:cwtch/widgets/profileimage.dart'; import 'package:cwtch/widgets/textfield.dart'; import 'package:cwtch/widgets/tor_icon.dart'; +import 'package:flutter/services.dart'; import 'package:provider/provider.dart'; import '../main.dart'; import '../settings.dart'; @@ -104,9 +105,18 @@ class _ContactsViewState extends State { actions.add(Tooltip(message: AppLocalizations.of(context)!.blockUnknownConnectionsEnabledDescription, child: Icon(CwtchIcons.block_unknown))); } - // TODO copy ID + // Copy profile onion + actions.add(IconButton( + icon: Icon(CwtchIcons.address_copy_2), + tooltip: AppLocalizations.of(context)!.copyAddress, + onPressed: () { + Clipboard.setData(new ClipboardData(text: Provider.of(context, listen: false).onion)); + })); + + // TODO servers + // Search contacts actions.add(IconButton( // need both conditions for displaying initial empty textfield and also allowing filters to be cleared if this widget gets lost/reset icon: Icon(showSearchBar || Provider.of(context).isFiltered ? Icons.search_off : Icons.search), diff --git a/lib/views/globalsettingsview.dart b/lib/views/globalsettingsview.dart index 4525fd88..6f71f73d 100644 --- a/lib/views/globalsettingsview.dart +++ b/lib/views/globalsettingsview.dart @@ -190,8 +190,8 @@ class _GlobalSettingsViewState extends State { secondary: Icon(CwtchIcons.enable_groups, color: settings.current().mainTextColor()), ), SwitchListTile( - title: Text("Enable Servers", /*AppLocalizations.of(context)!.enableGroups,*/ style: TextStyle(color: settings.current().mainTextColor())), - subtitle: Text("Enable Servers"), //AppLocalizations.of(context)!.descriptionExperimentsGroups), + title: Text(AppLocalizations.of(context)!.settingServers, style: TextStyle(color: settings.current().mainTextColor())), + subtitle: Text(AppLocalizations.of(context)!.settingServersDescription), value: settings.isExperimentEnabled(ServerManagementExperiment), onChanged: (bool value) { Provider.of(context, listen: false).clear(); diff --git a/lib/views/profilemgrview.dart b/lib/views/profilemgrview.dart index 2067f578..e0a150e1 100644 --- a/lib/views/profilemgrview.dart +++ b/lib/views/profilemgrview.dart @@ -100,7 +100,7 @@ class _ProfileMgrViewState extends State { // Servers if (Provider.of(context).isExperimentEnabled(ServerManagementExperiment)) { - actions.add(IconButton(icon: Icon(CwtchIcons.dns_black_24dp), tooltip: "Servers", onPressed: _pushServers)); + actions.add(IconButton(icon: Icon(CwtchIcons.dns_black_24dp), tooltip: AppLocalizations.of(context)!.serversManagerTitleShort, onPressed: _pushServers)); } // Global Settings