mirror of
https://github.com/ppy/osu
synced 2025-01-05 13:50:03 +00:00
Reword and localise copy
This commit is contained in:
parent
2709c6cd67
commit
b2c98da330
@ -14,6 +14,7 @@ using osu.Game.Online.API.Requests.Responses;
|
||||
using osu.Game.Overlays.Notifications;
|
||||
using osu.Game.Scoring;
|
||||
using Realms;
|
||||
using osu.Game.Localisation;
|
||||
|
||||
namespace osu.Game.Database
|
||||
{
|
||||
@ -49,7 +50,7 @@ namespace osu.Game.Database
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuConfigManager config)
|
||||
{
|
||||
Text = "You do not have the required beatmap for this replay";
|
||||
Text = NotificationsStrings.MissingBeatmapForReplay;
|
||||
|
||||
realmSubscription = realm.RegisterForNotifications(
|
||||
realm => realm.All<BeatmapSetInfo>().Where(s => !s.DeletePending), beatmapsChanged);
|
||||
@ -58,7 +59,7 @@ namespace osu.Game.Database
|
||||
{
|
||||
if (r.All<BeatmapSetInfo>().Any(s => !s.DeletePending && s.OnlineID == beatmapSetInfo.OnlineID))
|
||||
{
|
||||
Text = "You have the corresponding beatmapset but no beatmap, you may need to update the beatmapset.";
|
||||
Text = NotificationsStrings.MismatchingBeatmapForReplay;
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -93,6 +93,16 @@ Please try changing your audio device to a working setting.");
|
||||
/// </summary>
|
||||
public static LocalisableString YourNameWasMentioned(string username) => new TranslatableString(getKey(@"your_name_was_mentioned"), @"Your name was mentioned in chat by '{0}'. Click to find out why!", username);
|
||||
|
||||
/// <summary>
|
||||
/// "You do not have the beatmap for this replay."
|
||||
/// </summary>
|
||||
public static LocalisableString MissingBeatmapForReplay => new TranslatableString(getKey(@"missing_beatmap_for_replay"), @"You do not have the beatmap for this replay.");
|
||||
|
||||
/// <summary>
|
||||
/// "Your local copy of the beatmap for this replay appears to be different than expected. You may need to update or re-download it."
|
||||
/// </summary>
|
||||
public static LocalisableString MismatchingBeatmapForReplay => new TranslatableString(getKey(@"mismatching_beatmap_for_replay"), @"Your local copy of the beatmap for this replay appears to be different than expected. You may need to update or re-download it.");
|
||||
|
||||
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user