1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 20:53:00 +08:00

Make all localisation class strings verbatim

This commit is contained in:
smoogipoo 2021-06-14 16:51:17 +09:00
parent ebe850fe9f
commit aa5dae84b2
6 changed files with 16 additions and 16 deletions

View File

@ -7,17 +7,17 @@ namespace osu.Game.Localisation
{ {
public static class ChatStrings public static class ChatStrings
{ {
private const string prefix = "osu.Game.Localisation.Chat"; private const string prefix = @"osu.Game.Localisation.Chat";
/// <summary> /// <summary>
/// "chat" /// "chat"
/// </summary> /// </summary>
public static LocalisableString HeaderTitle => new TranslatableString(getKey("header_title"), "chat"); public static LocalisableString HeaderTitle => new TranslatableString(getKey(@"header_title"), @"chat");
/// <summary> /// <summary>
/// "join the real-time discussion" /// "join the real-time discussion"
/// </summary> /// </summary>
public static LocalisableString HeaderDescription => new TranslatableString(getKey("header_description"), "join the real-time discussion"); public static LocalisableString HeaderDescription => new TranslatableString(getKey(@"header_description"), @"join the real-time discussion");
private static string getKey(string key) => $"{prefix}:{key}"; private static string getKey(string key) => $"{prefix}:{key}";
} }

View File

@ -7,12 +7,12 @@ namespace osu.Game.Localisation
{ {
public static class CommonStrings public static class CommonStrings
{ {
private const string prefix = "osu.Game.Localisation.Common"; private const string prefix = @"osu.Game.Localisation.Common";
/// <summary> /// <summary>
/// "Cancel" /// "Cancel"
/// </summary> /// </summary>
public static LocalisableString Cancel => new TranslatableString(getKey("cancel"), "Cancel"); public static LocalisableString Cancel => new TranslatableString(getKey(@"cancel"), @"Cancel");
private static string getKey(string key) => $"{prefix}:{key}"; private static string getKey(string key) => $"{prefix}:{key}";
} }

View File

@ -7,10 +7,10 @@ namespace osu.Game.Localisation
{ {
public enum Language public enum Language
{ {
[Description("English")] [Description(@"English")]
en, en,
[Description("日本語")] [Description(@"日本語")]
ja ja
} }
} }

View File

@ -7,17 +7,17 @@ namespace osu.Game.Localisation
{ {
public static class NotificationsStrings public static class NotificationsStrings
{ {
private const string prefix = "osu.Game.Localisation.Notifications"; private const string prefix = @"osu.Game.Localisation.Notifications";
/// <summary> /// <summary>
/// "notifications" /// "notifications"
/// </summary> /// </summary>
public static LocalisableString HeaderTitle => new TranslatableString(getKey("header_title"), "notifications"); public static LocalisableString HeaderTitle => new TranslatableString(getKey(@"header_title"), @"notifications");
/// <summary> /// <summary>
/// "waiting for 'ya" /// "waiting for 'ya"
/// </summary> /// </summary>
public static LocalisableString HeaderDescription => new TranslatableString(getKey("header_description"), "waiting for 'ya"); public static LocalisableString HeaderDescription => new TranslatableString(getKey(@"header_description"), @"waiting for 'ya");
private static string getKey(string key) => $"{prefix}:{key}"; private static string getKey(string key) => $"{prefix}:{key}";
} }

View File

@ -7,17 +7,17 @@ namespace osu.Game.Localisation
{ {
public static class NowPlayingStrings public static class NowPlayingStrings
{ {
private const string prefix = "osu.Game.Localisation.NowPlaying"; private const string prefix = @"osu.Game.Localisation.NowPlaying";
/// <summary> /// <summary>
/// "now playing" /// "now playing"
/// </summary> /// </summary>
public static LocalisableString HeaderTitle => new TranslatableString(getKey("header_title"), "now playing"); public static LocalisableString HeaderTitle => new TranslatableString(getKey(@"header_title"), @"now playing");
/// <summary> /// <summary>
/// "manage the currently playing track" /// "manage the currently playing track"
/// </summary> /// </summary>
public static LocalisableString HeaderDescription => new TranslatableString(getKey("header_description"), "manage the currently playing track"); public static LocalisableString HeaderDescription => new TranslatableString(getKey(@"header_description"), @"manage the currently playing track");
private static string getKey(string key) => $"{prefix}:{key}"; private static string getKey(string key) => $"{prefix}:{key}";
} }

View File

@ -7,17 +7,17 @@ namespace osu.Game.Localisation
{ {
public static class SettingsStrings public static class SettingsStrings
{ {
private const string prefix = "osu.Game.Localisation.Settings"; private const string prefix = @"osu.Game.Localisation.Settings";
/// <summary> /// <summary>
/// "settings" /// "settings"
/// </summary> /// </summary>
public static LocalisableString HeaderTitle => new TranslatableString(getKey("header_title"), "settings"); public static LocalisableString HeaderTitle => new TranslatableString(getKey(@"header_title"), @"settings");
/// <summary> /// <summary>
/// "change the way osu! behaves" /// "change the way osu! behaves"
/// </summary> /// </summary>
public static LocalisableString HeaderDescription => new TranslatableString(getKey("header_description"), "change the way osu! behaves"); public static LocalisableString HeaderDescription => new TranslatableString(getKey(@"header_description"), @"change the way osu! behaves");
private static string getKey(string key) => $"{prefix}:{key}"; private static string getKey(string key) => $"{prefix}:{key}";
} }