Why there is no Chinese translation?

6 replies [Last post]
allarem
User offline. Last seen 15 years 9 weeks ago. Offline
Joined: 2009-10-09
Posts: 2

I like this game very much.
but it don't have Chinese version on Ubuntu 9.04
how can I get Chinese on this game or how can I translate it?
like other program .po file for trans?

allarem
User offline. Last seen 15 years 9 weeks ago. Offline
Joined: 2009-10-09
Posts: 2

Frozen hog! I find it in the src file,seems Ubuntu haven't update the game for a long time

Smaxx
Smaxx's picture
User offline. Last seen 13 years 30 weeks ago. Offline
Joined: 2009-04-29
Posts: 391

Yep, update your Ubuntu first or compile the latest release (you shouldn't use 0.9.12 if you want to play online with many others; so pick 0.9.11).

-----

If you notice missing or wrong translations or you think something should be renamed and/or updated:

There are 3 files for each language within the following folder (data directory; not sure about exact location in Ubuntu right now):
[...]\share\hedgewars\Data\Locale

The following files contain the texts used by the game - replace # with your locale (for chinese either zh_CN or zh_TW - depending on what you want - traditional or simplified):

#.txt -> Edit those strings used by the engine (the game itself) with your favourite text editor.
hedgewars_#.ts -> Edit the strings inside this file with your favourite text editor but be sure to not modify text that shouldn't be translated (like paths, text etc.) The changes you do here won't be used by the game until they're "compiled" by a special tool provided by qt (lrelease).
hedgewars_#.qm -> The compiled ts file used by the frontend (setting up the game, etc.)

As you mentioned .po files i'm sure you're able to understand the basic concepts/file contents, so I won't explain those.

If you made changes/corrections you'd like to share with others, post them here on the forums and they might be included in future versions.

nemo
nemo's picture
User offline. Last seen 22 weeks 14 hours ago. Offline
Joined: 2009-01-28
Posts: 1861

Allarem, also, both zh_CN and zh_TW already exist (admittedly perhaps a little out of date, especially zh_CN).

Is your locale not set to one of those?
You might try creating a hedgewars shortcut that is:
LC_ALL=zh_TW.UTF-8 hedgewars

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

nemo
nemo's picture
User offline. Last seen 22 weeks 14 hours ago. Offline
Joined: 2009-01-28
Posts: 1861

Oh. Heh. I missed the part where he said he was out of date.

Anyway, zh_TW was definitely updated a great deal for 0.9.12 - hopefully http://www.getdeb.net/app/Hedgewars
will add the .12 build soon.

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

yanqian
User offline. Last seen 3 weeks 1 day ago. Offline
Joined: 2009-06-14
Posts: 4

I will try to update the Chinese simplified translation (zh_CN), I know that China mainland users can read traditional chinese too, but I think it is better to make zh_CN complete.

update:
Just checked zh_CN files here:
https://github.com/hedgewars/hw/tree/master/share/hedgewars/Data/Locale

I found that translation files of hedgewars package in Kali linux is not update to date, take "zh_CN.txt" for example, it has only 71 lines in my PC, but 464 lines in repository.

OK, I will wait. Straw Hat!

$ wc -l /usr/share/games/hedgewars/Data/Locale/zh_CN.txt
71 /usr/share/games/hedgewars/Data/Locale/zh_CN.txt

$ dpkg -l | grep hedgewars                              
ii  hedgewars         1.0.2-10        amd64        Funny turn-based artillery game, featuring fighting hedgehogs!
ii  hedgewars-data    1.0.2-10        all          Data files for hedgewars

DudegamerW
User offline. Last seen 6 days 14 hours ago. Offline
Joined: 2024-11-18
Posts: 2

yanqian allegedly wrote:

I will try to update the Chinese simplified translation (zh_CN), I know that China mainland users can read traditional chinese too, but I think it is better to make zh_CN complete.

update:
Just checked zh_CN files here:
https://github.com/hedgewars/hw/tree/master/share/hedgewars/Data/Locale

I found that translation files of hedgewars package in Kali linux is not update to date, take "zh_CN.txt" for example, it has only 71 lines in my PC, but 464 lines in repository.

OK, I will wait. Straw Hat!

$ wc -l /usr/share/games/hedgewars/Data/Locale/zh_CN.txt
71 /usr/share/games/hedgewars/Data/Locale/zh_CN.txt

$ dpkg -l | grep hedgewars                              
ii  hedgewars         1.0.2-10        amd64        Funny turn-based artillery game, featuring fighting hedgehogs!
ii  hedgewars-data    1.0.2-10        all          Data files for hedgewars

dang if only we were here 15 years earlier :c

i love W

User login

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