mirror of
https://github.com/ppy/osu.git
synced 2026-06-03 06:09:54 +08:00
Remove font weight localisation
This commit is contained in:
@@ -5,8 +5,6 @@
|
||||
|
||||
using System.ComponentModel;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Framework.Localisation;
|
||||
using osu.Game.Localisation;
|
||||
|
||||
namespace osu.Game.Graphics
|
||||
{
|
||||
@@ -179,37 +177,31 @@ namespace osu.Game.Graphics
|
||||
/// <summary>
|
||||
/// Equivalent to weight 300.
|
||||
/// </summary>
|
||||
[LocalisableDescription(typeof(FontStrings), nameof(FontStrings.Light))]
|
||||
Light = 300,
|
||||
|
||||
/// <summary>
|
||||
/// Equivalent to weight 400.
|
||||
/// </summary>
|
||||
[LocalisableDescription(typeof(FontStrings), nameof(FontStrings.Regular))]
|
||||
Regular = 400,
|
||||
|
||||
/// <summary>
|
||||
/// Equivalent to weight 500.
|
||||
/// </summary>
|
||||
[LocalisableDescription(typeof(FontStrings), nameof(FontStrings.Medium))]
|
||||
Medium = 500,
|
||||
|
||||
/// <summary>
|
||||
/// Equivalent to weight 600.
|
||||
/// </summary>
|
||||
[LocalisableDescription(typeof(FontStrings), nameof(FontStrings.SemiBold))]
|
||||
SemiBold = 600,
|
||||
|
||||
/// <summary>
|
||||
/// Equivalent to weight 700.
|
||||
/// </summary>
|
||||
[LocalisableDescription(typeof(FontStrings), nameof(FontStrings.Bold))]
|
||||
Bold = 700,
|
||||
|
||||
/// <summary>
|
||||
/// Equivalent to weight 900.
|
||||
/// </summary>
|
||||
[LocalisableDescription(typeof(FontStrings), nameof(FontStrings.Black))]
|
||||
Black = 900
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using osu.Framework.Localisation;
|
||||
|
||||
namespace osu.Game.Localisation
|
||||
{
|
||||
public static class FontStrings
|
||||
{
|
||||
private const string prefix = @"osu.Game.Resources.Localisation.Font";
|
||||
|
||||
/// <summary>
|
||||
/// "Light"
|
||||
/// </summary>
|
||||
public static LocalisableString Light => new TranslatableString(getKey(@"light"), @"Light");
|
||||
|
||||
/// <summary>
|
||||
/// "Regular"
|
||||
/// </summary>
|
||||
public static LocalisableString Regular => new TranslatableString(getKey(@"regular"), @"Regular");
|
||||
|
||||
/// <summary>
|
||||
/// "Medium"
|
||||
/// </summary>
|
||||
public static LocalisableString Medium => new TranslatableString(getKey(@"medium"), @"Medium");
|
||||
|
||||
/// <summary>
|
||||
/// "Semibold"
|
||||
/// </summary>
|
||||
public static LocalisableString SemiBold => new TranslatableString(getKey(@"semi_bold"), @"Semibold");
|
||||
|
||||
/// <summary>
|
||||
/// "Bold"
|
||||
/// </summary>
|
||||
public static LocalisableString Bold => new TranslatableString(getKey(@"bold"), @"Bold");
|
||||
|
||||
/// <summary>
|
||||
/// "Black"
|
||||
/// </summary>
|
||||
public static LocalisableString Black => new TranslatableString(getKey(@"black"), @"Black");
|
||||
|
||||
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user