locale for info.json description ?

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

locale for info.json description ?

Post by binbinhfr »

Hi,

as I noticed that some players do not speak english at all,
it would be nice to extend locale logic to info.json description, so that players could browse mods ingame in their own langage if available.
there would still be a default "description" field in english, and then maybe optional "description.fr", "description.ru", etc...
My mods on the Factorio Mod Portal :geek:
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: locale for info.json description ?

Post by aubergine18 »

Would it be better to have a section in the existing locale files, something like:

Code: Select all

[__mod_name__]
name = Name of the mod
description = Longer description of the mod \n can have multiple lines
The mod portal could later be tweaked to use name/description from locale files if found (and eventually provide ability for users to choose language for the mod portal), otherwise fallback to the info.json

The main thing is to get the stuff moving in to locale files as soon as possible so that when the mod portal is eventually updated (and also the in-game mod library) there are a large number of mods already using the localisable name/description.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: locale for info.json description ?

Post by binbinhfr »

aubergine18 wrote:Would it be better to have a section in the existing locale files
probably, but for modders that do not use locale at all (a lot of mods do not have locale files), it would be more simple in the info.json.
probably also more simple to handle by the mod portal that seems to already read the info.json file .
My mods on the Factorio Mod Portal :geek:
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: locale for info.json description ?

Post by aubergine18 »

IMO it would be better to have mods use locale files - keep everything consistent.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
Post Reply

Return to “Implemented mod requests”