Page 1 of 1

Localization: [string-mod-setting-description]

Posted: Sat May 16, 2020 9:13 am
by Pi-C
We already have these localization categories for mod settings:

Code: Select all

[mod-setting-name]
my-mod-test-setting=Localized test setting name

[mod-setting-description]
my-mod-test-setting=Localized test setting description

[string-mod-setting]
#<setting-name>-<dropdown-item-name>=<translated item>
my-mod-string-test-setting-item-1=Item 1 localized string
I think it would be a good idea to add another one: [string-mod-setting-description].

Dropdown lists may get quite long. Currently, you'd have to make the title self-explanatory, or cram descriptions for all possible values into the mod-setting-description. It's easy to understand what an option does if it's a number values. However, the values could be used as value in comparisons, like this:

Code: Select all

if setting.value ==  'X' then 
	remote.call('interface_A', …) 
elseif setting.value == 'Y' then
	remote.call('interface_B', …)
end
In such cases, it would be useful if a more detailed description could be added:

Code: Select all

[string-mod-setting]
my-mod-string-test-setting-X=If mod A is active, …
my-mod-string-test-setting-Y=If mod B is active, … This won't apply if mods A and  C are also active!
Do you think this could be done?

Re: Localization: [string-mod-setting-description]

Posted: Tue Oct 06, 2020 12:28 am
by Kuxynator
ooh, the [string-mod-setting-description] is not implemented? and I wonder why it does not work.
IMHO [string-mod-setting-description] is the logical consequence of [string-mod-setting] and should be implemented.

Re: Localization: [string-mod-setting-description]

Posted: Sun Jan 10, 2021 9:07 pm
by Rseding91
Ok, it's done for the next release.

Re: Localization: [string-mod-setting-description]

Posted: Sun Jan 10, 2021 9:27 pm
by Pi-C
Nice, thanks a lot! :-)