Hey Guys,
at the moment i'm working on improving my Straight Pipes MOD.
Now, i'm at that point where i need to set the localised names.
But because english and german direction names are different i need to detect the used localized.
(For other langues i need to add the support later)
Greetz,
Luzifer
[DONE]Can i detect the used langue?
- LuziferSenpai
- Filter Inserter
- Posts: 393
- Joined: Tue Jul 08, 2014 10:06 am
- Contact:
[DONE]Can i detect the used langue?
Last edited by LuziferSenpai on Sat Aug 27, 2016 11:16 am, edited 1 time in total.
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
Re: Can i detect the used langue?
You just add the different .cfg files in the locale/<lang>/ folder.
For example:
yourMod/locale/en/en.cfg
yourMod/locale/de/de.cfg
Then set your recipe/item/entity names to be locale strings in the prototypes and any of your scripts.
For example:
yourMod/locale/en/en.cfg
yourMod/locale/de/de.cfg
Then set your recipe/item/entity names to be locale strings in the prototypes and any of your scripts.
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.
- LuziferSenpai
- Filter Inserter
- Posts: 393
- Joined: Tue Jul 08, 2014 10:06 am
- Contact:
Re: Can i detect the used langue?
I know, but i need to say in german that its Norden Osten Süden Westen, not North East South West ^^aubergine18 wrote:You just add the different .cfg files in the locale/<lang>/ folder.
For example:
yourMod/locale/en/en.cfg
yourMod/locale/de/de.cfg
Then set your recipe/item/entity names to be locale strings in the prototypes and any of your scripts.
Re: [DONE]Can i detect the used langue?
With your mod (Straight Pipes 0.2.4) the only strings not localised that I saw were the entity icons with text, do you mean them (replacing the E with O in german localisation)?
If so then I don't know, but I doubt this is easily possible as I've ever seen a mod that does that.
- LuziferSenpai
- Filter Inserter
- Posts: 393
- Joined: Tue Jul 08, 2014 10:06 am
- Contact:
Re: [DONE]Can i detect the used langue?
I have done it already^^daniel34 wrote:With your mod (Straight Pipes 0.2.4) the only strings not localised that I saw were the entity icons with text, do you mean them (replacing the E with O in german localisation)?If so then I don't know, but I doubt this is easily possible as I've ever seen a mod that does that.
Version 1.0.0 is out with it ^^
But the Icons i cant fix at the moment because i dont know why ^^