-
Notifications
You must be signed in to change notification settings - Fork 7
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
Allow settings localization #21
Comments
I have also had this request. |
I would recommend changing the issue title to something more descriptive. Maybe something like: Allow settings localization This is partly a duplicate of #22, which has a more descriptive issue title already. |
Could you do something as simple as this: public SettingPropertyAttribute(string displayName, float minValue, float maxValue, float editableMinValue, float editableMaxValue, string hintText = "") This would let us pass in descriptions like {=abc123}PropertyName and it should run through the localization process. Although we may have to put our xml files in the ModLib/ModuleData/Languages folder for it to find them (would need to test). If that is the case you would also need to run LocalizedTextManager.LoadLocalizationXmls(); in your SubModule OnLoad event as well if you're not already. |
Hi, Mipen.
I have been using you Modlib for my mod GrowUpAndWork.
And after I reference your lib as a required mod and as an external lib. It's very handy..
However, I encounter a problem.
Let's say I have a demand for localize it for some other language users.
Well the attributes of setting class attribute could not be easily changed in runtime.
(The SettingProperty.displayName and Hint field).
Could you maybe provide a way to change them in the future. I would like to detect the use's game language and change them accordingly.
Thanks!
The text was updated successfully, but these errors were encountered: