Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Baguettator on Wed 06/01/2021 06:59:50

Title: Translations with complex Strings
Post by: Baguettator on Wed 06/01/2021 06:59:50
Hi all,

New Topic, new problem.

I am making the translation of my game, and there is the problem I encounter :

Code (ags) Select
String nom = "Cathy";
// Translation : "Cathy"
String bio = "J'ai 21 ans et je suis une ado ennuyeuse.";
// Translation : "I am 21 years old and I am a boring teenager."

Display("%s", nom);
// Displays : "Cathy"

Display("%s", bio);
// Displays : "I am 21 years old and I am a boring teenager"

Display("%s[[%s", nom, bio);
//  It Strangely Displays : "Cathy
J'ai 21 ans et je suis une ado ennuyeuse."


Is it an editor problem ? Or I don't use the translation file as intended ?

EDIT : Appologize, I found the GetTranslation function, that is what I need to use. I very sorry to have thought it could be a program error, it was so ambitious  :grin:
Title: Re: Translations with complex Strings
Post by: Khris on Wed 06/01/2021 10:43:32
You found it already, just wanted to point out that at 21, you're not a teenager anymore :-D