Update translations (#773)

This commit is contained in:
Leendert de Borst
2026-03-16 17:29:48 +01:00
parent 7ef5e186bd
commit e4f51cc4fc
7 changed files with 17 additions and 81 deletions

View File

@@ -14,8 +14,7 @@
Description="@Localizer["AliasVaultDescription"]"
LogoUrl="img/logo.svg"
AcceptedFileTypes=".csv,.avux,.avex"
ProcessFileWithAutoDetectionCallback="ProcessFile"
SupportedFormats="@GetSupportedFormats()">
ProcessFileWithAutoDetectionCallback="ProcessFile">
<p class="text-gray-700 dark:text-gray-300 mb-4">@Localizer["AliasVaultInstructionsPart1"]</p>
<p class="text-sm text-gray-600 dark:text-gray-400 mb-4">
@Localizer["AliasVaultSupportedFormatsInfo"]
@@ -26,20 +25,6 @@
private IStringLocalizer Localizer => LocalizerFactory.Create("Components.Main.Settings.ImportExport.ImportServices", "AliasVault.Client");
private ImportServiceCard? importServiceCard;
/// <summary>
/// Gets the supported file formats with their descriptions.
/// </summary>
/// <returns>Dictionary of file extensions to format descriptions.</returns>
private Dictionary<string, string> GetSupportedFormats()
{
return new Dictionary<string, string>
{
{ ".csv", Localizer["CsvFormatDescription"] },
{ ".avux", Localizer["AvuxFormatDescription"] },
{ ".avex", Localizer["AvexFormatDescription"] }
};
}
/// <summary>
/// Processes files with auto-detection based on file extension.
/// Returns AvuxImportResult for .avux files, or List of ImportedCredential for CSV files.

View File

@@ -74,20 +74,6 @@
<div class="@(IsImporting ? "hidden" : "")">
@ChildContent
@if (SupportedFormats != null && SupportedFormats.Count > 0)
{
<div class="mb-4">
<p class="text-sm font-semibold text-gray-700 dark:text-gray-200 mb-2">
@Localizer["SupportedFormatsLabel"]
</p>
<ul class="list-disc list-inside text-sm text-gray-600 dark:text-gray-400 space-y-1">
@foreach (var format in SupportedFormats)
{
<li><strong class="text-gray-700 dark:text-gray-300">@format.Key</strong> - @format.Value</li>
}
</ul>
</div>
}
<div class="mb-4 bg-amber-50 border border-amber-400 dark:bg-amber-800/30 dark:border-amber-500/50 rounded-lg p-4">
<p class="mb-4 text-gray-700 dark:text-gray-200">@string.Format(Localizer["UploadExportFileText"], ServiceName)</p>
<InputFile OnChange="HandleFileUpload" accept="@AcceptedFileTypes" class="text-gray-700 dark:text-gray-200 file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-sm file:font-semibold file:bg-primary-50 file:text-primary-700 hover:file:bg-primary-100 dark:file:bg-primary-900/40 dark:file:text-primary-300 dark:hover:file:bg-primary-800/60" />
@@ -128,12 +114,11 @@
@bind:event="oninput"
@onkeydown="HandlePasswordKeyDown"
class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:text-white"
placeholder="@Localizer["DecryptionPasswordPlaceholder"]"
autofocus />
</div>
<div class="mb-4 p-3 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg">
<p class="text-xs text-blue-800 dark:text-blue-200">
<div class="mb-4 p-3 bg-orange-50 dark:bg-orange-900/20 border border-orange-200 dark:border-orange-800 rounded-lg">
<p class="text-xs text-orange-800 dark:text-orange-200">
@Localizer["DecryptionPasswordHint"]
</p>
</div>
@@ -331,12 +316,6 @@
[Parameter]
public string AcceptedFileTypes { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the supported file formats with descriptions (e.g., {".csv": "CSV format", ".avux": "Complete backup"}).
/// </summary>
[Parameter]
public Dictionary<string, string>? SupportedFormats { get; set; }
private bool IsModalOpen { get; set; } = false;
private bool IsImporting { get; set; } = false;
private string? ImportError { get; set; }

View File

@@ -65,7 +65,7 @@
<comment>Success message for valid password</comment>
</data>
<data name="PasswordTooShortError">
<value>Master password must be at least 12 characters long (Good strength or higher).</value>
<value>Master password must be at least 12 characters long.</value>
<comment>Error message for password too short</comment>
</data>
<data name="ConfirmPasswordPrompt">

View File

@@ -58,7 +58,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<!-- Page title and breadcrumbs -->
<data name="PageTitle" xml:space="preserve">
<value>Change password</value>
@@ -72,13 +72,13 @@
<value>Change password</value>
<comment>Breadcrumb text for change password</comment>
</data>
<!-- Page description -->
<data name="PageDescription" xml:space="preserve">
<value>Changing your master password also changes the vault encryption keys. It is advised to periodically change your master password to keep your vaults secure.</value>
<comment>Description text explaining the password change process</comment>
</data>
<!-- Form labels -->
<data name="CurrentPasswordLabel" xml:space="preserve">
<value>Current Password</value>
@@ -92,13 +92,13 @@
<value>Confirm New Password</value>
<comment>Label for confirm new password input field</comment>
</data>
<!-- Button text -->
<data name="ChangePasswordButton" xml:space="preserve">
<value>Change Password</value>
<comment>Button text for changing password</comment>
</data>
<!-- Loading and status messages -->
<data name="ChangingPasswordMessage" xml:space="preserve">
<value>Changing password...</value>
@@ -117,7 +117,7 @@
<comment>Error message when password change fails</comment>
</data>
<data name="PasswordStrengthTooWeakError" xml:space="preserve">
<value>Your new password must be at least 12 characters long (Good strength or higher).</value>
<value>Your new password must be at least 12 characters long.</value>
<comment>Error message when password strength is too weak</comment>
</data>
</root>

View File

@@ -166,10 +166,6 @@
<value>File size exceeds 10MB limit.</value>
<comment>Error message when file is too large</comment>
</data>
<data name="SupportedFormatsLabel" xml:space="preserve">
<value>Supported formats:</value>
<comment>Label for the list of supported file formats in the import modal</comment>
</data>
<data name="EncryptedFilePasswordPrompt" xml:space="preserve">
<value>This file is encrypted. Please enter the password you used when creating the export.</value>
<comment>Prompt for encrypted file password</comment>
@@ -178,10 +174,6 @@
<value>Decryption Password</value>
<comment>Label for decryption password input</comment>
</data>
<data name="DecryptionPasswordPlaceholder" xml:space="preserve">
<value>Enter the password used to encrypt this export</value>
<comment>Placeholder for decryption password input</comment>
</data>
<data name="DecryptionPasswordHint" xml:space="preserve">
<value>This is the password you set when creating the encrypted export (.avex file), not your vault master password.</value>
<comment>Hint explaining what password is needed</comment>

View File

@@ -243,47 +243,27 @@
<value>Complete Vault Backup:</value>
<comment>Title for .avux format explanation</comment>
</data>
<data name="AvuxFormatDescription" xml:space="preserve">
<value>Complete backup format (includes passkeys, attachments, custom fields, and all metadata)</value>
<comment>Description of what .avux format includes</comment>
</data>
<!-- AliasVault CSV/AVUX/AVEX -->
<data name="AliasVaultDescription" xml:space="preserve">
<value>Import from AliasVault backup (.csv, .avux, or .avex)</value>
<comment>Description for AliasVault import service</comment>
</data>
<data name="AliasVaultInstructionsPart1" xml:space="preserve">
<value>Import your AliasVault backup from another server or a manual backup.</value>
<value>Import your previously created AliasVault backup.</value>
<comment>AliasVault import instructions</comment>
</data>
<data name="AliasVaultSupportedFormatsInfo" xml:space="preserve">
<value>Supports CSV (basic), .avux (complete unencrypted), and .avex (encrypted) formats.</value>
<value>Supports .avex (encrypted), .avux (unencrypted) and CSV (basic) formats.</value>
<comment>Supported formats information for AliasVault imports</comment>
</data>
<data name="CsvFormatDescription" xml:space="preserve">
<value>Basic backup format (passwords, usernames, notes, TOTP codes)</value>
<comment>Description of CSV format capabilities</comment>
</data>
<data name="AvexFormatDescription" xml:space="preserve">
<value>Encrypted complete backup (password-protected .avux)</value>
<comment>Description of .avex format capabilities</comment>
</data>
<data name="DecryptImportTitle" xml:space="preserve">
<value>Enter Decryption Password</value>
<comment>Title for import password modal</comment>
</data>
<data name="DecryptImportDescription" xml:space="preserve">
<value>This file is encrypted. Please enter the password you used when creating the export.</value>
<comment>Description for import password modal</comment>
</data>
<data name="IncorrectPasswordError" xml:space="preserve">
<value>Incorrect password. Please try again.</value>
<comment>Error message for incorrect decryption password</comment>
</data>
<data name="DecryptionErrorGeneric" xml:space="preserve">
<value>Failed to decrypt the file. Please check that the file is not corrupted and try again.</value>
<comment>Generic error message for decryption failure</comment>
</data>
<!-- Dropbox -->
<data name="DropboxDescription" xml:space="preserve">
<value>Import passwords from Dropbox Passwords</value>

View File

@@ -58,10 +58,10 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<!-- Password validation messages -->
<data name="PasswordMinLength" xml:space="preserve">
<value>The new password must be at least 12 characters long (Good strength or higher).</value>
<value>The new password must be at least 12 characters long.</value>
<comment>Error message for password minimum length validation</comment>
</data>
<data name="PasswordsDoNotMatch" xml:space="preserve">
@@ -69,14 +69,14 @@
<comment>Error message when password confirmation doesn't match</comment>
</data>
<data name="PasswordMinLengthGeneric" xml:space="preserve">
<value>Password must be at least 12 characters long (Good strength or higher).</value>
<value>Password must be at least 12 characters long.</value>
<comment>Generic error message for password minimum length validation</comment>
</data>
<data name="PasswordsDoNotMatchGeneric" xml:space="preserve">
<value>Passwords do not match.</value>
<comment>Generic error message when passwords don't match</comment>
</data>
<!-- Required field validation messages -->
<data name="UsernameRequired" xml:space="preserve">
<value>Username is required</value>
@@ -98,7 +98,7 @@
<value>This field is required</value>
<comment>Generic error message when a field is required</comment>
</data>
<!-- Terms and conditions -->
<data name="MustAcceptTerms" xml:space="preserve">
<value>You must accept the terms and conditions.</value>