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

@@ -159,7 +159,7 @@ public partial class Plugins : MSGComponentBase
{
x => x.Message,
string.Format(
this.T("The assistant plugin '{0}' was audited with the level '{1}', which is below the required minimum level '{2}'. Your current settings allow activation anyway, but this may be potentially dangerous. Do you really want to enable this plugin?"),
this.TA("The assistant plugin '{0}' was audited with the level '{1}', which is below the required minimum level '{2}'. Your current settings allow activation anyway, but this may be potentially dangerous. Do you really want to enable this plugin?"),
pluginName,
actualLevel.Name,
this.AssistantPluginAuditSettings.MinimumLevel.Name)
@@ -192,7 +192,7 @@ public partial class Plugins : MSGComponentBase
private string GetActivationTooltip(IPluginMetadata pluginMeta, bool isEnabled)
{
if (PluginFactory.IsAssistantActivationEnforced(pluginMeta.Id))
return this.T("Your organization requires this assistant to stay enabled");
return this.TA("Your organization requires this assistant to stay enabled");
if (isEnabled)
return this.T("Disable plugin");
@@ -275,7 +275,7 @@ public partial class Plugins : MSGComponentBase
private string SharePluginTooltip => this.PluginShareService.UsesExport ? this.T("Export plugin archive") : this.T("Share plugin archive");
private string SharePluginLockText => this.PluginShareService.UsesExport ? this.T("Your organization has disabled exporting plugins.") : this.T("Your organization has disabled sharing plugins.");
private string SharePluginLockText => this.PluginShareService.UsesExport ? this.TA("Your organization has disabled exporting plugins.") : this.TA("Your organization has disabled sharing plugins.");
private async Task OpenAssistantPluginEditorDialogAsync(IAvailablePlugin plugin)
{
@@ -421,7 +421,7 @@ public partial class Plugins : MSGComponentBase
{
var dialogParameters = new DialogParameters<ConfirmDialog>
{
{ x => x.Message, string.Format(this.T("{0} Do you want to save the plugin archive to a location of your choice instead? Until you restart AI Studio, the plugin page offers this export instead of sharing."), issue) },
{ x => x.Message, string.Format(this.TA("{0} Do you want to save the plugin archive to a location of your choice instead? Until you restart AI Studio, the plugin page offers this export instead of sharing."), issue) },
};
var dialogReference = await this.DialogService.ShowAsync<ConfirmDialog>(this.T("Share dialog not available"), dialogParameters, DialogOptions.FULLSCREEN);
@@ -555,7 +555,7 @@ public partial class Plugins : MSGComponentBase
var audit = await this.AssistantPluginAuditService.RunAuditAsync(assistantPlugin);
if (audit.Level is AssistantAuditLevel.UNKNOWN)
{
await MessageBus.INSTANCE.SendError(new (AppIcons.AGENT, string.Format(this.T("The automatic security audit for the assistant plugin '{0}' failed. Please run it manually."), assistantPlugin.Name)));
await MessageBus.INSTANCE.SendError(new (AppIcons.AGENT, string.Format(this.TA("The automatic security audit for the assistant plugin '{0}' failed. Please run it manually."), assistantPlugin.Name)));
continue;
}
@@ -622,11 +622,11 @@ public partial class Plugins : MSGComponentBase
switch (archivePaths.Count)
{
case 0:
await this.MessageBus.SendWarning(new(AppIcons.WARNING, string.Format(this.T("Please drop a plugin archive with the extension {0} or .zip."), PluginArchive.PLUGIN_FILE_EXTENSION)));
await this.MessageBus.SendWarning(new(AppIcons.WARNING, string.Format(this.TA("Please drop a plugin archive with the extension {0} or .zip."), PluginArchive.PLUGIN_FILE_EXTENSION)));
return;
case > 1:
await this.MessageBus.SendWarning(new(AppIcons.WARNING, this.T("Please drop only one plugin archive at a time.")));
await this.MessageBus.SendWarning(new(AppIcons.WARNING, this.TA("Please drop only one plugin archive at a time.")));
return;
}