[Idea] Navigation Language

Discussion and feedback on Construct 2

Post » Fri Jul 13, 2012 4:06 am

Is possible to make a new feature that an event detects user language using browser language or GeoLocation language api?

I'm curious, some HTML5 apps come multi language system, i tried to play a game which is totally in english language, then it turned into spanish language when i started the game.

If i make an event, then if is using spanish, the value is "2", the game starts with a condition is variable "2", every text is in spanish language.
Otherwise the value is "3", every text is in french.

Also i believe the gaming is global.

Joannesalfa2012-07-13 04:06:48
B
96
S
25
G
20
Posts: 3,054
Reputation: 22,642

Post » Fri Jul 13, 2012 4:31 pm

You can already use the browser.langage expression. (check the manual entry).

From there you can use a condition like "Compare two values" on start of layout, or something like that.

That's what I had done in one of my first games "Space Jinx", you can find a link to the capx in the how do I FAQ.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Fri Jul 13, 2012 9:13 pm

[QUOTE=Kyatric] You can already use the browser.langage expression. (check the manual entry).

From there you can use a condition like "Compare two values" on start of layout, or something like that.

That's what I had done in one of my first games "Space Jinx", you can find a link to the capx in the how do I FAQ.[/QUOTE]

Oops, i didn't notice about browser expression, anyways thank you!
B
96
S
25
G
20
Posts: 3,054
Reputation: 22,642


Return to Construct 2 General

Who is online

Users browsing this forum: Colludium, Yahoo [Bot] and 2 guests