Frictional Games Forum (read-only)
Ä & Ö - .lang issue - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Ä & Ö - .lang issue (/thread-29772.html)



Ä & Ö - .lang issue - Red - 03-24-2015

As you might've noticed, I've been doing a little translation work, mainly, from English to Finnish.
However, there's an obstacle slowing my progress royally, which I call: Irritating Behaviour of Letters Ö & Ä; they do not work how I want, and seem only to rebel againts. Fortunately, they seem to work with German .lang files, so at least the potential for funcionality is assured, but this does not apply to rest of the languages, let alone custom made files. Is this more of a problem that can be equated with engine integration, or does it have something to do with additional fonts, or both? Help will be appreciated.


RE: Ä & Ö - .lang issue - Traggey - 03-24-2015

Moved to development support.


RE: Ä & Ö - .lang issue - Mudbill - 03-25-2015

It's surely only the formatting of your lang file. As long as it has the proper UFT8 format, it should work. Perhaps UTF16, don't remember.

You can try adding this line at the top of your .lang file.
PHP Code:
<?xml version="1.0" encoding="UTF-8"?>

You can also try saving a new text file from Notepad and be sure to use the proper encoding, then copy your contents over.

[Image: uXE2LmC.jpg]


RE: Ä & Ö - .lang issue - jens - 03-25-2015

If you use the lang tool it should work, if you manually edit the lang file with a text editor I think doing:

ä=[u00E4]
Ä=[u00C4]
ö=[u00D6]
Ö=[u00F6]

Example of usage in lang file:
Jag [u00E4]r en s[u00D6]t [u00F6]sterikare vid namn [u00C4]lgot.

Should result to this when running game:
Jag är en söt Österikare vid namn Älgot.

This is if the font in the has ö and ä in it, which I am not sure. You have to generate a new font in that case, which I think there should be some documentation for somewhere, perhaps on the wiki.


RE: Ä & Ö - .lang issue - Red - 03-25-2015

(03-25-2015, 12:42 AM)Mudbill Wrote: It's surely only the formatting of your lang file. As long as it has the proper UFT8 format, it should work. Perhaps UTF16, don't remember.

You can try adding this line at the top of your .lang file.
PHP Code:
<?xml version="1.0" encoding="UTF-8"?>

You can also try saving a new text file from Notepad and be sure to use the proper encoding, then copy your contents over.

[Image: uXE2LmC.jpg]

Seems to work just like I wanted, thanks!