1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 15:17:27 +08:00

localise update-related strings

This commit is contained in:
Loreos7 2024-02-02 04:49:22 +03:00
parent 7cdedfb6ca
commit 8dce158a13
2 changed files with 27 additions and 4 deletions

View File

@ -113,6 +113,28 @@ Please try changing your audio device to a working setting.");
/// </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.");
/// <summary>
/// "You are now running osu! {version}.
/// Click to see what's new!"
/// </summary>
public static LocalisableString GameVersionAfterUpdate(string version) => new TranslatableString(getKey(@"game_version_after_update"), @"You are now running osu! {0}.
Click to see what's new!", version);
/// <summary>
/// "Update ready to install. Click to restart!"
/// </summary>
public static LocalisableString UpdateReadyToInstall => new TranslatableString(getKey(@"update_ready_to_install"), @"Update ready to install. Click to restart!");
/// <summary>
/// "Downloading update..."
/// </summary>
public static LocalisableString DownloadingUpdate => new TranslatableString(getKey(@"downloading_update"), @"Downloading update...");
/// <summary>
/// "Installing update..."
/// </summary>
public static LocalisableString InstallingUpdate => new TranslatableString(getKey(@"installing_update"), @"Installing update...");
private static string getKey(string key) => $@"{prefix}:{key}";
}
}

View File

@ -8,6 +8,7 @@ using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Game.Configuration;
using osu.Game.Graphics;
using osu.Game.Localisation;
using osu.Game.Overlays;
using osu.Game.Overlays.Notifications;
using osuTK;
@ -92,7 +93,7 @@ namespace osu.Game.Updater
public UpdateCompleteNotification(string version)
{
this.version = version;
Text = $"You are now running osu! {version}.\nClick to see what's new!";
Text = NotificationsStrings.GameVersionAfterUpdate(version);
}
[BackgroundDependencyLoader]
@ -114,7 +115,7 @@ namespace osu.Game.Updater
{
public UpdateApplicationCompleteNotification()
{
Text = @"Update ready to install. Click to restart!";
Text = NotificationsStrings.UpdateReadyToInstall;
}
}
@ -166,13 +167,13 @@ namespace osu.Game.Updater
{
State = ProgressNotificationState.Active;
Progress = 0;
Text = @"Downloading update...";
Text = NotificationsStrings.DownloadingUpdate;
}
public void StartInstall()
{
Progress = 0;
Text = @"Installing update...";
Text = NotificationsStrings.InstallingUpdate;
}
public void FailDownload()