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

@@ -27,6 +27,8 @@ public sealed class CalculateTool(SettingsManager settingsManager, MathComputati
{
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(CalculateTool).Namespace, nameof(CalculateTool));
private static string TA(string fallbackEN) => I18N.I.TA(fallbackEN, typeof(CalculateTool).Namespace, nameof(CalculateTool));
private const string EXPRESSION_ARGUMENT = "expression";
private const string DIGITS_ARGUMENT = "digits";
@@ -76,7 +78,7 @@ public sealed class CalculateTool(SettingsManager settingsManager, MathComputati
public string GetDisplayName() => TB("Calculate");
public string GetDescription() => TB("Lets the AI calculate exactly instead of guessing digits, e.g., fractions, roots, or integrals, and check an equation. Everything is computed on your computer.");
public string GetDescription() => TA("Lets the AI calculate exactly instead of guessing digits, e.g., fractions, roots, or integrals, and check an equation. Everything is computed on your computer.");
public async Task<ToolExecutionResult> ExecuteAsync(JsonElement arguments, ToolExecutionContext context, CancellationToken token = default)
{
@@ -30,6 +30,8 @@ public sealed class ComputeSymbolicallyTool(SettingsManager settingsManager, Mat
{
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(ComputeSymbolicallyTool).Namespace, nameof(ComputeSymbolicallyTool));
private static string TA(string fallbackEN) => I18N.I.TA(fallbackEN, typeof(ComputeSymbolicallyTool).Namespace, nameof(ComputeSymbolicallyTool));
private const string OPERATION_ARGUMENT = "operation";
private const string EXPRESSION_ARGUMENT = "expression";
private const string VARIABLE_ARGUMENT = "variable";
@@ -122,7 +124,7 @@ public sealed class ComputeSymbolicallyTool(SettingsManager settingsManager, Mat
public string GetDisplayName() => TB("Compute Symbolically");
public string GetDescription() => TB("Lets the AI work with formulas: simplify and factor them, differentiate and integrate them, take limits, and solve equations. Every result is checked numerically where possible, right on your computer.");
public string GetDescription() => TA("Lets the AI work with formulas: simplify and factor them, differentiate and integrate them, take limits, and solve equations. Every result is checked numerically where possible, right on your computer.");
public async Task<ToolExecutionResult> ExecuteAsync(JsonElement arguments, ToolExecutionContext context, CancellationToken token = default)
{
@@ -18,6 +18,8 @@ public sealed class MathematicsToolCollection : IToolCollection
{
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(MathematicsToolCollection).Namespace, nameof(MathematicsToolCollection));
private static string TA(string fallbackEN) => I18N.I.TA(fallbackEN, typeof(MathematicsToolCollection).Namespace, nameof(MathematicsToolCollection));
public ToolCollectionDefinition GetDefinition() => new()
{
Id = ToolSelectionRules.MATHEMATICS_COLLECTION_ID,
@@ -30,5 +32,5 @@ public sealed class MathematicsToolCollection : IToolCollection
public string GetDisplayName() => TB("Mathematics");
public string GetDescription() => TB("Lets the AI calculate exactly and work with formulas, such as solving equations or checking an integral, right on your computer.");
public string GetDescription() => TA("Lets the AI calculate exactly and work with formulas, such as solving equations or checking an integral, right on your computer.");
}