Optimize code style

Co-authored-by: frenzibyte <frenzibyte@gmail.com>
Co-authored-by: bdach <dach.bartlomiej@gmail.com>
This commit is contained in:
kj415j45
2021-07-18 00:28:32 +08:00
parent 51742da89a
commit 1b4bff0d9f
4 changed files with 8 additions and 52 deletions

View File

@ -9,16 +9,6 @@ namespace osu.Game.Localisation
{
private const string prefix = @"osu.Game.Resources.Localisation.News";
/// <summary>
/// "frontpage"
/// </summary>
public static LocalisableString FrontPageString => new TranslatableString(getKey(@"front_page"), @"frontpage");
/// <summary>
/// "news"
/// </summary>
public static LocalisableString HeaderTitle => new TranslatableString(getKey(@"header_title"), @"news");
/// <summary>
/// "join the real-time discussion"
/// </summary>

View File

@ -1,29 +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 WikiStrings
{
private const string prefix = @"osu.Game.Resources.Localisation.Wiki";
/// <summary>
/// "index"
/// </summary>
public static LocalisableString IndexPageString => new TranslatableString(getKey(@"index_page"), @"index");
/// <summary>
/// "wiki"
/// </summary>
public static LocalisableString HeaderTitle => new TranslatableString(getKey(@"header_title"), @"wiki");
/// <summary>
/// "knowledge base"
/// </summary>
public static LocalisableString HeaderDescription => new TranslatableString(getKey(@"header_description"), @"knowledge base");
private static string getKey(string key) => $"{prefix}:{key}";
}
}