Frictional Games Forum (read-only)
[LANG] .lang file: Placeholders [Solved] - 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] .lang file: Placeholders [Solved] (/thread-24634.html)

Pages: 1 2


.lang file: Placeholders [Solved] - ethics - 02-15-2014

My mother-language is not english and that sucks in terms of the extra_english.lang-file.
In my language, we have other letters than in the original alphabet:
We have "ä", "ö" and "ü".

Now the .lang file doesn't seem to accept it.
So if I want to make a key description like:"This is a key.",
I would type in my language: "Das ist ein Schlüssel."
But the game display it later on like so:
"Das ist ein Schlsel."
It doesnt accept the "ü".
Now I reasearched about this and (thanks to mudbill) found something.

A wikipedia thread for placeholders. But they only mention .XML and .HTML files in it, I'm not sure if this will work for Amnesia files.

The article:
http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references

Hoping for lots of help from you guys!


RE: .lang file: Placeholders - Mudbill - 02-15-2014

This page might help a bit as well. Look at the "html" codes and use those. The page only has a limited amount of characters however, and I don't think the ones below are using the html codes, because I'm not getting them to work or show properly.

I'm thinking perhaps the font Amnesia is using does not support all the characters, but I think it would be strange if it didn't support accented letters as they are very basic characters.

Edit: I tested out a few things and found that if you add the line below at the very top of your file (before </LANGAUGE>), the file will be encoded so that you can use these characters directly in the file. The é and ä worked fine for me Big Grin

Code:
<?xml version="1.0" encoding="UTF-8" ?>



RE: .lang file: Placeholders - Traggey - 02-15-2014

Wrong forum, moved!


RE: .lang file: Placeholders - DnALANGE - 02-16-2014

Wrong forum, moved!
LOL...
the 2500 Posts Traggey has, i swear has over 2000 that are : Wrong forum, moved!
It''s like a parasite, that line os everywhere!!! HAhah Wink
---
Anyways, try what Mudbill said, it should work.


RE: .lang file: Placeholders - ethics - 02-23-2014

(02-15-2014, 10:08 PM)Mudbill Wrote: This page might help a bit as well. Look at the "html" codes and use those. The page only has a limited amount of characters however, and I don't think the ones below are using the html codes, because I'm not getting them to work or show properly.

I'm thinking perhaps the font Amnesia is using does not support all the characters, but I think it would be strange if it didn't support accented letters as they are very basic characters.

Edit: I tested out a few things and found that if you add the line below at the very top of your file (before </LANGAUGE>), the file will be encoded so that you can use these characters directly in the file. The é and ä worked fine for me Big Grin

Code:
<?xml version="1.0" encoding="UTF-8" ?>

I've looked into some other german custom stories, and it hadn't
<?xml version="1.0" encoding="UTF-8" ?>
in it.
It was just like any other extra_english.lang file and it worked in amnesia.
I think you have to implement another file into your custom story, that shows the game how to display the letters correctly.
Anyways, i'll try out the line <?xml version="1.0" encoding="UTF-8" ?>.
Thanks to you!

EDIT:
No,it didnt work. If you could say where exactly to place the
<?xml version="1.0" encoding="UTF-8" ?>
it would maybe help me.

Do you do it like so:

<?xml version="1.0" encoding="UTF-8" ?>
<LANGUAGE>
(on the very top)

or

<?xml version="1.0" encoding="UTF-8" ?>
</LANGUAGE>
(on the bottom)?

Also, i'm gonna show you a picture of the description of my cs.

(02-15-2014, 10:08 PM)Mudbill Wrote: This page might help a bit as well. Look at the "html" codes and use those. The page only has a limited amount of characters however, and I don't think the ones below are using the html codes, because I'm not getting them to work or show properly.

I'm thinking perhaps the font Amnesia is using does not support all the characters, but I think it would be strange if it didn't support accented letters as they are very basic characters.

Edit: I tested out a few things and found that if you add the line below at the very top of your file (before </LANGAUGE>), the file will be encoded so that you can use these characters directly in the file. The é and ä worked fine for me Big Grin

Code:
<?xml version="1.0" encoding="UTF-8" ?>


Description:
As you can see, the game shows some very strange characters (polish or sth.) instead of the ''ä''.


RE: .lang file: Placeholders - Mudbill - 02-23-2014

Yes, my bad I said / by accident. It was indeed supposed to be at the very top of the line.

This seemed to be the fix for me when I used my Windows OS. When I went over to my primary Mac OS, it did nothing, as in the characters already worked fine without it. I'm not actually sure what the problem is then.

So it did nothing for you?


RE: .lang file: Placeholders - ethics - 02-26-2014

(02-23-2014, 03:57 PM)Mudbill Wrote: Yes, my bad I said / by accident. It was indeed supposed to be at the very top of the line.

This seemed to be the fix for me when I used my Windows OS. When I went over to my primary Mac OS, it did nothing, as in the characters already worked fine without it. I'm not actually sure what the problem is then.

So it did nothing for you?

No, nothing happened. I think its only in the german version of the game, maybe its a bit bugged. Whatever i'll just use ''ue'' instead of ''ü''.
That works, but it doesn't look very professional...

But the major of my CS' i'm gonna do in english.


RE: .lang file: Placeholders - Mudbill - 02-26-2014

I'm sure there's a way of fixing this issue, and it would be best if we could find it.

I really thought this would work though. Here's a comparison picture of how my game looks with (top) and without (bottom) the xml line.

[Image: lang_comparison_xml.png]


RE: .lang file: Placeholders - ethics - 04-13-2014

(02-26-2014, 06:43 PM)Mudbill Wrote: I'm sure there's a way of fixing this issue, and it would be best if we could find it.

I really thought this would work though. Here's a comparison picture of how my game looks with (top) and without (bottom) the xml line.

[Image: lang_comparison_xml.png]

Strange.
It did nothing for me.
Maybe because I'm running Win8 instead of Win7.
Maybe we'll have to come up with another xml line for Win8, I dunno.


RE: .lang file: Placeholders - Mudbill - 04-13-2014

I'm actually very unsure right now, because when I was running the game in my Mac OS X environment, I could see the characters fine without the xml line, whereas in Windows 7, I needed that line for it to show properly. Perhaps it is different in Windows 8, but I see absolutely no reason for that to be. I doubt it's the OS. It must be something else. I thought I figured this out, but it looks to be a lot more than it appears...