Skip to content
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

Simplified Chinese translation #654

Open
CloneWith opened this issue Apr 16, 2024 · 1 comment
Open

Simplified Chinese translation #654

CloneWith opened this issue Apr 16, 2024 · 1 comment
Labels
i18n/l10n Internationalization / localization: difficult here because many strings are in C constants

Comments

@CloneWith
Copy link

Hi, recently I've been working on the Simplified Chinese translation of this project, and I'm mainly translating interface strings in my fork.
Could translations work properly currently?

@chrisboyle
Copy link
Owner

Sorry, there is currently no usable translation infrastructure in Puzzles to apply translations to the .c files, which contain all of the game logic and therefore most of the visible strings in the app. This is because of C's approach to memory management: a dynamically translated string is not straightforward to use where the original source code contains a string constant. A previous attempt to work around that turned out to be unsafe and caused crashes so I disabled it. I have an idea for a different mechanism for this but haven't found time to make any progress with it yet.

@chrisboyle chrisboyle added the i18n/l10n Internationalization / localization: difficult here because many strings are in C constants label May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i18n/l10n Internationalization / localization: difficult here because many strings are in C constants
Projects
None yet
Development

No branches or pull requests

2 participants