-
Notifications
You must be signed in to change notification settings - Fork 4
Add Chinese translation to the Construct Addon #13
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
base: main
Are you sure you want to change the base?
Conversation
wed150
commented
Dec 20, 2025
- Add langs/zh_CN.lang file
- Change script files to adapt to Chinese
@EndrTrekker Co-Authored-By: EnderTrekker <3097762593@qq.com>
ForestOfLight
left a comment
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.
Thank you for translating Construct to Chinese!
First, thanks for catching these issues and fixing them:
- The relative path that was too long for the Raycaster in BlockInfo.
- The missing block sound error.
- The "isntance" typo.
Please revert all changes that aren't in the RP/texts folder or aren't the fixed issues mentioned above. This is for consistency and not misleading users:
Many types of strings are made to be translated, but block states do not fall into that category. Block states are hardcoded values and players may need to read them as their lower-level values. Also, since it is hardcoded, it would conflict with the other translations of this addon.
Using the ItemStack's localizationKey when looking at a block permutation may be inaccurate. It is better to wait until v26.0 when the permutation's type translation key can be used directly rather than using the ItemStack's translation key.
Could you explain the dimension translation issue? Though I see that it's currently not implemented, using the localizationKey for each dimension should work in theory.
Made re-translations for some inaccurate words
About Dimensions TranslationThe dimension translation is now implemented in the new commit About Block ID UsageIf directly using block IDs, then for some special blocks (like piston arms), we may need to define them in the .lang files. Translation Solution for Hard-coded Block States.For hard-coded Block States, I believe they can be incorporated into lang files using the following approach:
Due to translation issues it might be difficult to express clearly, so please take a look at my new commit |
|
Regarding the block state translation part in the code, it is only a suggestion. I hope you can add the translatability feature for this part in the future. |