Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ä & Ö - .lang issue
Red Offline
Posting Freak

Posts: 1,757
Threads: 49
Joined: Feb 2012
Reputation: 54
#1
Ä & Ö - .lang issue

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.
03-24-2015, 07:13 PM
Find
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#2
RE: Ä & Ö - .lang issue

Moved to development support.
03-24-2015, 09:21 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#3
RE: Ä & Ö - .lang issue

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: (Select All)
<?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]

(This post was last modified: 03-25-2015, 12:44 AM by Mudbill.)
03-25-2015, 12:42 AM
Find
jens Offline
Frictional Games

Posts: 4,093
Threads: 199
Joined: Apr 2006
Reputation: 202
#4
RE: Ä & Ö - .lang issue

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.
03-25-2015, 07:52 AM
Website Find
Red Offline
Posting Freak

Posts: 1,757
Threads: 49
Joined: Feb 2012
Reputation: 54
#5
RE: Ä & Ö - .lang issue

(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: (Select All)
<?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!
03-25-2015, 05:48 PM
Find




Users browsing this thread: 1 Guest(s)