mirror of
https://github.com/ppy/osu.git
synced 2025-01-09 03:02:56 +08:00
Merge pull request #27054 from Loreos7/update-related-notifications-localisation
Localise update-related process strings
This commit is contained in:
commit
86e1e57fab
@ -113,6 +113,28 @@ Please try changing your audio device to a working setting.");
|
|||||||
/// </summary>
|
/// </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.");
|
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}";
|
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ using osu.Framework.Graphics.Containers;
|
|||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
using osu.Game.Configuration;
|
using osu.Game.Configuration;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
|
using osu.Game.Localisation;
|
||||||
using osu.Game.Overlays;
|
using osu.Game.Overlays;
|
||||||
using osu.Game.Overlays.Notifications;
|
using osu.Game.Overlays.Notifications;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
@ -92,7 +93,7 @@ namespace osu.Game.Updater
|
|||||||
public UpdateCompleteNotification(string version)
|
public UpdateCompleteNotification(string version)
|
||||||
{
|
{
|
||||||
this.version = version;
|
this.version = version;
|
||||||
Text = $"You are now running osu! {version}.\nClick to see what's new!";
|
Text = NotificationsStrings.GameVersionAfterUpdate(version);
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
@ -114,7 +115,7 @@ namespace osu.Game.Updater
|
|||||||
{
|
{
|
||||||
public UpdateApplicationCompleteNotification()
|
public UpdateApplicationCompleteNotification()
|
||||||
{
|
{
|
||||||
Text = @"Update ready to install. Click to restart!";
|
Text = NotificationsStrings.UpdateReadyToInstall;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -166,13 +167,13 @@ namespace osu.Game.Updater
|
|||||||
{
|
{
|
||||||
State = ProgressNotificationState.Active;
|
State = ProgressNotificationState.Active;
|
||||||
Progress = 0;
|
Progress = 0;
|
||||||
Text = @"Downloading update...";
|
Text = NotificationsStrings.DownloadingUpdate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void StartInstall()
|
public void StartInstall()
|
||||||
{
|
{
|
||||||
Progress = 0;
|
Progress = 0;
|
||||||
Text = @"Installing update...";
|
Text = NotificationsStrings.InstallingUpdate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void FailDownload()
|
public void FailDownload()
|
||||||
|
Loading…
Reference in New Issue
Block a user