The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Topic started by: Phystam on January 13, 2018, 08:00:55 PM

Title: Translation for the setting window
Post by: Phystam on January 13, 2018, 08:00:55 PM
In the setting window, numeric input components cannot be translated.
I found the simple solution. Please merge it.

In gui/settings_stats.h,

- lb->set_text_pointer(t);\
+ lb->set_text(t);\

for INIT_NUM, INIT_COST and INIT_LB defined functions.
Title: Re: Translation for the setting window
Post by: jamespetts on January 13, 2018, 11:36:26 PM
Thank you for this. I think that the reason that these are not translatable is that they are intended to be identical to the actual strings used for settings in simuconf.tab. This is not very user friendly - but a solution would be complex. In principle, a tooltip would be a good idea, but currently labels have no code for tooltips, and the actual number inputs have tooltips automatically stating the range of numbers that they will accept, so any solution to this would involve some non-trivial work in allowing the text labels to have tooltips (or some other creative solution to this issue).

I should note that this is equally an issue in Standard.
Title: Re: Translation for the setting window
Post by: Phystam on January 14, 2018, 06:26:30 AM
Thank you for your explanations.
However, checkbox components could be translated originally...

Most of Japanese users cannot understand it immediately without translation.
I think this improvement will help non-native speakers to understand.
Since the original text (parameter name) will be applied when the translation data is missing, translation of setting window should be done.
Title: Re: Translation for the setting window
Post by: jamespetts on January 14, 2018, 12:29:44 PM
Can you elaborate on what you mean by the checkbox components being translated originally? I am afraid that I do not quite understand.