Author Topic: Translations  (Read 6774 times)

Offline Cassiebsg

  • Project Team Member
  • *****
  • Posts: 80
  • There are those you believe...
    • View Profile
Re: Translations
« Reply #75 on: January 14, 2020, 11:09:23 am »
Uhm, funny works here fine, and I haven't changed anything that could cause that problem.
I did got that error as well when I placed the german tra into the game folder, but I just assumed that maybe AmigaMaster had changed something or used a diferent AGSEditor, so I downloaded the trs and compiled my own tra.

Edit:
Okay I did a few tests and encoded 3 versions that are slightly different. If my theory is right only version 3 will work. But please do try all 3 and let me know which work (if any) and which don't.

http://www.mediafire.com/file/njvnil8nlxdfo24/ITA_1.tra/file
http://www.mediafire.com/file/wylcuoe2e0p5vpr/ITA_2.tra/file
http://www.mediafire.com/file/ggh79d5xsz35ten/ITA_3.tra/file


Offline n0l4n

  • Jr. Member
  • **
  • Posts: 33
  • I love Indy
    • View Profile
Re: Translations
« Reply #76 on: January 14, 2020, 05:53:06 pm »
Uhm, funny works here fine, and I haven't changed anything that could cause that problem.
I did got that error as well when I placed the german tra into the game folder, but I just assumed that maybe AmigaMaster had changed something or used a diferent AGSEditor, so I downloaded the trs and compiled my own tra.

Edit:
Okay I did a few tests and encoded 3 versions that are slightly different. If my theory is right only version 3 will work. But please do try all 3 and let me know which work (if any) and which don't.

http://www.mediafire.com/file/njvnil8nlxdfo24/ITA_1.tra/file
http://www.mediafire.com/file/wylcuoe2e0p5vpr/ITA_2.tra/file
http://www.mediafire.com/file/ggh79d5xsz35ten/ITA_3.tra/file

Reporting for duty!

So the first one doesn't work, second and third do. I'll let you know if there's anything else to report.

By the way, do you know if there's any way to translate the "and the relic of the viking" part in the opening slash screen right underneath the Indy logo and the main menu "new game", "load game", "bonuses" etc?

Offline Cassiebsg

  • Project Team Member
  • *****
  • Posts: 80
  • There are those you believe...
    • View Profile
Re: Translations
« Reply #77 on: January 14, 2020, 06:58:05 pm »
Oh, thanks for the report. Since both 2 & 3 work, then I now know what happened. I fixed the name of the game in the game settings, since I notice that Viking wasn't capitalized, and a few days ago the game decided to compile all files, and not just the exe... Guess I'll keep it in the bugs notes for the dev to fix.  ;)

As for the menu translation:
You can't doing with just a tra file.
Those are images and new images with the translated text need to be added to the source, plus one needs to code it to change the images accordingly to translation.

If you like, you can create a txt file with the translations for those images. So when the demo is officially coded to handle multi language, one can add these "text  images".

You don't need to keep the original translation file formating. So feel free to leave as many empty lines as you like, just as long at it's easy to read and understand.

Offline Cassiebsg

  • Project Team Member
  • *****
  • Posts: 80
  • There are those you believe...
    • View Profile
Re: Translations
« Reply #78 on: January 17, 2020, 11:55:37 am »
I just realized that one can adjust the normal & speech font on the TRS file.

So here's the TRA with new speech font:
ITA: https://www.mediafire.com/file/u1xrbu3gvb9u7ax/ITA.tra/file
GER: https://www.mediafire.com/file/s4hqj5mbx898tb7/GER.tra/file

And here's what you should do to change it on your TRS file:

At line 11, replace the line //#NormalFont=DEFAULT with //#NormalFont=19

At line 13, replace the line //#SpeechFont=DEFAULT with //#SpeechFont=20

With this changes you'll get the speech font changed to one using the special western European characters. I'm not sure what, if anything, is using Normal Font, but can't hurt to change it as well.
This will not change any labels or button font. So this is more like a half solution. Rest needs to be made via code and compilation of a new demo.

Offline n0l4n

  • Jr. Member
  • **
  • Posts: 33
  • I love Indy
    • View Profile
Re: Translations
« Reply #79 on: January 17, 2020, 02:16:15 pm »
I just realized that one can adjust the normal & speech font on the TRS file.

So here's the TRA with new speech font:
ITA: https://www.mediafire.com/file/u1xrbu3gvb9u7ax/ITA.tra/file
GER: https://www.mediafire.com/file/s4hqj5mbx898tb7/GER.tra/file

And here's what you should do to change it on your TRS file:

At line 11, replace the line //#NormalFont=DEFAULT with //#NormalFont=19

At line 13, replace the line //#SpeechFont=DEFAULT with //#SpeechFont=20

With this changes you'll get the speech font changed to one using the special western European characters. I'm not sure what, if anything, is using Normal Font, but can't hurt to change it as well.
This will not change any labels or button font. So this is more like a half solution. Rest needs to be made via code and compilation of a new demo.

That's awesome! I'll test this right away, thank you!

Edit: it works, special characters display just fine in game except for the opening disclaimer where they still appear as question marks.
Speaking of that disclaimer, i edited the trs file in order to shorten a couple of sentences in there, in order to avoid them from being cut offscreen.

