-
Notifications
You must be signed in to change notification settings - Fork 24
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
i18n support (adding translations) #165
Comments
Thank you for calling out the need for internationalization support! Agreed, this should be a top priority for making this more usable. Will use this space to reference exploration of the "right" way to support i18n. For now, referencing this thread on another repository I help maintain. Adding additional resources as I come across them:
|
https://www.bilibili.com/video/BV1Wa4y1s7ti |
Bumping this back up, I think it would be good to start working on this in a parallel branch. Per subpage above, this is probably a better general starting point: https://docs.blender.org/api/current/bpy.app.translations.html |
ok i will try fork it and start a new branch. |
I think I'll get started on this |
So I found a guide on localization. Blender provides an API for it: Just need to confirm this works in 2.78+. If it doesn't, there's also an older way: |
Only problem is that now, we need to manually translate different parts of MCprep, there's no automatic translation |
So I think what we could do is have a bunch of JSON files (with the name set to the language in question), with the following format: {
"language" : "<language here>",
"translation" : {
"<insert something from the UI>" : "<translation>"
}
} That way users wanting to translate only need a text editor (even Notepad works in this case). MCprep could then load these JSON files at startup Of course opening up translations to the userbase also runs the risk of Google Translate (or something simillar) being used, but that's whole other discussion |
Great, having a standalone file storing translates can have more flexelibity. using structed format like json could parse it more easily. |
I've now opened a GitHub issue to track progress on this (#439) and have started work on i18n support for MCprep 3.5.1 (so not next release, but the release after next) |
I'll close this as completed since we've gotten preliminary support, which we'll be expanding on in the next couple of releases. |
I like this addon and if it has i18n support, it will more easy for user to learn it
The text was updated successfully, but these errors were encountered: