Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spanish translation
06-06-2011, 10:12 AM,
Spanish translation
I've started an spanish translation for VDrift. It isn't finished but I'm posting it here because I'm having some problems with some characers:

Opening question mark: ¿
Tilde: ` ´
And others.

I don't know how to build specific fonts for spanish language. The second thing is: Is there any way of changing the problem of the fonts so that everybody could use the same font for every language? I don't know how fonts are drown in this game but Android applications can do it. Smile
06-06-2011, 01:39 PM,
We are using codepages, see skins/simple/languages. Spanish would be 1252(FreeSansBold1252.png) I think. You need to save your lng file in the appropriate encoding.
10-12-2011, 11:41 AM,
I'm getting this again so I first need to know what is the correct encoding for the lng file.

10-13-2011, 06:19 AM,
Depends on the language. See for Spanish.

We could move to utf, just need to include utf->cp mappings, and have a fallback for missing characters.
10-13-2011, 07:37 AM,
Oops Thanks. I don't know much about the topic but I'll try Smile
10-14-2011, 04:32 PM,
Here my little python script for encoding CP1512 from UTF-8:

#!/usr/bin/env python

import sys
import os

f = file(sys.argv[1], 'r')      # From.
t = file(sys.argv[2], 'w')      # To.

for c in f.readlines():
        u = unicode(c, "UTF-8")


Very simple Wink. What do you think?
10-14-2011, 04:51 PM,
One thing I'm noticing is that strings are completely unordered and I think some of them aren't used. I think they should be updated, ordered and deleted ones should be suppressed.
10-14-2011, 06:02 PM,
You have to look in data/settings/options.config for title, desc and in data/skins/simple/menus/.* for text, tip entries. There might also be a few strings hard-coded, haven't checked for some time.

Can you figure out a script to update/sort all language files?
10-16-2011, 06:26 PM,
I think they need a cleanup but I don't deeply understand how menus are generated. I will work in the translation (Half of the work has been done) and will leave reorganization for later.

10-18-2011, 06:59 PM,
NaN Wrote:We are using codepages, see skins/simple/languages.

Thanks for the pointer. I have completed the german translation:

I created a Pull Request, too:
10-19-2011, 10:52 AM,
Awesome BiGBeN87! I'll update the svn bits. Have no idea about vdrift-data on github. There hasn't been much response from data contributors.
10-22-2011, 01:38 PM,
Yeah, until we all agree to do a switch-over to storing the data git (let's continue that discussion in the other thread), work out of SVN.

Forum Jump:

Users browsing this thread: 1 Guest(s)