mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Optimize code style
Co-authored-by: frenzibyte <frenzibyte@gmail.com> Co-authored-by: bdach <dach.bartlomiej@gmail.com>
This commit is contained in:
@ -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>
|
||||
|
@ -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}";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user