I'm reuploading the trs file here, this one should be the final version as I've checked the dialogues and menus multiple times and everything seems to be in order.
(Though I could use a tra in order to give the disclaimer a final check)

What needs to be done is:
-special characters in the disclaimer
-main menu
-game logo
-interaction verbs
-hints from the three saints in indy's journal still appearing in English
-numbers of skull from the scroll on the tinted glass still appearing in English

Once that's done, the Italian version is ready to spread to any italian speaker adventure game fan out there :D

Offline Cassiebsg

  • Project Team Member
  • *****
  • Posts: 80
  • There are those you believe...
    • View Profile

Offline Cassiebsg

  • Project Team Member
  • *****
  • Posts: 80
  • There are those you believe...
    • View Profile
Re: Translations
« Reply #81 on: January 18, 2020, 11:06:06 am »
After a request for an trs editor at the AGS Forum, tzachs did this online editor:

https://tzachshabtay.github.io/ags-trs-editor/

I haven't been able to test it yet, since it seems it doesn't like my browser. I'm using Firefox.

If you're on another browser, and you have time could you run it and see if it works and if it would have helped you making the translation file, without having to worry about ruining the format of the file? :)

Just click the little up cloud icon, that says "load" and select a trs file (either the original file or your own).

If you like to follow the thread at the AGS forum, it's here: https://www.adventuregamestudio.co.uk/forums/index.php?topic=57698.0 (you don't need an account to read, just to post)

Online AmigaMaster

  • Jr. Member
  • **
  • Posts: 23
  • I love Indy (and Amiga)
    • View Profile
Re: Translations
« Reply #82 on: January 18, 2020, 05:09:31 pm »
The editor seems to work but I have one big feature request: I cannot search for strings in the whole file. I assume the web server streams the content, so searching is limited to the part which currently is transmitted. And line numbering would be great.

Offline Cassiebsg

  • Project Team Member
  • *****
  • Posts: 80
  • There are those you believe...
    • View Profile
Re: Translations
« Reply #83 on: January 18, 2020, 05:27:33 pm »
Yes, I did request possibility of jumping to line number.

But I'll post your comments over the AGS forum. :)
Thanks for trying it.

Online AmigaMaster

  • Jr. Member
  • **
  • Posts: 23
  • I love Indy (and Amiga)
    • View Profile
Re: Translations
« Reply #84 on: January 18, 2020, 07:56:37 pm »
I just realized that one can adjust the normal & speech font on the TRS file.

So here's the TRA with new speech font:
ITA: https://www.mediafire.com/file/u1xrbu3gvb9u7ax/ITA.tra/file
GER: https://www.mediafire.com/file/s4hqj5mbx898tb7/GER.tra/file

And here's what you should do to change it on your TRS file:

At line 11, replace the line //#NormalFont=DEFAULT with //#NormalFont=19

At line 13, replace the line //#SpeechFont=DEFAULT with //#SpeechFont=20

With this changes you'll get the speech font changed to one using the special western European characters. I'm not sure what, if anything, is using Normal Font, but can't hurt to change it as well.
This will not change any labels or button font. So this is more like a half solution. Rest needs to be made via code and compilation of a new demo.

For unknown reasons, changing the lines in the TRS file did not change anything for me (I re-compiled all files). I downloaded your TRA file and it works for GER translation.

Offline Cassiebsg

  • Project Team Member
  • *****
  • Posts: 80
  • There are those you believe...
    • View Profile
Re: Translations
« Reply #85 on: January 18, 2020, 08:25:21 pm »
Did you test your new compiled tra with the original demo?

Because all I did was replace the word DEFAULT with the appropriate font number, and then compiled it with a freshly unpacked source, just to make sure none of my code changes were influencing in any way.

Offline Cassiebsg

  • Project Team Member
  • *****
  • Posts: 80
  • There are those you believe...
    • View Profile
Re: Translations
« Reply #86 on: January 19, 2020, 10:19:01 pm »
Search & Line number has been added (though "it screws up the navigation buttons", fix to come soon)

And to clarify, tzachs explains:
Quote
Just as FYI: it's not that the web server is streaming the content, the client has all of the information, it just doesn't render it because that would be too slow, so the browser can't find it on its own.

Offline jeancallisti

  • Lead Artist
  • *****
  • Posts: 2162
  • I love Indy
    • View Profile
Re: Translations
« Reply #87 on: January 20, 2020, 02:08:25 pm »
I'm back from being off the grid and I will work on the whole question of translations in a near future.
First I need to read the ton of stuff that was written in this thread, then I'll need to find the TRA files. Most of the download links that have been posted are now broken.

Offline Cassiebsg

  • Project Team Member
  • *****
  • Posts: 80
  • There are those you believe...
    • View Profile
Re: Translations
« Reply #88 on: January 20, 2020, 02:35:48 pm »
Start backwards to get the latest working trs & tra. ;)

Offline jeancallisti

  • Lead Artist
  • *****
  • Posts: 2162
  • I love Indy
    • View Profile
Re: Translations
« Reply #89 on: January 20, 2020, 03:14:57 pm »
If you have a problem running AGSEditor, you might need to install some other tools, like Network Frames

Never heard of that. I'll google it but can you tell me more?