Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: interactive actions
Re: New feature: interactive actions[message #360208 is a reply to message #360207] Sat, 30 May 2020 19:26 Go to previous messageGo to previous message
Flugente

 
Messages:3507
Registered:April 2009
Location: Germany
Hi San-Cat, welcome to the pit!

We can ask the game what language we are currently using while using lua scripts.

-- these numbers aren't used in the code - we only use them in LUA
Languages =
{
	LANGUAGE_ENGLISH = 0,
	LANGUAGE_GERMAN = 1,
	LANGUAGE_RUSSIAN = 2,
	LANGUAGE_DUTCH = 3,
	LANGUAGE_POLISH = 4,
	LANGUAGE_FRENCH = 5,
	LANGUAGE_ITALIAN = 6,
	LANGUAGE_CHINESE = 7,
}

if ( GetUsedLanguage( nil ) == Languages.LANGUAGE_ENGLISH ) then
	SetScreenMsg(FontColour.FONT_MCOLOR_LTGREEN, "The prisoners are very grateful for freeing them.")
elseif ( GetUsedLanguage( nil ) == Languages.LANGUAGE_GERMAN ) then
	SetScreenMsg(FontColour.FONT_MCOLOR_LTGREEN, "Die Gefangenen sind für die Befreiung sehr dankbar.")
else
	SetScreenMsg(FontColour.FONT_MCOLOR_DKRED, "Translation missing!")
end

So translations are easily doable. Provided there is some poor soul willing to do the work big grin

[Updated on: Sat, 30 May 2020 19:26]




I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.

Report message to a moderator

Captain

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New Feature: ballistic shields
Next Topic: filling a canteen
Goto Forum:
  


Current Time: Tue Dec 03 03:50:48 GMT+2 2024

Total time taken to generate the page: 0.01105 seconds