Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: ags_user on Sat 27/04/2013 09:53:04

Title: The problem with non-English letters
Post by: ags_user on Sat 27/04/2013 09:53:04
I'm trying to do the translation into the German language, but in the file "de.trs" (AGS 3.2.1) are not saved the following German letters:
ü
ä
ö
àŸ
Title: Re: The problem with non-English letters
Post by: Khris on Sat 27/04/2013 10:03:28
The translation file is just a text file, so the characters should end up in the file just fine. I guess what's happening though is that the font in the game doesn't have them.
Either import a TrueType font into the game, or if you're going for a lowres look and want to use a pixel font, get Radiant's FontEdit and change some of the unused characters in the AGS font to the German ones.
For instance ] is usually not used, or *.
Just do a search and replace over the entire translation file.

You can get FontEdit here: click (http://www.tdrdesign.net/downloads/fontedit.exe)
Title: Re: The problem with non-English letters
Post by: ags_user on Sat 27/04/2013 10:13:33
These letters cannot be saved in a plain text file (ANSI). They can only be saved in UTF-8 encoding.
Title: Re: The problem with non-English letters
Post by: Khris on Sat 27/04/2013 10:31:10
What text editor are you using? I tried to save an ANSI document containing äöü in Notepad++ and it saved and displayed fine. Even Windows' Notepad should be capable of this.
Title: Re: The problem with non-English letters
Post by: Crimson Wizard on Sat 27/04/2013 10:39:22
AFAIK those characters are too from ANSI set. Their codes are below 256.
Title: Re: The problem with non-English letters
Post by: ags_user on Sat 27/04/2013 10:45:06
Could you save these letters in a file (ANSI) and forward it to me (here), so I can view it?
Title: Re: The problem with non-English letters
Post by: Crimson Wizard on Sat 27/04/2013 11:25:21
Hmm... or maybe I was mistaken.

EDIT: I think their view may depend on regional setting.
You need to view in Western-European Windows-1252 codepage, for example.
If your OS have other default setting (e.g. Eastern-european) you will see different letters in text editor.
Title: Re: The problem with non-English letters
Post by: Crimson Wizard on Sat 27/04/2013 11:42:07
Okay, sorry, I was confused a bit for a moment.

Thing is that ANSI does not cover all possible symbols at once. That is why its representation depends on selected regional setting. Depending on that setting you may see one letters or another. Since symbols are simply numbers (0-255), it does not really matter, what matters is how the AGS will treat them, or more specifically, what font characters will be assigned to these character codes. (Thus you may create a font where all characters are misplaced).

To be able to see those characters when you edit text (or review it) you need to select proper regional code page in the text editor. That will not change the symbol codes themselves, only their representation.
If the font you are using in AGS has those characters on proper places, then you will see same result in AGS game.


Uhh, I hope this makes sense to you, sometimes I fail to find proper words to explain things (not native-english speaker) ;).
Title: Re: The problem with non-English letters
Post by: ags_user on Sat 27/04/2013 12:00:25
Crimson Wizard, thanks for the reply!

I was afraid of that answer... because I thought everything will be easy. Apparently I have to ask the developers of games in German, how they solved this problem.