Adventure Game Studio | Forums

AGS Support => Advanced Technical Forum => Topic started by: Baguettator on 06 Jan 2021, 06:59

Title: Translations with complex Strings
Post by: Baguettator on 06 Jan 2021, 06:59
Hi all,

New Topic, new problem.

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

Code: Adventure Game Studio
  1. String nom = "Cathy";
  2. // Translation : "Cathy"
  3. String bio = "J'ai 21 ans et je suis une ado ennuyeuse.";
  4. // Translation : "I am 21 years old and I am a boring teenager."
  5.  
  6. Display("%s", nom);
  7. // Displays : "Cathy"
  8.  
  9. Display("%s", bio);
  10. // Displays : "I am 21 years old and I am a boring teenager"
  11.  
  12. Display("%s[[%s", nom, bio);
  13. //  It Strangely Displays : "Cathy
  14. 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 06 Jan 2021, 10:43
You found it already, just wanted to point out that at 21, you're not a teenager anymore :-D