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

+4 -4
View File
@@ -7,7 +7,7 @@ namespace AIStudio.Tools;
/// </summary>
public static class DroppedFile
{
private static string TB(string fallbackEN) => PluginSystem.I18N.I.T(fallbackEN, typeof(DroppedFile).Namespace, nameof(DroppedFile));
private static string TA(string fallbackEN) => PluginSystem.I18N.I.TA(fallbackEN, typeof(DroppedFile).Namespace, nameof(DroppedFile));
/// <summary>
/// Finds the first dropped path which leads to a file of an allowed type.
@@ -31,12 +31,12 @@ public static class DroppedFile
// Naming the actual mistake beats a generic "that did not work". Dropping a folder onto a
// file picker is the likeliest of them:
if (paths.Any(Directory.Exists))
return TB("Please drop a file, not a folder.");
return TA("Please drop a file, not a folder.");
// The file exists, so the file type filter is what turned it down:
if (paths.Any(File.Exists))
return TB("Please drop a file with a supported file type.");
return TA("Please drop a file with a supported file type.");
return TB("The dropped file could not be accessed. Please choose it with the file chooser instead.");
return TA("The dropped file could not be accessed. Please choose it with the file chooser instead.");
}
}