Author Topic: Issues with .trs translation file (mixed english and original language)  (Read 660 times)

Hi folks! :)
After filling up the translation text file, by alternating original lines with the respective translations, all the hotspots, gui's and buttons are correctly translated.
For the speech we used the .DisplayAt function instead of the .Say one and that's where shit hits the fan: most of them are translated but there's a few of them that keep being in their original version.
We updated, compiled and double checked the .trs file, and we were not able to find any solution to this.
Any help is much appreciated, thanks in advance.




Mandle

  • NO PIXEL LEFT BEHIND!!!
    • Mandle worked on one or more games that won an AGS Award!
    •  
    • Mandle worked on one or more games that was nominated for an AGS Award!
I usually find that this is a problem with a mistake in the way the TRS file was handled:

Look for line breaks where there shouldn't be any, or missing line breaks where there should be...

The TRS is a delicate beast...

CrashPL

  • The dinosaur guy
    • I can help with AGS tutoring
    • I can help with animation
    • I can help with characters
    • I can help with play testing
    • I can help with scripting
    • I can help with translating
    • CrashPL worked on one or more games that was nominated for an AGS Award!
Just like Mandle says, one of the things to remember, while handling the *.trs file, is the space at the end of the string - if the original string happens to have a space at the very end, it won't be translated. I remember spending a good amount of time wondering why "Acquired " kept displaying in English, while doing the translation... Maybe that's the cause here?

I think I'd mention just in case that not all strings get automatically translated. For example, string formatting arguments are not.

Code: Adventure Game Studio
  1. String s = "Red";
  2. Display("My favourite color is %s", s); // "My favourite color" will be translated, but "Red" won't be.
  3.  

For these you'd need to do something like this:
Code: Adventure Game Studio
  1. String s = "Red";
  2. Display("My favourite color is %s", GetTranslation(s)); // Now both parts will be translated
  3.