mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-13 22:47: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
@@ -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.");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user