Added the choice between formal and informal address to the whole app (#1200)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-13 10:16:56 +01:00
1 parent 382db4b8d0
commit c9a376f742
342 files changed
+14378 -1893

No files matched your search

@@ -188,7 +188,7 @@ public partial class DataSourceMailboxDialog : MSGComponentBase
this.dataPassword = this.storedPassword;
}
else
this.dataSecretStorageIssue = string.Format(T("Failed to load the password from the operating system. The message was: {0}. You might ignore this message and provide the password again."), requestedSecret.Issue);
this.dataSecretStorageIssue = string.Format(TA("Failed to load the password from the operating system. The message was: {0}. You might ignore this message and provide the password again."), requestedSecret.Issue);
var indexStore = await this.DatabaseClientProvider.GetIndexStoreAsync();
this.authFailure = await indexStore.GetMailboxAuthFailureAsync(this.dataId, CancellationToken.None);
@@ -304,7 +304,7 @@ public partial class DataSourceMailboxDialog : MSGComponentBase
private bool IsAddingNotAllowed => !this.IsEditing && !this.SettingsManager.ConfigurationData.App.AllowUserToAddMailbox;
private string? ValidateOrganizationProvider(string providerKey) => this.AllowsOnlyOrganizationMailServers && this.organizationProviders.All(provider => GetProviderKey(provider) != providerKey)
? T("Please choose one of the mail servers of your organization.")
? TA("Please choose one of the mail servers of your organization.")
: null;
/// <summary>
@@ -332,7 +332,7 @@ public partial class DataSourceMailboxDialog : MSGComponentBase
private string AuthFailureText => this.authFailure is null
? string.Empty
: string.Format(T("Signing in to this mailbox failed on {0}. Presumably your password changed. AI Studio does not try again on its own, so that your account is not locked. Enter your new password below and save it, or test the connection."), this.authFailure.FailedAtUtc.ToLocalTime().ToString("g", I18N.I.Culture));
: string.Format(TA("Signing in to this mailbox failed on {0}. Presumably your password changed. AI Studio does not try again on its own, so that your account is not locked. Enter your new password below and save it, or test the connection."), this.authFailure.FailedAtUtc.ToLocalTime().ToString("g", I18N.I.Culture));
private string RootFolderText => string.IsNullOrEmpty(this.dataRootFolder) ? T("Whole mailbox") : this.dataRootFolder;
@@ -653,7 +653,7 @@ public partial class DataSourceMailboxDialog : MSGComponentBase
var storeResponse = await this.RustService.SetSecret(mailbox, this.dataPassword, SecretStoreType.DATA_SOURCE);
if (!storeResponse.Success)
{
this.dataSecretStorageIssue = string.Format(T("Failed to store the password in the operating system. The message was: {0}. Please try again."), storeResponse.Issue);
this.dataSecretStorageIssue = string.Format(TA("Failed to store the password in the operating system. The message was: {0}. Please try again."), storeResponse.Issue);
await this.form.ValidateAsync();
return;
}
@@ -697,7 +697,7 @@ public partial class DataSourceMailboxDialog : MSGComponentBase
return null;
if (maxChunkTokenLength < 1)
return T("Please enter a token limit of at least 1.");
return TA("Please enter a token limit of at least 1.");
var providerMaxChunkTokenLength = this.ProviderMaxChunkTokenLength;
if (maxChunkTokenLength > providerMaxChunkTokenLength)
@@ -712,7 +712,7 @@ public partial class DataSourceMailboxDialog : MSGComponentBase
return null;
if (chunkOverlapTokenLength < 0)
return T("Please enter 0 or a positive overlap length.");
return TA("Please enter 0 or a positive overlap length.");
var effectiveMaxChunkTokenLength = this.dataMaxChunkTokenLength > 0
? this.dataMaxChunkTokenLength