mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-14 01:07:21 +00:00
Added the choice between formal and informal address to the whole app (#1200)
This commit is contained in:
1 parent
382db4b8d0
commit
c9a376f742
342 files changed
+14378
-1893
No files matched your search
@@ -63,6 +63,8 @@ public static partial class WorkspaceBehaviour
|
||||
|
||||
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(WorkspaceBehaviour).Namespace, nameof(WorkspaceBehaviour));
|
||||
|
||||
private static string TA(string fallbackEN) => I18N.I.TA(fallbackEN, typeof(WorkspaceBehaviour).Namespace, nameof(WorkspaceBehaviour));
|
||||
|
||||
public static readonly JsonSerializerOptions JSON_OPTIONS = new JsonSerializerOptions
|
||||
{
|
||||
WriteIndented = true,
|
||||
@@ -972,13 +974,13 @@ public static partial class WorkspaceBehaviour
|
||||
var sourceName = string.IsNullOrWhiteSpace(sourceChat.Name) ? TB("Unnamed chat") : sourceChat.Name;
|
||||
var dialogParameters = new DialogParameters<SingleInputDialog>
|
||||
{
|
||||
{ x => x.Message, string.Format(TB("Please enter a name for the copy of your chat '{0}':"), sourceName) },
|
||||
{ x => x.Message, string.Format(TA("Please enter a name for the copy of your chat '{0}':"), sourceName) },
|
||||
{ x => x.InputHeaderText, TB("Chat Name") },
|
||||
{ x => x.UserInput, string.Format(TB("Copy of {0}"), sourceName) },
|
||||
{ x => x.ConfirmText, TB("Copy") },
|
||||
{ x => x.ConfirmColor, Color.Info },
|
||||
{ x => x.AllowEmptyInput, false },
|
||||
{ x => x.EmptyInputErrorMessage, TB("Please enter a chat name.") },
|
||||
{ x => x.EmptyInputErrorMessage, TA("Please enter a chat name.") },
|
||||
};
|
||||
|
||||
var dialogReference = await dialogService.ShowAsync<SingleInputDialog>(TB("Copy Chat"), dialogParameters, Dialogs.DialogOptions.FULLSCREEN);
|
||||
@@ -1482,8 +1484,8 @@ public static partial class WorkspaceBehaviour
|
||||
{
|
||||
x => x.Message, (chat.WorkspaceId == Guid.Empty) switch
|
||||
{
|
||||
true => string.Format(TB("Are you sure you want to delete the temporary chat '{0}'?"), chat.Name),
|
||||
false => string.Format(TB("Are you sure you want to delete the chat '{0}' in the workspace '{1}'?"), chat.Name, workspaceName),
|
||||
true => string.Format(TA("Are you sure you want to delete the temporary chat '{0}'?"), chat.Name),
|
||||
false => string.Format(TA("Are you sure you want to delete the chat '{0}' in the workspace '{1}'?"), chat.Name, workspaceName),
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user