Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spanish translation
06-06-2011, 10:12 AM,
#1
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


http://www.mediafire.com/file/w8plmd8r4k...a%F1ol.lng
Reply
06-06-2011, 01:39 PM,
#2
 
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.
Reply
10-12-2011, 11:41 AM,
#3
 
I'm getting this again so I first need to know what is the correct encoding for the lng file.

Thanks.
Reply
10-13-2011, 06:19 AM,
#4
 
Depends on the language. See http://en.wikipedia.org/wiki/Windows-1252 for Spanish.

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

Code:
#!/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")
        try:
                t.write(u.encode("cp1252"))
        except:
                t.write(u.encode("iso-8859-15"))

f.close()
t.close()

Very simple Wink. What do you think?
Reply
10-14-2011, 04:51 PM,
#7
 
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.
Reply
10-14-2011, 06:02 PM,
#8
 
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?
Reply
10-16-2011, 06:26 PM,
#9
 
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.

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

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

https://github.com/bigben87/VDrift-Data/...4865210478

I created a Pull Request, too:

https://github.com/bigben87/VDrift-Data/pull/1
Reply
10-19-2011, 10:52 AM,
#11
 
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.
Reply
10-22-2011, 01:38 PM,
#12
 
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)