Move all localizable strings from Aaru.Gui project to resources.

This commit is contained in:
2022-11-19 21:10:41 +00:00
parent 887e58c6e5
commit 81195f8630
42 changed files with 1128 additions and 1059 deletions

View File

@@ -32,6 +32,7 @@
using System.Reactive;
using Aaru.Gui.Views.Dialogs;
using Aaru.Localization;
using Aaru.Settings;
using JetBrains.Annotations;
using ReactiveUI;
@@ -90,85 +91,61 @@ public sealed class SettingsViewModel : ViewModelBase
// TODO: Show Preferences in macOS
[NotNull]
public string Title => "Settings";
public string Title => UI.Title_Settings;
[NotNull]
public string GdprLabel => "GDPR";
public string GdprLabel => UI.Title_GDPR;
[NotNull]
public string ReportsLabel => "Reports";
public string ReportsLabel => UI.Title_Reports;
[NotNull]
public string StatisticsLabel => "Statistics";
public string StatisticsLabel => UI.Title_Statistics;
[NotNull]
public string SaveLabel => "Save";
public string SaveLabel => UI.ButtonLabel_Save;
[NotNull]
public string CancelLabel => "Cancel";
public string CancelLabel => UI.ButtonLabel_Cancel;
[NotNull]
public string GdprText1 =>
@"In compliance with the European Union General Data Protection Regulation 2016/679 (GDPR),
we must give you the following information about Aaru and ask if you want to opt-in
in some information sharing.";
public string GdprText1 => UI.GDPR_Compliance;
[NotNull]
public string GdprText2 => @"Disclaimer: Because Aaru is an open source software this information, and therefore,
compliance with GDPR only holds true if you obtained a certificated copy from its original
authors. In case of doubt, close Aaru now and ask in our IRC support channel.";
public string GdprText2 => UI.GDPR_Open_Source_Disclaimer;
[NotNull]
public string GdprText3 =>
@"For any information sharing your IP address may be stored in our server, in a way that is not
possible for any person, manual, or automated process, to link with your identity, unless
specified otherwise.";
public string GdprText3 => UI.GDPR_Information_sharing;
[NotNull]
public string ReportsGloballyText =>
@"With the 'device-report' command, Aaru creates a report of a device, that includes its
manufacturer, model, firmware revision and/or version, attached bus, size, and supported commands.
The serial number of the device is not stored in the report. If used with the debug parameter,
extra information about the device will be stored in the report. This information is known to contain
the device serial number in non-standard places that prevent the automatic removal of it on a handful
of devices. A human-readable copy of the report in XML format is always created in the same directory
where Aaru is being run from.";
public string ReportsGloballyText => UI.Configure_Device_Report_information_disclaimer;
[NotNull]
public string SaveReportsGloballyText => "Save device reports in shared folder of your computer?";
public string SaveReportsGloballyText => UI.Save_device_reports_in_shared_folder_of_your_computer_Q;
[NotNull]
public string ReportsText =>
@"Sharing a report with us will send it to our server, that's in the european union territory, where it
will be manually analyzed by an european union citizen to remove any trace of personal identification
from it. Once that is done, it will be shared in our stats website, https://www.aaru.app
These report will be used to improve Aaru support, and in some cases, to provide emulation of the
devices to other open-source projects. In any case, no information linking the report to you will be stored.";
public string ReportsText => UI.Configure_share_report_disclaimer;
[NotNull]
public string ShareReportsText => "Share your device reports with us?";
public string ShareReportsText => UI.Share_your_device_reports_with_us_Q;
[NotNull]
public string StatisticsText =>
@"Aaru can store some usage statistics. These statistics are limited to the number of times a
command is executed, a filesystem, partition, or device is used, the operating system version, and other.
In no case, any information besides pure statistical usage numbers is stored, and they're just joint to the
pool with no way of using them to identify you.";
public string StatisticsText => UI.Statistics_disclaimer;
[NotNull]
public string SaveStatsText => "Save stats about your Aaru usage?";
public string SaveStatsText => UI.Save_stats_about_your_Aaru_usage_Q;
[NotNull]
public string ShareStatsText => "Share your stats (anonymously)?";
public string ShareStatsText => UI.Share_your_stats_anonymously_Q;
[NotNull]
public string CommandStatsText => "Gather statistics about command usage?";
public string CommandStatsText => UI.Gather_statistics_about_command_usage_Q;
[NotNull]
public string DeviceStatsText => "Gather statistics about found devices?";
public string DeviceStatsText => UI.Gather_statistics_about_found_devices_Q;
[NotNull]
public string FilesystemStatsText => "Gather statistics about found filesystems?";
public string FilesystemStatsText => UI.Gather_statistics_about_found_filesystems_Q;
[NotNull]
public string FilterStatsText => "Gather statistics about found file filters?";
public string FilterStatsText => UI.Gather_statistics_about_found_file_filters_Q;
[NotNull]
public string MediaImageStatsText => "Gather statistics about found media image formats?";
public string MediaImageStatsText => UI.Gather_statistics_about_found_media_image_formats_Q;
[NotNull]
public string MediaScanStatsText => "Gather statistics about scanned media?";
public string MediaScanStatsText => UI.Gather_statistics_about_scanned_media_Q;
[NotNull]
public string PartitionStatsText => "Gather statistics about found partitioning schemes?";
public string PartitionStatsText => UI.Gather_statistics_about_found_partitioning_schemes_Q;
[NotNull]
public string MediaStatsText => "Gather statistics about media types?";
public string MediaStatsText => UI.Gather_statistics_about_media_types_Q;
[NotNull]
public string VerifyStatsText => "Gather statistics about media image verifications?";
public string VerifyStatsText => UI.Gather_statistics_about_media_image_verifications_Q;
public ReactiveCommand<Unit, Unit> CancelCommand { get; }
public ReactiveCommand<Unit, Unit> SaveCommand { get; }