Add Simplified Chinese localization - #5
Conversation
- Translate all Mod Config Menu options and the Edit Mode indicator - Bundle a CJK pixel font (fusion-pixel, OFL-licensed) under resources/font/fusion-pixel/ - Use the UTF-8 draw APIs (DrawStringScaledUTF8 / GetStringWidthUTF8) for Chinese text on the NG engine - Wave counter digits keep using the original terminus font
AaronCohen21
left a comment
There was a problem hiding this comment.
To my understanding this change was supposed to add a simplified Chinese translation to the MCM settings page. Instead, this PR replaces all text with simplified Chinese.
In order to accommodate both languages an i18n library (e.g. https://github.com/kikito/i18n.lua) should be imported as a dependency, and the code will need to be refactored to accommodate this change.
Im not too sure about what the best lua package manager out there is, but the library should be added as a dependency through some system so it can be easy to upgrade in the future if need be.
I'm happy to add these changes myself, but might not get to it for a little bit.
|
That approach sounds good to me — thanks for offering to take care of the i18n implementation. I'll leave that to you. |
Summary
Simplified Chinese localization for Boss Rush Wave Counter:
resources/font/fusion-pixel/so Chinese text renders correctlyDrawStringScaledUTF8/GetStringWidthUTF8), required for Chinese text on the NG engineNotes