-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use more correct localised string source for "sign out" text #24068
Conversation
Thoughts on making the rest of the dropdown's items match the diff --git a/osu.Game/Overlays/Login/UserDropdown.cs b/osu.Game/Overlays/Login/UserDropdown.cs
index f2a12f9a1e..b885a5fc3d 100644
--- a/osu.Game/Overlays/Login/UserDropdown.cs
+++ b/osu.Game/Overlays/Login/UserDropdown.cs
@@ -1,8 +1,10 @@
// 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.Extensions.LocalisationExtensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.UserInterface;
+using osu.Framework.Localisation;
using osu.Game.Graphics.UserInterface;
using osu.Game.Users.Drawables;
using osuTK;
@@ -16,6 +18,11 @@ public partial class UserDropdown : OsuEnumDropdown<UserAction>
protected override DropdownMenu CreateMenu() => new UserDropdownMenu();
+ protected override LocalisableString GenerateItemText(UserAction item)
+ {
+ return base.GenerateItemText(item).ToTitle();
+ }
+
public Color4 StatusColour
{
set
I guess. |
Fair point, but the other option of changing other localisations to match still stands. We control |
For sure, just not sure if we want title case or not at this point. |
I'm... not sure I have a well-formed opinion about that, I'd just probably match the swapped-out string and do title case. @Joehuu might have other opinions? |
It shouldn't be title-cased as the majority of other cases use sentence-cased (e.g. I would use |
At this point we should either fix osu-web side, or duplicate the string. |
I'd say duplicate. |
330cf87
to
95c30fe
Compare
#24026