Localization: [string-mod-setting-description]

Post Reply
Pi-C
Smart Inserter
Smart Inserter
Posts: 1639
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Localization: [string-mod-setting-description]

Post 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?
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!

User avatar
Kuxynator
Inserter
Inserter
Posts: 31
Joined: Wed Sep 23, 2020 5:02 pm
Contact:

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

Post 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.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13175
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

Ok, it's done for the next release.
If you want to get ahold of me I'm almost always on Discord.

Pi-C
Smart Inserter
Smart Inserter
Posts: 1639
Joined: Sun Oct 14, 2018 8:13 am
Contact:

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

Post by Pi-C »

Nice, thanks a lot! :-)
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!

Post Reply

Return to “Implemented mod requests”