mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-14 01:47:22 +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
@@ -16,6 +16,8 @@ public static class DataBackupReader
|
||||
{
|
||||
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(DataBackupReader).Namespace, nameof(DataBackupReader));
|
||||
|
||||
private static string TA(string fallbackEN) => I18N.I.TA(fallbackEN, typeof(DataBackupReader).Namespace, nameof(DataBackupReader));
|
||||
|
||||
/// <summary>
|
||||
/// Reads the manifest of a backup, and checks that this version of AI Studio can use the backup.
|
||||
/// </summary>
|
||||
@@ -43,7 +45,7 @@ public static class DataBackupReader
|
||||
return new(null, TB("The content list of this backup could not be read."));
|
||||
|
||||
if (manifest.FormatVersion > DataBackupFormat.FORMAT_VERSION)
|
||||
return new(null, TB("This backup was made by a newer version of AI Studio. Please update AI Studio first."));
|
||||
return new(null, TA("This backup was made by a newer version of AI Studio. Please update AI Studio first."));
|
||||
|
||||
return new(manifest, string.Empty);
|
||||
}
|
||||
|
||||
@@ -23,6 +23,8 @@ public static class DataRestorePreparer
|
||||
|
||||
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(DataRestorePreparer).Namespace, nameof(DataRestorePreparer));
|
||||
|
||||
private static string TA(string fallbackEN) => I18N.I.TA(fallbackEN, typeof(DataRestorePreparer).Namespace, nameof(DataRestorePreparer));
|
||||
|
||||
/// <summary>
|
||||
/// A file of the backup to unpack, and where it goes.
|
||||
/// </summary>
|
||||
@@ -137,7 +139,7 @@ public static class DataRestorePreparer
|
||||
var settingsAreNewer = !Enum.TryParse<SettingsVersion>(manifest.SettingsVersion, out var settingsVersion) || settingsVersion > target.SettingsVersion;
|
||||
var appIsNewer = Version.TryParse(manifest.AppVersion, out var backupAppVersion) && Version.TryParse(target.AppVersion, out var appVersion) && backupAppVersion > appVersion;
|
||||
return settingsAreNewer || appIsNewer
|
||||
? TB("This backup was made by a newer version of AI Studio. Please update AI Studio first.")
|
||||
? TA("This backup was made by a newer version of AI Studio. Please update AI Studio first.")
|
||||
: string.Empty;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user