Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Nethros on Mon 10/01/2005 17:28:31

Title: Translating dont work
Post by: Nethros on Mon 10/01/2005 17:28:31
I've tryed to translate a game to swedish, but every time I  click "Create compiled translation" it says It has no Translated lines in it. Does anyone know why? Is this maybe beacuse I use swedish letters/characters?
Title: Re: Translating dont work
Post by: strazer on Mon 10/01/2005 17:48:43
Have you by any chance replaced the text in the translation source instead of writing the translation below in the empty line?
Title: Re: Translating dont work
Post by: Nethros on Mon 10/01/2005 17:54:13
Err, yeah. O.O Was that the problem?
Title: Re: Translating dont work
Post by: strazer on Mon 10/01/2005 18:03:49
Most likely, yes. ;)
I'm not familiar with swedish letters and if they are supported by true type fonts in AGS, so that may become another problem. Just report back if you have any more problems.
Title: Re: Translating dont work
Post by: Nethros on Mon 10/01/2005 18:15:36
Thank you, strazer! It worked...but not when I start the game. It says it has unknown characters. It says I have to import a TTF font. Do you know where to find this?
Title: Re: Translating dont work
Post by: strazer on Mon 10/01/2005 18:34:21
There are numerous sites out there with True Type fonts (TTF). I like http://www.abstractfonts.com/fonts/

Here is a Day of the Tentacle-style font: http://12.22.230.41/MicroTech/Hosted/Game/Dayofthetentacles.zip

Import it in AGS and, if you only want to use it for the translation, enter the new font's number at the top of the translation file.
Title: Re: Translating dont work
Post by: Nethros on Mon 10/01/2005 18:42:02
Well, I need a font that includes the åäö (Swedish characters) in it. They are almost used in every swedish word. I've tryed to searc for swedish fonts in that site. And in AGS, But I haven't found one.
Title: Re: Translating dont work
Post by: strazer on Mon 10/01/2005 18:55:30
Surely you have ones on your computer that have these characters? Look in your C:\Windows(or Winnt)\Fonts folder.
They might not look so nice, but they should suffice for testing.
Title: Re: Translating dont work
Post by: Nethros on Mon 10/01/2005 19:11:34
Dang. I tryed. But the åäö Isn't there, since my comp is installed on the english version of Windows XP. I'll have to use the english version. It would work on the Swedish version. Anyway, Thanks so much for helping me strazer!
Title: Re: Translating dont work
Post by: TerranRich on Mon 10/01/2005 19:43:43
Erm, Arial and Times New Roman have those characters. And how do you think your browser displays the very same characters you typed into your message? AGS uses the Tahoma font (I believe). You could try that instead, as a last resort.
Title: Re: Translating dont work
Post by: Scorpiorus on Tue 11/01/2005 19:38:09
Btw, does it still say that some of the characters are not supported when you use a TTF? Or does it just display some other characters instead of these special ones?
Title: Re: Translating dont work
Post by: Nethros on Tue 11/01/2005 20:39:50
Quote from: Scorpiorus on Tue 11/01/2005 19:38:09
Btw, does it still say that some of the characters are not supported when you use a TTF? Or does it just display some other characters instead of these special ones?
It shows all the english characters, but I cant see any swedish.
Title: Re: Translating dont work
Post by: Scorpiorus on Tue 11/01/2005 21:03:27
There is a problem when wrong characters may be displayed. AGS only supports using the first 256 characters from a TTF file (when making a translation file). So, if your special characters are out of that range you may need to edit a TTF file with some ttf font-editing program (ex, Font Creator (http://www.high-logic.com/fcp.html)) and replace those wrong characters with your language special ones. This, however, can be a problem if AGS doesn't display any characters there where the special ones are supposed to be.