From ae6f0dd456ad3ae84959a3bb8eee180ce73d9bea Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Mon, 17 Jan 2022 12:24:48 -0800 Subject: [PATCH] Update Translations + notifylisteners --- lib/l10n/intl_de.arb | 5 ++++- lib/l10n/intl_en.arb | 5 ++++- lib/l10n/intl_es.arb | 5 ++++- lib/l10n/intl_fr.arb | 5 ++++- lib/l10n/intl_it.arb | 5 ++++- lib/l10n/intl_pl.arb | 5 ++++- lib/l10n/intl_pt.arb | 5 ++++- lib/l10n/intl_ru.arb | 5 ++++- lib/model.dart | 1 + lib/views/peersettingsview.dart | 6 +++--- lib/widgets/folderpicker.dart | 2 +- 11 files changed, 37 insertions(+), 12 deletions(-) diff --git a/lib/l10n/intl_de.arb b/lib/l10n/intl_de.arb index e35abc53..1d4bcc7a 100644 --- a/lib/l10n/intl_de.arb +++ b/lib/l10n/intl_de.arb @@ -1,6 +1,9 @@ { "@@locale": "de", - "@@last_modified": "2022-01-14T22:08:34+01:00", + "@@last_modified": "2022-01-17T21:20:54+01:00", + "labelTorNetwork": "Tor Network", + "descriptionACNCircuitInfo": "In depth information about the path that the anonymous communication network is using to connect to this conversation.", + "labelACNCircuitInfo": "ACN Circuit Info", "fileSharingSettingsDownloadFolderTooltip": "Browse to select a different default folder for downloaded files.", "fileSharingSettingsDownloadFolderDescription": "When files are downloaded automatically (e.g. image files, when image previews are enabled) a default location to download the files to is needed.", "torSettingsErrorSettingPort": "Port Number must be between 1 and 65535", diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb index 162e9907..b38690f5 100644 --- a/lib/l10n/intl_en.arb +++ b/lib/l10n/intl_en.arb @@ -1,6 +1,9 @@ { "@@locale": "en", - "@@last_modified": "2022-01-14T22:08:34+01:00", + "@@last_modified": "2022-01-17T21:20:54+01:00", + "labelTorNetwork": "Tor Network", + "descriptionACNCircuitInfo": "In depth information about the path that the anonymous communication network is using to connect to this conversation.", + "labelACNCircuitInfo": "ACN Circuit Info", "fileSharingSettingsDownloadFolderTooltip": "Browse to select a different default folder for downloaded files.", "fileSharingSettingsDownloadFolderDescription": "When files are downloaded automatically (e.g. image files, when image previews are enabled) a default location to download the files to is needed.", "torSettingsErrorSettingPort": "Port Number must be between 1 and 65535", diff --git a/lib/l10n/intl_es.arb b/lib/l10n/intl_es.arb index 135446cb..403fc323 100644 --- a/lib/l10n/intl_es.arb +++ b/lib/l10n/intl_es.arb @@ -1,6 +1,9 @@ { "@@locale": "es", - "@@last_modified": "2022-01-14T22:08:34+01:00", + "@@last_modified": "2022-01-17T21:20:54+01:00", + "labelTorNetwork": "Tor Network", + "descriptionACNCircuitInfo": "In depth information about the path that the anonymous communication network is using to connect to this conversation.", + "labelACNCircuitInfo": "ACN Circuit Info", "fileSharingSettingsDownloadFolderTooltip": "Browse to select a different default folder for downloaded files.", "fileSharingSettingsDownloadFolderDescription": "When files are downloaded automatically (e.g. image files, when image previews are enabled) a default location to download the files to is needed.", "torSettingsErrorSettingPort": "Port Number must be between 1 and 65535", diff --git a/lib/l10n/intl_fr.arb b/lib/l10n/intl_fr.arb index 60a7495c..dc576196 100644 --- a/lib/l10n/intl_fr.arb +++ b/lib/l10n/intl_fr.arb @@ -1,6 +1,9 @@ { "@@locale": "fr", - "@@last_modified": "2022-01-14T22:08:34+01:00", + "@@last_modified": "2022-01-17T21:20:54+01:00", + "labelTorNetwork": "Tor Network", + "descriptionACNCircuitInfo": "In depth information about the path that the anonymous communication network is using to connect to this conversation.", + "labelACNCircuitInfo": "ACN Circuit Info", "fileSharingSettingsDownloadFolderTooltip": "Browse to select a different default folder for downloaded files.", "fileSharingSettingsDownloadFolderDescription": "When files are downloaded automatically (e.g. image files, when image previews are enabled) a default location to download the files to is needed.", "torSettingsErrorSettingPort": "Port Number must be between 1 and 65535", diff --git a/lib/l10n/intl_it.arb b/lib/l10n/intl_it.arb index 00354ba7..43902cb0 100644 --- a/lib/l10n/intl_it.arb +++ b/lib/l10n/intl_it.arb @@ -1,6 +1,9 @@ { "@@locale": "it", - "@@last_modified": "2022-01-14T22:08:34+01:00", + "@@last_modified": "2022-01-17T21:20:54+01:00", + "labelTorNetwork": "Tor Network", + "descriptionACNCircuitInfo": "In depth information about the path that the anonymous communication network is using to connect to this conversation.", + "labelACNCircuitInfo": "ACN Circuit Info", "fileSharingSettingsDownloadFolderTooltip": "Browse to select a different default folder for downloaded files.", "fileSharingSettingsDownloadFolderDescription": "When files are downloaded automatically (e.g. image files, when image previews are enabled) a default location to download the files to is needed.", "torSettingsErrorSettingPort": "Port Number must be between 1 and 65535", diff --git a/lib/l10n/intl_pl.arb b/lib/l10n/intl_pl.arb index 2a9271cc..f66ea23e 100644 --- a/lib/l10n/intl_pl.arb +++ b/lib/l10n/intl_pl.arb @@ -1,6 +1,9 @@ { "@@locale": "pl", - "@@last_modified": "2022-01-14T22:08:34+01:00", + "@@last_modified": "2022-01-17T21:20:54+01:00", + "labelTorNetwork": "Tor Network", + "descriptionACNCircuitInfo": "In depth information about the path that the anonymous communication network is using to connect to this conversation.", + "labelACNCircuitInfo": "ACN Circuit Info", "fileSharingSettingsDownloadFolderTooltip": "Browse to select a different default folder for downloaded files.", "fileSharingSettingsDownloadFolderDescription": "When files are downloaded automatically (e.g. image files, when image previews are enabled) a default location to download the files to is needed.", "torSettingsErrorSettingPort": "Port Number must be between 1 and 65535", diff --git a/lib/l10n/intl_pt.arb b/lib/l10n/intl_pt.arb index 5f4ec025..95ac2390 100644 --- a/lib/l10n/intl_pt.arb +++ b/lib/l10n/intl_pt.arb @@ -1,6 +1,9 @@ { "@@locale": "pt", - "@@last_modified": "2022-01-14T22:08:34+01:00", + "@@last_modified": "2022-01-17T21:20:54+01:00", + "labelTorNetwork": "Tor Network", + "descriptionACNCircuitInfo": "In depth information about the path that the anonymous communication network is using to connect to this conversation.", + "labelACNCircuitInfo": "ACN Circuit Info", "fileSharingSettingsDownloadFolderTooltip": "Browse to select a different default folder for downloaded files.", "fileSharingSettingsDownloadFolderDescription": "When files are downloaded automatically (e.g. image files, when image previews are enabled) a default location to download the files to is needed.", "torSettingsErrorSettingPort": "Port Number must be between 1 and 65535", diff --git a/lib/l10n/intl_ru.arb b/lib/l10n/intl_ru.arb index e43bedaa..0a1f3102 100644 --- a/lib/l10n/intl_ru.arb +++ b/lib/l10n/intl_ru.arb @@ -1,6 +1,9 @@ { "@@locale": "ru", - "@@last_modified": "2022-01-14T22:08:34+01:00", + "@@last_modified": "2022-01-17T21:20:54+01:00", + "labelTorNetwork": "Tor Network", + "descriptionACNCircuitInfo": "In depth information about the path that the anonymous communication network is using to connect to this conversation.", + "labelACNCircuitInfo": "ACN Circuit Info", "fileSharingSettingsDownloadFolderTooltip": "Browse to select a different default folder for downloaded files.", "fileSharingSettingsDownloadFolderDescription": "When files are downloaded automatically (e.g. image files, when image previews are enabled) a default location to download the files to is needed.", "torSettingsErrorSettingPort": "Port Number must be between 1 and 65535", diff --git a/lib/model.dart b/lib/model.dart index 035b73d2..923f0f46 100644 --- a/lib/model.dart +++ b/lib/model.dart @@ -603,6 +603,7 @@ class ContactInfoState extends ChangeNotifier { String? get acnCircuit => this._acnCircuit; set acnCircuit(String? acnCircuit) { this._acnCircuit = acnCircuit; + notifyListeners() } // Indicated whether the conversation is archived, in which case it will diff --git a/lib/views/peersettingsview.dart b/lib/views/peersettingsview.dart index 1456d176..96f15567 100644 --- a/lib/views/peersettingsview.dart +++ b/lib/views/peersettingsview.dart @@ -67,7 +67,7 @@ class _PeerSettingsViewState extends State { children: [TextSpan(text: " ($ip)", style: TextStyle(fontSize: 8, fontWeight: FontWeight.normal))])); }).toList(growable: true); - paths.add(RichText(text: TextSpan(text: "Tor Network", style: TextStyle(fontWeight: FontWeight.normal, fontSize: 8, fontFamily: "monospace")))); + paths.add(RichText(text: TextSpan(text: AppLocalizations.of(context)!.labelTorNetwork, style: TextStyle(fontWeight: FontWeight.normal, fontSize: 8, fontFamily: "monospace")))); path = Column( children: paths, @@ -135,8 +135,8 @@ class _PeerSettingsViewState extends State { ListTile( leading: Icon(CwtchIcons.onion_on, color: settings.current().mainTextColor), isThreeLine: true, - title: Text("ACN Circuit Info"), - subtitle: Text("In depth information about the path that the anonymous communication network is using to connect to this conversation"), + title: Text(AppLocalizations.of(context)!.labelACNCircuitInfo), + subtitle: Text(AppLocalizations.of(context)!.descriptionACNCircuitInfo), trailing: path, ), SizedBox( diff --git a/lib/widgets/folderpicker.dart b/lib/widgets/folderpicker.dart index b56e5432..9423aec4 100644 --- a/lib/widgets/folderpicker.dart +++ b/lib/widgets/folderpicker.dart @@ -63,7 +63,7 @@ class _CwtchFolderPickerState extends State { } }, icon: Icon(Icons.folder), - tooltip: widget.tooltip, //todo: l18n + tooltip: widget.tooltip, ))); } }