Author Topic: How to add second language to game?  (Read 57 times)

How to add second language to game?
« on: 09 Nov 2019, 09:53 »
Hello guys. I'm asking this because I don't want to put my game in danger. I'm so confused about this subject. I create a Translation first but it deleted my normal languages data. Of course I tried just for one line. :) I need to create a button. When I clicked that button, game must be English(second language that I am going to add). Whenever I restart my game it must be remember my choice. So I have dialogs,displays,gui_names etc. I think I must be use Translations but how I can control 2 languages. Give me the best practice of this problem. Thank you for your help :)

« Last Edit: 09 Nov 2019, 09:55 by fancasopedia »

Re: How to add second language to game?
« Reply #1 on: 09 Nov 2019, 10:35 »
What is normal languages data? Can you give me some screenshots to accompany your description?

Have you read here?
https://adventuregamestudio.github.io/ags-manual/Translations.html

Other relevant function is here:
https://adventuregamestudio.github.io/ags-manual/Game.html#gamechangetranslation

Remembering a choice requires writing and reading to some file so that you can read this before starting the game.

Re: How to add second language to game?
« Reply #2 on: 09 Nov 2019, 10:46 »
What is normal languages data? Can you give me some screenshots to accompany your description?

Have you read here?
https://adventuregamestudio.github.io/ags-manual/Translations.html

Other relevant function is here:
https://adventuregamestudio.github.io/ags-manual/Game.html#gamechangetranslation

Remembering a choice requires writing and reading to some file so that you can read this before starting the game.

Thanks for your help. I get it know. :) Only one function can do the trick then.