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:
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user