Languages?

7 replies [Last post]
edge_hog
User offline. Last seen 11 years 44 weeks ago. Offline
Joined: 2010-09-23
Posts: 8

Hi!

I have seen there are different lanuages, and been wondering how can i change the game to one of them. I also offer to make a hungarian translation if someone explains how to do it. ( or at least the .qm files... )

Koda
Koda's picture
User offline. Last seen 2 years 18 weeks ago. Offline
Joined: 2008-11-10
Posts: 215

hello,
look in your Data/Locale, you'll find all the localization files.
For the frontend you'll need Qt Linguist to modify the qm files, while for the frontend you need to add a .txt file for you language.

If you need further help come in our irc Wink Smiley

edge_hog
User offline. Last seen 11 years 44 weeks ago. Offline
Joined: 2010-09-23
Posts: 8

Koda allegedly wrote:

hello,
look in your Data/Locale, you'll find all the localization files.
For the frontend you'll need Qt Linguist to modify the qm files, while for the frontend you need to add a .txt file for you language.

If you need further help come in our irc Wink Smiley

I downloaded the QT SDK, but not really getting the hang of this QT Linguist stuff. If you'd go more in details as how to make the new language, it would be appretiated! Smile (Also how to see it work. Do i have to recompile the whole game?)

nemo
nemo's picture
User offline. Last seen 5 weeks 5 days ago. Offline
Joined: 2009-01-28
Posts: 1857

You shouldn't need to download the SDK just to add a language.

The Qt linguist tool is standalone.

I've added:
http://code.google.com/p/hedgewars/source/browse/share/hedgewars/Data/Locale/hedgewars_hu.ts

Which you can use as input to Qt Linuist

To test your results, you'll want to copy the hedgewars_hu.qm output of Qt Linguist to Locale on one of the nightly builds, along with hu.txt

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

edge_hog
User offline. Last seen 11 years 44 weeks ago. Offline
Joined: 2010-09-23
Posts: 8

I downloaded the SDK anyway, 'cause i'm interested in the QT system, saw it some other places too... Smile

I successfully created the hu.qm file and some days ago the hu.txt too. However, the ingame texts containing characters: á,é,í,ö,ó,ő,ü,ú,ű look wrong. Do you have any suggestions as to which chars to use instead, or shall i try to find them manually?

I will be ready with them soon, i think.

Edit: I just found out the text should be in UTF-8 format, and no problem. Where do i send the finished translation files?

nemo
nemo's picture
User offline. Last seen 5 weeks 5 days ago. Offline
Joined: 2009-01-28
Posts: 1857

Feel free to link to the files here, or in IRC, or post a bug on google code.
Can also e-mail 'em - e-mail addresses are on the credits page in the client.

Also, please don't create hu.txt in notepad - aside from character encoding, it has a bad habit of starting the file w/ a BOM.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Cairo
Cairo's picture
User offline. Last seen 3 years 50 weeks ago. Offline
Joined: 2010-07-06
Posts: 198

BOM?

Style is spelled style not stile.
Use Dropbox to backup your important goodies!

nemo
nemo's picture
User offline. Last seen 5 weeks 5 days ago. Offline
Joined: 2009-01-28
Posts: 1857

http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Copyright © 2004-2021 Hedgewars Project. All rights reserved. [ contact ]