Page 1 of 1
[DONE]Can i detect the used langue?
Posted: Fri Aug 26, 2016 9:08 pm
by LuziferSenpai
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
Re: Can i detect the used langue?
Posted: Fri Aug 26, 2016 10:49 pm
by aubergine18
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: Can i detect the used langue?
Posted: Sat Aug 27, 2016 9:46 am
by LuziferSenpai
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.
I know, but i need to say in german that its Norden Osten Süden Westen, not North East South West ^^
Re: [DONE]Can i detect the used langue?
Posted: Sat Aug 27, 2016 11:30 am
by daniel34
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)?

- straight-pipes.jpg (10.74 KiB) Viewed 1358 times
If so then I don't know, but I doubt this is easily possible as I've ever seen a mod that does that.
Re: [DONE]Can i detect the used langue?
Posted: Sat Aug 27, 2016 11:34 am
by LuziferSenpai
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)?
straight-pipes.jpg
If so then I don't know, but I doubt this is easily possible as I've ever seen a mod that does that.
I have done it already^^
Version 1.0.0 is out with it ^^
But the Icons i cant fix at the moment because i dont know why ^^