Translations with complex Strings

Started by Baguettator, Wed 06/01/2021 06:59:50

Previous topic - Next topic

Baguettator

Hi all,

New Topic, new problem.

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

Code: ags
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:

Khris

You found it already, just wanted to point out that at 21, you're not a teenager anymore :-D

SMF spam blocked by CleanTalk