fix translations for new feature, use icon
continuous-integration/drone/pr Build is running Details

This commit is contained in:
Dan Ballard 2022-12-05 12:26:17 -08:00
parent d4546199e4
commit 6746abacd7
19 changed files with 114 additions and 45 deletions

View File

@ -1,6 +1,10 @@
{ {
"@@locale": "cy", "@@locale": "cy",
"@@last_modified": "2022-11-18T15:19:11+01:00", "@@last_modified": "2022-12-05T21:06:07+01:00",
"profileEnabledDescription": "Start or stop the profile",
"profileAutostartDescription": "Controls if the profile will be automatically launched on startup",
"profileEnabled": "Enable",
"profileAutostartLabel": "Autostart",
"localePtBr": "Brazilian Portuguese \/ Português do Brasil", "localePtBr": "Brazilian Portuguese \/ Português do Brasil",
"localeNl": "Dutch \/ Dutch", "localeNl": "Dutch \/ Dutch",
"experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes", "experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes",

View File

@ -1,6 +1,10 @@
{ {
"@@locale": "da", "@@locale": "da",
"@@last_modified": "2022-11-18T15:19:11+01:00", "@@last_modified": "2022-12-05T21:06:07+01:00",
"profileEnabledDescription": "Start or stop the profile",
"profileAutostartDescription": "Controls if the profile will be automatically launched on startup",
"profileEnabled": "Enable",
"profileAutostartLabel": "Autostart",
"localePtBr": "Brazilian Portuguese \/ Português do Brasil", "localePtBr": "Brazilian Portuguese \/ Português do Brasil",
"localeNl": "Dutch \/ Dutch", "localeNl": "Dutch \/ Dutch",
"experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes", "experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes",

View File

@ -1,14 +1,18 @@
{ {
"@@locale": "de", "@@locale": "de",
"@@last_modified": "2022-11-18T15:19:11+01:00", "@@last_modified": "2022-12-05T21:06:07+01:00",
"localePtBr": "Brazilian Portuguese \/ Português do Brasil", "profileEnabledDescription": "Start or stop the profile",
"localeNl": "Dutch \/ Dutch", "profileAutostartDescription": "Controls if the profile will be automatically launched on startup",
"experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes", "profileEnabled": "Enable",
"enableExperimentQRCode": "QR Codes", "profileAutostartLabel": "Autostart",
"shareMenuQRCode": "Show QR Code", "acquiringTicketsFromServer": "Antispam-Herausforderung meistern",
"shareProfileMenuTooltop": "Share profile via...", "acquiredTicketsFromServer": "Antispam-Herausforderung abgeschlossen",
"acquiredTicketsFromServer": "Antispam Challenge Complete", "shareProfileMenuTooltop": "Profil teilen über...",
"acquiringTicketsFromServer": "Performing Antispam Challenge", "localeNl": "Niederländisch \/ Nederlands",
"localePtBr": "Brasilianisches Portugiesisch \/ Português do Brasil",
"shareMenuQRCode": "QR-Code anzeigen",
"enableExperimentQRCode": "QR-Codes",
"experimentQRCodeDescription": "QR-Code-Unterstützung ermöglicht den Austausch von Daten (z. B. Profilidentität) über QR-Codes",
"localeIt": "Italienisch \/ Italiano", "localeIt": "Italienisch \/ Italiano",
"errorDownloadDirectoryDoesNotExist": "Die Dateifreigabe kann nicht aktiviert werden, da der Download-Ordner nicht festgelegt wurde oder auf einen nicht vorhandenen Ordner festgelegt ist.", "errorDownloadDirectoryDoesNotExist": "Die Dateifreigabe kann nicht aktiviert werden, da der Download-Ordner nicht festgelegt wurde oder auf einen nicht vorhandenen Ordner festgelegt ist.",
"localeTr": "Türkisch \/ Türk", "localeTr": "Türkisch \/ Türk",

View File

@ -1,6 +1,10 @@
{ {
"@@locale": "el", "@@locale": "el",
"@@last_modified": "2022-11-18T15:19:11+01:00", "@@last_modified": "2022-12-05T21:06:07+01:00",
"profileEnabledDescription": "Start or stop the profile",
"profileAutostartDescription": "Controls if the profile will be automatically launched on startup",
"profileEnabled": "Enable",
"profileAutostartLabel": "Autostart",
"localePtBr": "Brazilian Portuguese \/ Português do Brasil", "localePtBr": "Brazilian Portuguese \/ Português do Brasil",
"localeNl": "Dutch \/ Dutch", "localeNl": "Dutch \/ Dutch",
"experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes", "experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes",

View File

@ -1,6 +1,10 @@
{ {
"@@locale": "en", "@@locale": "en",
"@@last_modified": "2022-11-18T15:19:11+01:00", "@@last_modified": "2022-12-05T21:06:07+01:00",
"profileEnabledDescription": "Start or stop the profile",
"profileAutostartDescription": "Controls if the profile will be automatically launched on startup",
"profileEnabled": "Enable",
"profileAutostartLabel": "Autostart",
"localePtBr": "Brazilian Portuguese \/ Português do Brasil", "localePtBr": "Brazilian Portuguese \/ Português do Brasil",
"localeNl": "Dutch \/ Dutch", "localeNl": "Dutch \/ Dutch",
"experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes", "experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes",

View File

@ -1,6 +1,10 @@
{ {
"@@locale": "es", "@@locale": "es",
"@@last_modified": "2022-11-18T15:19:11+01:00", "@@last_modified": "2022-12-05T21:06:07+01:00",
"profileEnabledDescription": "Start or stop the profile",
"profileAutostartDescription": "Controls if the profile will be automatically launched on startup",
"profileEnabled": "Enable",
"profileAutostartLabel": "Autostart",
"localePtBr": "Brazilian Portuguese \/ Português do Brasil", "localePtBr": "Brazilian Portuguese \/ Português do Brasil",
"localeNl": "Dutch \/ Dutch", "localeNl": "Dutch \/ Dutch",
"experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes", "experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes",

View File

@ -1,14 +1,18 @@
{ {
"@@locale": "fr", "@@locale": "fr",
"@@last_modified": "2022-11-18T15:19:11+01:00", "@@last_modified": "2022-12-05T21:06:07+01:00",
"localePtBr": "Brazilian Portuguese \/ Português do Brasil", "profileEnabledDescription": "Start or stop the profile",
"localeNl": "Dutch \/ Dutch", "profileAutostartDescription": "Controls if the profile will be automatically launched on startup",
"experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes", "profileEnabled": "Enable",
"profileAutostartLabel": "Autostart",
"shareProfileMenuTooltop": "Partager le profil via...",
"shareMenuQRCode": "Afficher le QR code",
"localePtBr": "Portugais du Brésil \/ Português do Brasil",
"localeNl": "néerlandais \/ néerlandais",
"experimentQRCodeDescription": "La prise en charge des QR codes permet de partager des données (telles que l'identité du profil) par des QR codes \n",
"enableExperimentQRCode": "QR Codes", "enableExperimentQRCode": "QR Codes",
"shareMenuQRCode": "Show QR Code", "acquiringTicketsFromServer": "Réaliser un défi anti-spam",
"shareProfileMenuTooltop": "Share profile via...", "acquiredTicketsFromServer": "Défi anti-spam terminé",
"acquiredTicketsFromServer": "Antispam Challenge Complete",
"acquiringTicketsFromServer": "Performing Antispam Challenge",
"errorDownloadDirectoryDoesNotExist": "Le partage de fichiers ne peut pas être activé car le dossier de téléchargement n'a pas été défini ou est défini sur un dossier qui n'existe pas.", "errorDownloadDirectoryDoesNotExist": "Le partage de fichiers ne peut pas être activé car le dossier de téléchargement n'a pas été défini ou est défini sur un dossier qui n'existe pas.",
"localeIt": "italien \/ italien", "localeIt": "italien \/ italien",
"localeTr": "Turc \/ Türk", "localeTr": "Turc \/ Türk",

View File

@ -1,6 +1,10 @@
{ {
"@@locale": "it", "@@locale": "it",
"@@last_modified": "2022-11-18T15:19:11+01:00", "@@last_modified": "2022-12-05T21:06:07+01:00",
"profileEnabledDescription": "Start or stop the profile",
"profileAutostartDescription": "Controls if the profile will be automatically launched on startup",
"profileEnabled": "Enable",
"profileAutostartLabel": "Autostart",
"localePtBr": "Brazilian Portuguese \/ Português do Brasil", "localePtBr": "Brazilian Portuguese \/ Português do Brasil",
"localeNl": "Dutch \/ Dutch", "localeNl": "Dutch \/ Dutch",
"tooltipPinConversation": "Aggiungi la conversazione in cima alla lista \"Conversazioni\"", "tooltipPinConversation": "Aggiungi la conversazione in cima alla lista \"Conversazioni\"",

View File

@ -1,6 +1,10 @@
{ {
"@@locale": "lb", "@@locale": "lb",
"@@last_modified": "2022-11-18T15:19:11+01:00", "@@last_modified": "2022-12-05T21:06:07+01:00",
"profileEnabledDescription": "Start or stop the profile",
"profileAutostartDescription": "Controls if the profile will be automatically launched on startup",
"profileEnabled": "Enable",
"profileAutostartLabel": "Autostart",
"localePtBr": "Brazilian Portuguese \/ Português do Brasil", "localePtBr": "Brazilian Portuguese \/ Português do Brasil",
"localeNl": "Dutch \/ Dutch", "localeNl": "Dutch \/ Dutch",
"experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes", "experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes",

View File

@ -1,7 +1,11 @@
{ {
"@@locale": "nl", "@@locale": "nl",
"@@last_modified": "2022-11-18T15:19:11+01:00", "@@last_modified": "2022-12-05T21:06:07+01:00",
"localePtBr": "Brazilian Portuguese \/ Português do Brasil", "profileEnabledDescription": "Start or stop the profile",
"profileAutostartDescription": "Controls if the profile will be automatically launched on startup",
"profileEnabled": "Enable",
"profileAutostartLabel": "Autostart",
"localePtBr": "Braziliaans Portugees \/ Português do Brasil",
"acquiredTicketsFromServer": "Anti-spam uitdaging voltooid", "acquiredTicketsFromServer": "Anti-spam uitdaging voltooid",
"acquiringTicketsFromServer": "Anti-spam uitdaging uitvoeren", "acquiringTicketsFromServer": "Anti-spam uitdaging uitvoeren",
"acknowledgedLabel": "Erkend", "acknowledgedLabel": "Erkend",

View File

@ -1,6 +1,10 @@
{ {
"@@locale": "no", "@@locale": "no",
"@@last_modified": "2022-11-18T15:19:11+01:00", "@@last_modified": "2022-12-05T21:06:07+01:00",
"profileEnabledDescription": "Start or stop the profile",
"profileAutostartDescription": "Controls if the profile will be automatically launched on startup",
"profileEnabled": "Enable",
"profileAutostartLabel": "Autostart",
"localePtBr": "Brazilian Portuguese \/ Português do Brasil", "localePtBr": "Brazilian Portuguese \/ Português do Brasil",
"localeNl": "Dutch \/ Dutch", "localeNl": "Dutch \/ Dutch",
"experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes", "experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes",

View File

@ -1,6 +1,10 @@
{ {
"@@locale": "pl", "@@locale": "pl",
"@@last_modified": "2022-11-18T15:19:11+01:00", "@@last_modified": "2022-12-05T21:06:07+01:00",
"profileEnabledDescription": "Start or stop the profile",
"profileAutostartDescription": "Controls if the profile will be automatically launched on startup",
"profileEnabled": "Enable",
"profileAutostartLabel": "Autostart",
"localePtBr": "Brazilian Portuguese \/ Português do Brasil", "localePtBr": "Brazilian Portuguese \/ Português do Brasil",
"localeNl": "Dutch \/ Dutch", "localeNl": "Dutch \/ Dutch",
"experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes", "experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes",

View File

@ -1,6 +1,10 @@
{ {
"@@locale": "pt", "@@locale": "pt",
"@@last_modified": "2022-11-18T15:19:11+01:00", "@@last_modified": "2022-12-05T21:06:07+01:00",
"profileEnabledDescription": "Start or stop the profile",
"profileAutostartDescription": "Controls if the profile will be automatically launched on startup",
"profileEnabled": "Enable",
"profileAutostartLabel": "Autostart",
"localePtBr": "Brazilian Portuguese \/ Português do Brasil", "localePtBr": "Brazilian Portuguese \/ Português do Brasil",
"localeNl": "Dutch \/ Dutch", "localeNl": "Dutch \/ Dutch",
"experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes", "experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes",

View File

@ -1,6 +1,10 @@
{ {
"@@locale": "pt_BR", "@@locale": "pt_BR",
"@@last_modified": "2022-11-18T15:19:11+01:00", "@@last_modified": "2022-12-05T21:06:07+01:00",
"profileEnabledDescription": "Start or stop the profile",
"profileAutostartDescription": "Controls if the profile will be automatically launched on startup",
"profileEnabled": "Enable",
"profileAutostartLabel": "Autostart",
"localePtBr": "Português do Brasil \/ Português do Brasil", "localePtBr": "Português do Brasil \/ Português do Brasil",
"localeNl": "Dutch \/ Dutch", "localeNl": "Dutch \/ Dutch",
"experimentQRCodeDescription": "O suporte a QR Code permite o compartilhamento de dados (como identidade de perfil) através dos QR Codes", "experimentQRCodeDescription": "O suporte a QR Code permite o compartilhamento de dados (como identidade de perfil) através dos QR Codes",
@ -289,7 +293,7 @@
"password1Label": "Senha", "password1Label": "Senha",
"currentPasswordLabel": "Senha Atual", "currentPasswordLabel": "Senha Atual",
"yourDisplayName": "Seu nome de exibição", "yourDisplayName": "Seu nome de exibição",
"profileOnionLabel": "Envie este endereço para contatos que você deseja se conectar", "profileOnionLabel": "Send this address to contacts you want to connect with",
"noPasswordWarning": "Não usar uma senha nesta conta significa que todos os dados armazenados localmente não serão criptografados", "noPasswordWarning": "Não usar uma senha nesta conta significa que todos os dados armazenados localmente não serão criptografados",
"radioNoPassword": "Descriptografado (Sem senha)", "radioNoPassword": "Descriptografado (Sem senha)",
"radioUsePassword": "Senha", "radioUsePassword": "Senha",
@ -299,13 +303,13 @@
"profileName": "Nome de exibição", "profileName": "Nome de exibição",
"editProfileTitle": "Editar perfil", "editProfileTitle": "Editar perfil",
"addProfileTitle": "Adicionar novo perfil", "addProfileTitle": "Adicionar novo perfil",
"deleteBtn": "Deletar", "deleteBtn": "Delete",
"unblockBtn": "Desbloquear Contato", "unblockBtn": "Desbloquear Contato",
"dontSavePeerHistory": "Deletar histórico", "dontSavePeerHistory": "Deletar histórico",
"savePeerHistoryDescription": "Determina se deve excluir algum histórico associado com o contato.", "savePeerHistoryDescription": "Determina se deve excluir algum histórico associado com o contato.",
"savePeerHistory": "Salvar histórico", "savePeerHistory": "Salvar histórico",
"blockBtn": "Bloquear Contato", "blockBtn": "Bloquear Contato",
"saveBtn": "Salvar", "saveBtn": "Save",
"displayNameLabel": "Nome de Exibição", "displayNameLabel": "Nome de Exibição",
"copiedToClipboardNotification": "Copiado", "copiedToClipboardNotification": "Copiado",
"addressLabel": "Endereço", "addressLabel": "Endereço",
@ -339,7 +343,7 @@
"serverConnectivityConnected": "Servidor Conectado", "serverConnectivityConnected": "Servidor Conectado",
"serverInfo": "Informação do Servidor", "serverInfo": "Informação do Servidor",
"invitationLabel": "Convite", "invitationLabel": "Convite",
"serverLabel": "Servidor", "serverLabel": "Server",
"search": "Pesquisar...", "search": "Pesquisar...",
"blocked": "Bloqueado", "blocked": "Bloqueado",
"pasteAddressToAddContact": "… cole um endereço aqui para adicionar um contato…", "pasteAddressToAddContact": "… cole um endereço aqui para adicionar um contato…",

View File

@ -1,6 +1,10 @@
{ {
"@@locale": "ro", "@@locale": "ro",
"@@last_modified": "2022-11-18T15:19:11+01:00", "@@last_modified": "2022-12-05T21:06:07+01:00",
"profileEnabledDescription": "Start or stop the profile",
"profileAutostartDescription": "Controls if the profile will be automatically launched on startup",
"profileEnabled": "Enable",
"profileAutostartLabel": "Autostart",
"localePtBr": "Brazilian Portuguese \/ Português do Brasil", "localePtBr": "Brazilian Portuguese \/ Português do Brasil",
"localeNl": "Dutch \/ Dutch", "localeNl": "Dutch \/ Dutch",
"experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes", "experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes",

View File

@ -1,6 +1,10 @@
{ {
"@@locale": "ru", "@@locale": "ru",
"@@last_modified": "2022-11-18T15:19:11+01:00", "@@last_modified": "2022-12-05T21:06:07+01:00",
"profileEnabledDescription": "Start or stop the profile",
"profileAutostartDescription": "Controls if the profile will be automatically launched on startup",
"profileEnabled": "Enable",
"profileAutostartLabel": "Autostart",
"localePtBr": "Brazilian Portuguese \/ Português do Brasil", "localePtBr": "Brazilian Portuguese \/ Português do Brasil",
"localeNl": "Dutch \/ Dutch", "localeNl": "Dutch \/ Dutch",
"experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes", "experimentQRCodeDescription": "QR Code support allows sharing data (such as profile identity) by QR Codes",

View File

@ -1,7 +1,11 @@
{ {
"@@locale": "tr", "@@locale": "tr",
"@@last_modified": "2022-11-18T15:19:11+01:00", "@@last_modified": "2022-12-05T21:06:07+01:00",
"localePtBr": "Brazilian Portuguese \/ Português do Brasil", "profileEnabledDescription": "Start or stop the profile",
"profileAutostartDescription": "Controls if the profile will be automatically launched on startup",
"profileEnabled": "Enable",
"profileAutostartLabel": "Autostart",
"localePtBr": "Brezilya Portekizcesi \/ Português do Brasil",
"experimentQRCodeDescription": "QR Kod desteği profil kimliği gibi verilerin QR Kodla paylaşılmasına olanak tanır", "experimentQRCodeDescription": "QR Kod desteği profil kimliği gibi verilerin QR Kodla paylaşılmasına olanak tanır",
"acquiringTicketsFromServer": "Spame Karşı Sınama", "acquiringTicketsFromServer": "Spame Karşı Sınama",
"acquiredTicketsFromServer": "Spame Karşı Sınama Tamamlandı", "acquiredTicketsFromServer": "Spame Karşı Sınama Tamamlandı",

View File

@ -174,8 +174,8 @@ class _AddEditProfileViewState extends State<AddEditProfileView> {
Visibility( Visibility(
visible: Provider.of<ProfileInfoState>(context).onion.isNotEmpty, visible: Provider.of<ProfileInfoState>(context).onion.isNotEmpty,
child: SwitchListTile( child: SwitchListTile(
title: Text(AppLocalizations.of(context)!.serverEnabled, style: TextStyle(color: Provider.of<Settings>(context).current().mainTextColor)), title: Text(AppLocalizations.of(context)!.profileEnabled, style: TextStyle(color: Provider.of<Settings>(context).current().mainTextColor)),
subtitle: Text(AppLocalizations.of(context)!.serverEnabledDescription), subtitle: Text(AppLocalizations.of(context)!.profileEnabledDescription),
value: Provider.of<ProfileInfoState>(context).enabled, value: Provider.of<ProfileInfoState>(context).enabled,
onChanged: (bool value) { onChanged: (bool value) {
Provider.of<ProfileInfoState>(context).enabled = value; Provider.of<ProfileInfoState>(context).enabled = value;
@ -192,8 +192,8 @@ class _AddEditProfileViewState extends State<AddEditProfileView> {
// Auto start // Auto start
SwitchListTile( SwitchListTile(
title: Text(AppLocalizations.of(context)!.serverAutostartLabel, style: TextStyle(color: Provider.of<Settings>(context).current().mainTextColor)), title: Text(AppLocalizations.of(context)!.profileAutostartLabel, style: TextStyle(color: Provider.of<Settings>(context).current().mainTextColor)),
subtitle: Text(AppLocalizations.of(context)!.serverAutostartDescription), subtitle: Text(AppLocalizations.of(context)!.profileAutostartDescription),
value: Provider.of<ProfileInfoState>(context).autostart, value: Provider.of<ProfileInfoState>(context).autostart,
onChanged: (bool value) { onChanged: (bool value) {
Provider.of<ProfileInfoState>(context).autostart = value; Provider.of<ProfileInfoState>(context).autostart = value;
@ -397,6 +397,7 @@ class _AddEditProfileViewState extends State<AddEditProfileView> {
// match (and are provided if the user has requested an encrypted profile). // match (and are provided if the user has requested an encrypted profile).
if (_formKey.currentState!.validate()) { if (_formKey.currentState!.validate()) {
if (Provider.of<ProfileInfoState>(context, listen: false).onion.isEmpty) { if (Provider.of<ProfileInfoState>(context, listen: false).onion.isEmpty) {
// TODO: save autostart in create flow
if (usePassword == true) { if (usePassword == true) {
Provider.of<FlwtchState>(context, listen: false).cwtch.CreateProfile(ctrlrNick.value.text, ctrlrPass.value.text); Provider.of<FlwtchState>(context, listen: false).cwtch.CreateProfile(ctrlrNick.value.text, ctrlrPass.value.text);
Navigator.of(context).pop(); Navigator.of(context).pop();

View File

@ -116,9 +116,9 @@ class _ProfileImageState extends State<ProfileImage> {
Center( Center(
child: ImageIcon( child: Icon(
AssetImage("assets/core/negative_heart_512px.png"), CwtchIcons.negative_heart_24px,
size: widget.diameter / 1.25, size: widget.diameter / 1.5,
color: Provider.of<Settings>(context).theme.portraitOfflineBorderColor, color: Provider.of<Settings>(context).theme.portraitOfflineBorderColor,
) )