1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-26 11:30:04 +08:00

Localise notification in OsuGame

This commit is contained in:
Denis Titovets
2026-01-11 16:53:44 +03:00
Unverified
parent 3e7f0f4c61
commit 8a21c6814c
2 changed files with 6 additions and 1 deletions
@@ -190,6 +190,11 @@ Click to see what's new!", version);
/// </summary>
public static LocalisableString CollectionsImportProgressTotal(int count, int totalCount) => new TranslatableString(getKey(@"collections_import_progress_total"), @"Imported {0} of {1} collections", count, totalCount);
/// <summary>
/// "This error has been automatically reported to the devs."
/// </summary>
public static LocalisableString ErrorAutomaticallyReported => new TranslatableString(getKey(@"error_automatically_reported"), @"This error has been automatically reported to the devs.");
private static string getKey(string key) => $@"{prefix}:{key}";
}
}
+1 -1
View File
@@ -1383,7 +1383,7 @@ namespace osu.Game
Schedule(() => Notifications.Post(new SimpleErrorNotification
{
Icon = entry.Level == LogLevel.Important ? FontAwesome.Solid.ExclamationCircle : FontAwesome.Solid.Bomb,
Text = entry.Message.Truncate(256) + (entry.Exception != null && IsDeployedBuild ? "\n\nThis error has been automatically reported to the devs." : string.Empty),
Text = LocalisableString.Interpolate($"{entry.Message.Truncate(256)}{(entry.Exception != null && IsDeployedBuild ? LocalisableString.Interpolate($"\n\n{NotificationsStrings.ErrorAutomaticallyReported}") : string.Empty)}"),
}));
}
else if (generalLogRecentCount == short_term_display_limit)