diff --git a/lib/l10n/intl_de.arb b/lib/l10n/intl_de.arb index bd883204..34d6c77f 100644 --- a/lib/l10n/intl_de.arb +++ b/lib/l10n/intl_de.arb @@ -1,6 +1,22 @@ { "@@locale": "de", - "@@last_modified": "2021-10-15T20:45:29+02:00", + "@@last_modified": "2021-11-02T19:44:05+01:00", + "enterServerPassword": "Enter password to unlock server", + "unlockProfileTip": "Please create or unlock a profile to begin!", + "unlockServerTip": "Please create or unlock a server to begin!", + "addServerTooltip": "Add new server", + "serversManagerTitleShort": "Servers", + "serversManagerTitleLong": "Servers You Host", + "saveServerButton": "Save Server", + "serverAutostartDescription": "Controls if the application will automatically launch the server on start", + "serverAutostartLabel": "Autostart", + "serverEnabledDescription": "Start or stop the server", + "serverEnabled": "Server Enabled", + "serverDescriptionDescription": "Your description of the server for personal management use only, will never be shared", + "serverDescriptionLabel": "Server Description", + "serverAddress": "Server Address", + "editServerTitle": "Edit Server", + "addServerTitle": "Add Server", "titleManageProfilesShort": "Profiles", "descriptionStreamerMode": "If turned on, this option makes the app more visually private for streaming or presenting with, for example, hiding profile and contact addresses", "descriptionFileSharing": "The file sharing experiment allows you to send and receive files from Cwtch contacts and groups. Note that sharing a file with a group will result in members of that group connecting with you directly over Cwtch to download it.", @@ -11,7 +27,7 @@ "messageEnableFileSharing": "Enable the file sharing experiment to view this message.", "labelFilesize": "Size", "labelFilename": "Filename", - "downloadFileButton": "Download", + "downloadFileButton": "Herunterladen", "openFolderButton": "Open Folder", "retrievingManifestMessage": "Retrieving file information...", "streamerModeLabel": "Streamer\/Presentation Mode", diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb index 4ff01827..e44616f2 100644 --- a/lib/l10n/intl_en.arb +++ b/lib/l10n/intl_en.arb @@ -1,6 +1,22 @@ { "@@locale": "en", - "@@last_modified": "2021-10-15T20:45:29+02:00", + "@@last_modified": "2021-11-02T19:44:05+01:00", + "enterServerPassword": "Enter password to unlock server", + "unlockProfileTip": "Please create or unlock a profile to begin!", + "unlockServerTip": "Please create or unlock a server to begin!", + "addServerTooltip": "Add new server", + "serversManagerTitleShort": "Servers", + "serversManagerTitleLong": "Servers You Host", + "saveServerButton": "Save Server", + "serverAutostartDescription": "Controls if the application will automatically launch the server on start", + "serverAutostartLabel": "Autostart", + "serverEnabledDescription": "Start or stop the server", + "serverEnabled": "Server Enabled", + "serverDescriptionDescription": "Your description of the server for personal management use only, will never be shared", + "serverDescriptionLabel": "Server Description", + "serverAddress": "Server Address", + "editServerTitle": "Edit Server", + "addServerTitle": "Add Server", "titleManageProfilesShort": "Profiles", "descriptionStreamerMode": "If turned on, this option makes the app more visually private for streaming or presenting with, for example, hiding profile and contact addresses", "descriptionFileSharing": "The file sharing experiment allows you to send and receive files from Cwtch contacts and groups. Note that sharing a file with a group will result in members of that group connecting with you directly over Cwtch to download it.", diff --git a/lib/l10n/intl_es.arb b/lib/l10n/intl_es.arb index 5b234376..f5255737 100644 --- a/lib/l10n/intl_es.arb +++ b/lib/l10n/intl_es.arb @@ -1,6 +1,22 @@ { "@@locale": "es", - "@@last_modified": "2021-10-15T20:45:29+02:00", + "@@last_modified": "2021-11-02T19:44:05+01:00", + "enterServerPassword": "Enter password to unlock server", + "unlockProfileTip": "Please create or unlock a profile to begin!", + "unlockServerTip": "Please create or unlock a server to begin!", + "addServerTooltip": "Add new server", + "serversManagerTitleShort": "Servers", + "serversManagerTitleLong": "Servers You Host", + "saveServerButton": "Save Server", + "serverAutostartDescription": "Controls if the application will automatically launch the server on start", + "serverAutostartLabel": "Autostart", + "serverEnabledDescription": "Start or stop the server", + "serverEnabled": "Server Enabled", + "serverDescriptionDescription": "Your description of the server for personal management use only, will never be shared", + "serverDescriptionLabel": "Server Description", + "serverAddress": "Server Address", + "editServerTitle": "Edit Server", + "addServerTitle": "Add Server", "titleManageProfilesShort": "Profiles", "descriptionStreamerMode": "If turned on, this option makes the app more visually private for streaming or presenting with, for example, hiding profile and contact addresses", "descriptionFileSharing": "The file sharing experiment allows you to send and receive files from Cwtch contacts and groups. Note that sharing a file with a group will result in members of that group connecting with you directly over Cwtch to download it.", diff --git a/lib/l10n/intl_fr.arb b/lib/l10n/intl_fr.arb index 0add5f25..6c083644 100644 --- a/lib/l10n/intl_fr.arb +++ b/lib/l10n/intl_fr.arb @@ -1,7 +1,23 @@ { "@@locale": "fr", - "@@last_modified": "2021-10-15T20:45:29+02:00", - "titleManageProfilesShort": "Profiles", + "@@last_modified": "2021-11-02T19:44:05+01:00", + "enterServerPassword": "Enter password to unlock server", + "unlockProfileTip": "Please create or unlock a profile to begin!", + "unlockServerTip": "Please create or unlock a server to begin!", + "addServerTooltip": "Add new server", + "serversManagerTitleShort": "Servers", + "serversManagerTitleLong": "Servers You Host", + "saveServerButton": "Save Server", + "serverAutostartDescription": "Controls if the application will automatically launch the server on start", + "serverAutostartLabel": "Autostart", + "serverEnabledDescription": "Start or stop the server", + "serverEnabled": "Server Enabled", + "serverDescriptionDescription": "Your description of the server for personal management use only, will never be shared", + "serverDescriptionLabel": "Server Description", + "serverAddress": "Server Address", + "editServerTitle": "Edit Server", + "addServerTitle": "Add Server", + "titleManageProfilesShort": "Profils", "descriptionStreamerMode": "Si elle est activée, cette option donne un rendu visuel plus privé à l'application pour la diffusion en direct ou la présentation, par exemple, en masquant profil et adresses de contacts.", "descriptionFileSharing": "L'expérience de partage de fichiers vous permet d'envoyer et de recevoir des fichiers à partir de contacts et de groupes Cwtch. Notez que si vous partagez un fichier avec un groupe, les membres de ce groupe se connecteront avec vous directement via Cwtch pour le télécharger.", "settingFileSharing": "Partage de fichiers", diff --git a/lib/l10n/intl_it.arb b/lib/l10n/intl_it.arb index 95878777..f0626eb6 100644 --- a/lib/l10n/intl_it.arb +++ b/lib/l10n/intl_it.arb @@ -1,6 +1,22 @@ { "@@locale": "it", - "@@last_modified": "2021-10-15T20:45:29+02:00", + "@@last_modified": "2021-11-02T19:44:05+01:00", + "enterServerPassword": "Enter password to unlock server", + "unlockProfileTip": "Please create or unlock a profile to begin!", + "unlockServerTip": "Please create or unlock a server to begin!", + "addServerTooltip": "Add new server", + "serversManagerTitleShort": "Servers", + "serversManagerTitleLong": "Servers You Host", + "saveServerButton": "Save Server", + "serverAutostartDescription": "Controls if the application will automatically launch the server on start", + "serverAutostartLabel": "Autostart", + "serverEnabledDescription": "Start or stop the server", + "serverEnabled": "Server Enabled", + "serverDescriptionDescription": "Your description of the server for personal management use only, will never be shared", + "serverDescriptionLabel": "Server Description", + "serverAddress": "Server Address", + "editServerTitle": "Edit Server", + "addServerTitle": "Add Server", "titleManageProfilesShort": "Profiles", "descriptionStreamerMode": "If turned on, this option makes the app more visually private for streaming or presenting with, for example, hiding profile and contact addresses", "descriptionFileSharing": "L'esperimento di condivisione dei file ti consente di inviare e ricevere file dai contatti e dai gruppi di Cwtch. Tieni presente che la condivisione di un file con un gruppo farà sì che i membri di quel gruppo si colleghino con te direttamente su Cwtch per scaricarlo.", diff --git a/lib/l10n/intl_pl.arb b/lib/l10n/intl_pl.arb index 84d27a9d..fdfc189a 100644 --- a/lib/l10n/intl_pl.arb +++ b/lib/l10n/intl_pl.arb @@ -1,21 +1,37 @@ { "@@locale": "pl", - "@@last_modified": "2021-10-15T20:45:29+02:00", - "titleManageProfilesShort": "Profiles", + "@@last_modified": "2021-11-02T19:44:05+01:00", + "enterServerPassword": "Enter password to unlock server", + "unlockProfileTip": "Please create or unlock a profile to begin!", + "unlockServerTip": "Please create or unlock a server to begin!", + "addServerTooltip": "Add new server", + "serversManagerTitleShort": "Servers", + "serversManagerTitleLong": "Servers You Host", + "saveServerButton": "Save Server", + "serverAutostartDescription": "Controls if the application will automatically launch the server on start", + "serverAutostartLabel": "Autostart", + "serverEnabledDescription": "Start or stop the server", + "serverEnabled": "Server Enabled", + "serverDescriptionDescription": "Your description of the server for personal management use only, will never be shared", + "serverDescriptionLabel": "Server Description", + "serverAddress": "Server Address", + "editServerTitle": "Edit Server", + "addServerTitle": "Add Server", + "titleManageProfilesShort": "Profile", "descriptionStreamerMode": "If turned on, this option makes the app more visually private for streaming or presenting with, for example, hiding profile and contact addresses", - "descriptionFileSharing": "The file sharing experiment allows you to send and receive files from Cwtch contacts and groups. Note that sharing a file with a group will result in members of that group connecting with you directly over Cwtch to download it.", - "settingFileSharing": "File Sharing", - "tooltipSendFile": "Send File", - "messageFileOffered": "Contact is offering to send you a file", - "messageFileSent": "You sent a file", - "messageEnableFileSharing": "Enable the file sharing experiment to view this message.", - "labelFilesize": "Size", - "labelFilename": "Filename", - "downloadFileButton": "Download", - "openFolderButton": "Open Folder", - "retrievingManifestMessage": "Retrieving file information...", - "streamerModeLabel": "Streamer\/Presentation Mode", - "archiveConversation": "Archive this Conversation", + "descriptionFileSharing": "Eksperyment udostępniania plików pozwala na wysyłanie i odbieranie plików od kontaktów i grup Cwtch. Zauważ, że udostępnienie pliku grupie spowoduje, że członkowie tej grupy połączą się z Tobą bezpośrednio przez Cwtch, aby go pobrać.", + "settingFileSharing": "Udostępnianie plików", + "tooltipSendFile": "Wyślij plik", + "messageFileOffered": "Kontakt proponuje wysłanie Ci pliku", + "messageFileSent": "Plik został wysłany", + "messageEnableFileSharing": "Włącz eksperyment udostępniania plików, aby wyświetlić tę wiadomość.", + "labelFilesize": "Rozmiar", + "labelFilename": "Nazwa pliku", + "downloadFileButton": "Pobierz", + "openFolderButton": "Otwórz folder", + "retrievingManifestMessage": "Pobieranie informacji o pliku...", + "streamerModeLabel": "Tryb streamera\/prezentacji", + "archiveConversation": "Zarchiwizuj tę rozmowę", "profileOnionLabel": "Send this address to contacts you want to connect with", "addPeerTab": "Add a contact", "addPeer": "Add Contact", @@ -28,7 +44,7 @@ "dontSavePeerHistory": "Delete History", "unblockBtn": "Unblock Contact", "blockUnknownLabel": "Block Unknown Contacts", - "blockUnknownConnectionsEnabledDescription": "Connections from unknown contacts are blocked. You can change this in Settings", + "blockUnknownConnectionsEnabledDescription": "Połączenia od nieznanych kontaktów są blokowane. Można to zmienić w Ustawieniach", "networkStatusConnecting": "Connecting to network and contacts...", "showMessageButton": "Show Message", "blockedMessageMessage": "This message is from a profile you have blocked.", diff --git a/lib/l10n/intl_pt.arb b/lib/l10n/intl_pt.arb index 9e593a6b..5cac141c 100644 --- a/lib/l10n/intl_pt.arb +++ b/lib/l10n/intl_pt.arb @@ -1,6 +1,22 @@ { "@@locale": "pt", - "@@last_modified": "2021-10-15T20:45:29+02:00", + "@@last_modified": "2021-11-02T19:44:05+01:00", + "enterServerPassword": "Enter password to unlock server", + "unlockProfileTip": "Please create or unlock a profile to begin!", + "unlockServerTip": "Please create or unlock a server to begin!", + "addServerTooltip": "Add new server", + "serversManagerTitleShort": "Servers", + "serversManagerTitleLong": "Servers You Host", + "saveServerButton": "Save Server", + "serverAutostartDescription": "Controls if the application will automatically launch the server on start", + "serverAutostartLabel": "Autostart", + "serverEnabledDescription": "Start or stop the server", + "serverEnabled": "Server Enabled", + "serverDescriptionDescription": "Your description of the server for personal management use only, will never be shared", + "serverDescriptionLabel": "Server Description", + "serverAddress": "Server Address", + "editServerTitle": "Edit Server", + "addServerTitle": "Add Server", "titleManageProfilesShort": "Profiles", "descriptionStreamerMode": "If turned on, this option makes the app more visually private for streaming or presenting with, for example, hiding profile and contact addresses", "descriptionFileSharing": "The file sharing experiment allows you to send and receive files from Cwtch contacts and groups. Note that sharing a file with a group will result in members of that group connecting with you directly over Cwtch to download it.", diff --git a/lib/views/addeditservers.dart b/lib/views/addeditservers.dart index 32030c30..57cb18d8 100644 --- a/lib/views/addeditservers.dart +++ b/lib/views/addeditservers.dart @@ -15,7 +15,7 @@ import '../errorHandler.dart'; import '../main.dart'; import '../config.dart'; -/// Global Settings View provides access to modify all the Globally Relevant Settings including Locale, Theme and Experiments. +/// Pane to add or edit a server class AddEditServerView extends StatefulWidget { const AddEditServerView(); @@ -56,7 +56,7 @@ class _AddEditServerViewState extends State { return Scaffold( appBar: AppBar( - title: ctrlrOnion.text.isEmpty ? Text("Add Server") : Text("Edit Server"), //AppLocalizations.of(context)!.cwtchSettingsTitle), + title: ctrlrOnion.text.isEmpty ? Text(AppLocalizations.of(context)!.addServerTitle) : Text(AppLocalizations.of(context)!.editServerTitle), //), ), body: _buildSettingsList(), ); @@ -94,7 +94,7 @@ class _AddEditServerViewState extends State { SizedBox( height: 20, ), - CwtchLabel(label: "Onion"), //AppLocalizations.of(context)!.displayNameLabel), + CwtchLabel(label: AppLocalizations.of(context)!.serverAddress), SizedBox( height: 20, ), @@ -108,7 +108,8 @@ class _AddEditServerViewState extends State { SizedBox( height: 20, ), - CwtchLabel(label: "Description"), //AppLocalizations.of(context)!.displayNameLabel), + CwtchLabel(label: AppLocalizations.of(context)!.serverDescriptionLabel), + Text(AppLocalizations.of(context)!.serverDescriptionDescription), SizedBox( height: 20, ), @@ -127,8 +128,8 @@ class _AddEditServerViewState extends State { Visibility( visible: serverInfoState.onion.isNotEmpty, child: SwitchListTile( - title: Text(/*AppLocalizations.of(context)!.blockUnknownLabel*/ "Enabled", style: TextStyle(color: settings.current().mainTextColor())), - subtitle: Text(AppLocalizations.of(context)!.descriptionBlockUnknownConnections), + title: Text(AppLocalizations.of(context)!.serverEnabled, style: TextStyle(color: settings.current().mainTextColor())), + subtitle: Text(AppLocalizations.of(context)!.serverEnabledDescription), value: serverInfoState.running, onChanged: (bool value) { serverInfoState.setRunning(value); @@ -146,8 +147,8 @@ class _AddEditServerViewState extends State { // Auto start SwitchListTile( - title: Text(/*AppLocalizations.of(context)!.blockUnknownLabel*/ "Autostart", style: TextStyle(color: settings.current().mainTextColor())), - subtitle: Text(AppLocalizations.of(context)!.descriptionBlockUnknownConnections), + title: Text(AppLocalizations.of(context)!.serverAutostartLabel, style: TextStyle(color: settings.current().mainTextColor())), + subtitle: Text(AppLocalizations.of(context)!.serverAutostartDescription), value: serverInfoState.autoStart, onChanged: (bool value) { serverInfoState.setAutostart(value); @@ -273,7 +274,7 @@ class _AddEditServerViewState extends State { child: ElevatedButton( onPressed: serverInfoState.onion.isEmpty ? _createPressed : _savePressed, child: Text( - serverInfoState.onion.isEmpty ? "Add Server" : "Save Server",//AppLocalizations.of(context)!.addNewProfileBtn : AppLocalizations.of(context)!.saveProfileBtn, + serverInfoState.onion.isEmpty ? AppLocalizations.of(context)!.addServerTitle : AppLocalizations.of(context)!.saveServerButton, textAlign: TextAlign.center, ), ), diff --git a/lib/views/profilemgrview.dart b/lib/views/profilemgrview.dart index ea896a7d..2067f578 100644 --- a/lib/views/profilemgrview.dart +++ b/lib/views/profilemgrview.dart @@ -235,9 +235,9 @@ class _ProfileMgrViewState extends State { ).toList(); if (tiles.isEmpty) { - return const Center( - child: const Text( - "Please create or unlock a profile to begin!", + return Center( + child: Text( + AppLocalizations.of(context)!.unlockProfileTip, textAlign: TextAlign.center, )); } diff --git a/lib/views/serversview.dart b/lib/views/serversview.dart index dbec10cd..a9696df8 100644 --- a/lib/views/serversview.dart +++ b/lib/views/serversview.dart @@ -31,15 +31,15 @@ class _ServersView extends State { Widget build(BuildContext context) { return Scaffold( appBar: AppBar( - title: Text("Servers you host"), //AppLocalizations.of(context)!.torNetworkStatus), + title: Text( MediaQuery.of(context).size.width > 600 ? AppLocalizations.of(context)!.serversManagerTitleLong : AppLocalizations.of(context)!.serversManagerTitleShort), actions: getActions(), ), floatingActionButton: FloatingActionButton( onPressed: _pushAddServer, - tooltip: "Add new Server", //AppLocalizations.of(context)!.addNewProfileBtn, + tooltip: AppLocalizations.of(context)!.addServerTooltip, child: Icon( Icons.add, - semanticLabel: "Add new Server", //AppLocalizations.of(context)!.addNewProfileBtn, + semanticLabel: AppLocalizations.of(context)!.addServerTooltip, ), ), body: Consumer( @@ -58,9 +58,9 @@ class _ServersView extends State { ).toList(); if (tiles.isEmpty) { - return const Center( - child: const Text( - "Please create or unlock a server to begin!", + return Center( + child: Text( + AppLocalizations.of(context)!.unlockServerTip, textAlign: TextAlign.center, )); } @@ -101,7 +101,7 @@ class _ServersView extends State { mainAxisAlignment: MainAxisAlignment.center, mainAxisSize: MainAxisSize.min, children: [ - Text("Enter password to unlock server"),//AppLocalizations.of(context)!.enterProfilePassword), + Text(AppLocalizations.of(context)!.enterServerPassword), SizedBox( height: 20, ),