How would I go about making a language translator?

Get help using Construct 2

Post » Tue Jun 23, 2015 8:51 am

Hello all, I was wondering... How would I go about making a language translator? I checked the tutorial section and I didn't see anything there. Could someone please help me figure out the basics of how it would work? Thanks.
B
36
S
9
G
1
Posts: 629
Reputation: 3,956

Post » Tue Jun 23, 2015 9:03 am

What do you mean by language translator?

Translating anything like translate.google.com or just having an option to set the different texts in your game to different languages?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Jun 23, 2015 4:54 pm

Great question. I would like to be able to translate anything like translate.google.com.
B
36
S
9
G
1
Posts: 629
Reputation: 3,956

Post » Tue Jun 23, 2015 4:58 pm

If that's too difficult, then how would I create an option to set the different texts in your game to different languages instead? Thanks.
B
36
S
9
G
1
Posts: 629
Reputation: 3,956

Post » Tue Jun 23, 2015 6:33 pm

Bump.
B
36
S
9
G
1
Posts: 629
Reputation: 3,956

Post » Tue Jun 23, 2015 6:44 pm

Well, you can have a global variable that specifies the language you want. Presumably you'd have an options screen in your game where the user can change it. Then in events you just check what language was chosen when you set text.
Code: Select all
global number language = "english"

+--------------------+
| language="english" | set text to "The good blue cat."
+--------------------+
+--------------------+
| language="spanish" | set text to "El gato azul diablo."
+--------------------+
B
94
S
33
G
113
Posts: 5,354
Reputation: 73,269

Post » Tue Jun 23, 2015 6:56 pm

Sorry for my bad english, but I really do my best! And use and check with Google Translator.
B
11
S
4
G
1
Posts: 158
Reputation: 1,328

Post » Tue Jun 23, 2015 11:14 pm

Thanks.
B
36
S
9
G
1
Posts: 629
Reputation: 3,956


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests