Fix CI code quality

This commit is contained in:
its5Q 2022-08-08 22:06:23 +10:00
parent 5080d62e77
commit 9f043e725f
2 changed files with 4 additions and 4 deletions

View File

@ -10,10 +10,10 @@ namespace osu.Game.Configuration
{
public enum ScreenshotFormat
{
[LocalisableDescription(typeof(GraphicsSettingsStrings), nameof(GraphicsSettingsStrings.JPG))]
[LocalisableDescription(typeof(GraphicsSettingsStrings), nameof(GraphicsSettingsStrings.Jpg))]
Jpg = 1,
[LocalisableDescription(typeof(GraphicsSettingsStrings), nameof(GraphicsSettingsStrings.PNG))]
[LocalisableDescription(typeof(GraphicsSettingsStrings), nameof(GraphicsSettingsStrings.Png))]
Png = 2
}
}

View File

@ -132,12 +132,12 @@ namespace osu.Game.Localisation
/// <summary>
/// "JPG (web-friendly)"
/// </summary>
public static LocalisableString JPG => new TranslatableString(getKey(@"jpg_web_friendly"), @"JPG (web-friendly)");
public static LocalisableString Jpg => new TranslatableString(getKey(@"jpg_web_friendly"), @"JPG (web-friendly)");
/// <summary>
/// "PNG (lossless)"
/// </summary>
public static LocalisableString PNG => new TranslatableString(getKey(@"png_lossless"), @"PNG (lossless)");
public static LocalisableString Png => new TranslatableString(getKey(@"png_lossless"), @"PNG (lossless)");
private static string getKey(string key) => $"{prefix}:{key}";
}