-
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
[Feature] Localization #4067
base: develop
Are you sure you want to change the base?
[Feature] Localization #4067
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tbh this and #3985's FunkinText
is such a match made in heaven
Ok I might have an issue... |
Or it's just maybe cause I forgot a |
@@ -313,7 +313,7 @@ class StoryMenuState extends MusicBeatState | |||
|
|||
highScoreLerp = Std.int(MathUtil.smoothLerp(highScoreLerp, highScore, elapsed, 0.25)); | |||
|
|||
scoreText.text = 'LEVEL SCORE: ${Math.round(highScoreLerp)}'; | |||
scoreText.text = Localization.tongue.get("$LEVEL_SCORE", "story_menu") + ' ${Math.round(highScoreLerp)}'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super small nitpick but it would be nice if you could set up localization so that the value could positioned be anywhere in the translated text, since for instance Arabic is read from right to left
Marginally better system than mine either way!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I will work on it
amazing pr! |
would love to see this with languages that have custom letters for example chinese and arabic but thats too expensive for the funkin team i think |
Well for fonts directly used by flixel, that won't be a huge problem (they could use the unifont at any moment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There appears to be some commented out code you added throughout your changes. The style guide advises against leaving commented out code, please remove them!
Overall though, this PR looks great and could really help save the devs time!
I found issues #3896 about adding localization.
And after that also PR #3985 where EliteMasterEric mention using FireTongue...
This PR is meant to start it and allow you to gain some time with it.