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...
locale for info.json description ?
locale for info.json description ?
My mods on the Factorio Mod Portal ![Geek :geek:](./images/smilies/icon_e_geek.gif)
![Geek :geek:](./images/smilies/icon_e_geek.gif)
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
Re: locale for info.json description ?
Would it be better to have a section in the existing locale files, something like:
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.
Code: Select all
[__mod_name__]
name = Name of the mod
description = Longer description of the mod \n can have multiple lines
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.
Re: locale for info.json description ?
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.aubergine18 wrote:Would it be better to have a section in the existing locale files
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 :geek:](./images/smilies/icon_e_geek.gif)
![Geek :geek:](./images/smilies/icon_e_geek.gif)
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
Re: locale for info.json description ?
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.