The Language code of Chinese is wrong

26 replies [Last post]
Joined: 05/27/2009

Generally it is "zh", but it doesn't work in WoG.
The corrent value is "cn".

MOM4Evr wrote:
……
EDIT: Found it! As far as I know, this can fixed by changing line 50 in gootool-1.0.3.441\src\com\goofans\gootool\model\Language.java . This reads:
           new Language("zh", "Chinese"),

Changing it to
           new Language("cn", "Chinese"),
……

Joined: 08/06/2010

Is there an official Chinese translation? I thought the patch was fan-made.

If you're using that patch, you should re-upload it with the correct code. That way other people can download the correct one. Smile

Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.

Joined: 07/05/2011

Yes, it is cn. The country code in my profile is cn. But it causes a problem that there are more than one languages in China:
bo-CN Tibetan language in China
ug-CN Uighur in China
zh-CN Simplified Chinese in China

I find this bug when I was making World of Goo Modifier. I think the best way to solve this problem is use zh-CN for the language code.

Joined: 05/27/2009

I've asked Gil Carmel(another 2DBoy) the correct value, and he said...

Don't worry about cn/zh, cn will work just fine.

I will put them in the Android version!

Official response~

Joined: 07/08/2011

Gil? Tongue

Joined: 05/27/2009

an Android developer. Developed WOG Android version. Ron's brother

Joined: 02/20/2011

didn't know he had one.

-_-

Joined: 01/07/2010

Now you Know

Hey You!
Start the fun and Install the fan made CHAPTER 6: MOON OF GOO

Joined: 05/27/2009

Well. I wonder whether davidc will fix it.

Joined: 12/23/2010

There's nothing to fix. cn works, zh doesn't, that's it.

And DavidC isn't one of the guys who made WoG, just a fan like us (he made GooTool though).

Joined: 05/27/2009

GooTool is using the wrong value, and I hope davidc can fix it.

Joined: 07/08/2011

Nothing to fix. It's two letters. Deal with it.

Joined: 05/27/2009

if WoG can be played in the language you speak, but GooTool does not allow you to play WoG in the language, will you feel happy?

In other words, I hope GooTool start using the correct value so I don't need to correct the config file every time I install new goomods.

Joined: 12/23/2010

You're right, I checked and when you choose Chinese as the language in GooTool it uses zh.

If DavidC ever announces a newer version of GooTool this should be fixed, but for now you can just edit the config file yourself.

Joined: 05/27/2009

Okay… Just wait

Joined: 09/01/2009

Ah, I get it. In that case, fill out a bug ticket here: http://goofans.com/issues

Joined: 08/06/2010

It's open source, so if anyone knows Java (big if there Tongue ) we could fix it that way.

Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.

Joined: 09/01/2009

ooh, fair point.

Snap, I know absolutely nothing about Java. You shouldn't have to, though, just do a search-and-replace for "zh" and it should crop up. I dunno how to compile it, though. Especially if we want Mac/Linux builds.

EDIT: Found it! As far as I know, this can fixed by changing line 50 in gootool-1.0.3.441\src\com\goofans\gootool\model\Language.java . This reads:

           new Language("zh", "Chinese"),

Changing it to
           new Language("cn", "Chinese"),

should work. I don't think it's hardcoded anywhere else. Anybody know anything about Java who thinks they can fix it?

Building should be fairly straightforward; the source code there includes the NSIS script that david used for building the installer, even. I think everything is there that you need, if you know what you're doing.

Joined: 07/08/2011

Oh, I didn't understand completely before. Yeah, that sounds annoying to have to do.

Someone could probably just let David know. The next time I see him on Steam, I'll point him to the thread.

For sooner results, compile yourself or email him.

Joined: 05/27/2009

Smile

Joined: 07/05/2011

For more specific Simplified Chinese should be used.

Joined: 07/08/2011

You might want to write a report in http://goofans.com/issues if you haven't already.

Joined: 09/01/2009

MOM4Evr wrote:
Ah, I get it. In that case, fill out a bug ticket here: http://goofans.com/issues

Joined: 07/08/2011

He hasn't already. I asked David. He ought to.

Joined: 05/27/2009

Sorry I can not see the link to create new ticket on http://goofans.com/issues . I'm using Opera Mini.

Joined: 07/08/2011

http://goofans.com/mantis/bug_report_page.php

I would suggest selecting "goocommon" as the category.

Joined: 05/27/2009

Thank all You!