Author Topic: Translations with complex Strings  (Read 256 times)

Translations with complex Strings
« 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:
« Last Edit: 06 Jan 2021, 07:07 by Baguettator »

Re: Translations with complex Strings
« Reply #1 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
Fail at Floaty Rog' now!  still having to deal with what games are going through