A letter from Spring players in China - Page 2

A letter from Spring players in China

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: A letter from Spring players in China

Post by Jools »

Com'on, even the Swiss don't use those. And by the way, Cultures are different. We, the nordic people, do absolutely *not* want any lame translation to our own language. We are just happy to use the english and original one, thank you very much.

I wish i could stop google from directing me to google.fi too...
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: A letter from Spring players in China

Post by CarRepairer »

User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: A letter from Spring players in China

Post by koshi »

Ideally someone would want localization support in games hard enough to implement gettext support in lua. That would be a scalable solution leveraging existing tools for translation and every game could benefit from it.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: A letter from Spring players in China

Post by smoth »

would be nice to see support for font system to cover it but translation and all of that are another matter. The only reason I mentioned the translation bit is because people have to generate that. Engine support is one thing, expecting people to maintain up to date translations of unit descriptions etc.. yeah pipe dream.

Again, I was NOT trying to say that the font system update would be an unrealistic request.
ywrrel
Posts: 5
Joined: 14 Apr 2012, 14:30

Re: A letter from Spring players in China

Post by ywrrel »

It will not be changed in a short time.I start to translate game introduction,and some introduction are fall behind than current version.Let's go on in a suitable time.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: A letter from Spring players in China

Post by PicassoCT »

We could at tooltip soundfiles. Speaking Icons? Anyone. Argh.. now im evil Picasso again, suggesting evil stuff. Weres my silly hat... ah there it is.. right in my corner.
Pako
Posts: 174
Joined: 12 Jul 2009, 18:57

Re: A letter from Spring players in China

Post by Pako »

Most engine developers who have said something related to this are mostly wrong(Tobi, jK, abma etc..)

It is relative easy problem and I did it few months ago mostly ready.
Lua gettext is just a simple table seek like: return myLanguage[text] or text


ZK way of doing things is just horribly broken in many ways.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: A letter from Spring players in China

Post by abma »

Pako wrote:ZK way of doing things is just horribly broken in many ways.
more info please... "its broken" is useless critism.

afaik stuff like IME input isn't supported as well... also right to left languages shouldn't work, too... and no, imo thats not easy to fix.
Pako
Posts: 174
Joined: 12 Jul 2009, 18:57

Re: A letter from Spring players in China

Post by Pako »

abma wrote:more info please... "its broken" is useless critism.
-UnitDef customparams is a bad place to save translations(many reasons)
-the UnitDef files seem to have random encodings and mostly wrong
-chars like "äöå" are replaced with 'ae' or other crap when there is no need for that if the file encodings are set correct
-a player can not use his own translations?

Lua supports utf-8 just like other languages do, and even better.

Spring is mostly utf-8 ready but some noobs use these fail text editors which store header for utf-8 like old np++, it is just wrong and the definition files fail to load if that kind of editor is used. Only thing which needs update is font rendering. Engine console and console input never need utf support because it is better done with Lua.

other todo:
-loading a font from multiple files because most font files doesn't have Chinese or other chars
-loading from OS font files?
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: A letter from Spring players in China

Post by Licho »

You just said "its bad mmmmk" ...

No information given.

You said that custom params is wrong for many reasons.. what are the reasons? How do lua only alternatives compare?

You said that encodings are wrong - of course some files are buggy and we have to use silly encoding anyway not utf-8.

And regarding user's own translation .. WTH? You cant be serious here.. how many % people would do that .. oh look I made my own rtanslation of mass effect!
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: A letter from Spring players in China

Post by jK »

Licho wrote:And regarding user's own translation .. WTH? You cant be serious here.. how many % people would do that .. oh look I made my own rtanslation of mass effect!
My first `hack` was a translation of CivI :oops:
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: A letter from Spring players in China

Post by PicassoCT »

So that was a rhetoric question? What kind of people would group up in a comunity to do volunteer work?

Maybee the masochist guild of carpenters and leathermakers? ;D
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: A letter from Spring players in China

Post by AF »

jK wrote:
Licho wrote:And regarding user's own translation .. WTH? You cant be serious here.. how many % people would do that .. oh look I made my own rtanslation of mass effect!
My first `hack` was a translation of CivI :oops:

People did it all for the time for japanese GB roms and continue to do so, going as far as hex editors
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: A letter from Spring players in China

Post by PicassoCT »

or so the tale would go, if the translator didnt miss-understood that part about tentacles going into every orrifice :D
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: A letter from Spring players in China

Post by Tobi »

Pako wrote: Lua supports utf-8 just like other languages do, and even better.
This is completely wrong, Lua doesn't support UTF-8, and certainly not better than other languages:

1) You cannot say a language supports UTF-8 or not, it depends on the library.
2) The Lua string library has no support for UTF-8 whatsoever, Lua strings are unencoded blobs of bytes, and that is what all string methods assume.

So for all practical purposes Lua does NOT support UTF-8.

This will lead to surprises such as:

Code: Select all

> print (string.len('e'))
1
> print (string.len('é'))
2
> print (string.len('Ç'))
3
> print (string.len('Ç'))
2
> print(string.sub('olla',-1))
a
> print(string.sub('ollé',-1))
�
> print(string.sub('éééa',4))
�éa
> print(string.sub('eeea',4))
a
> print (string.upper('eë'))
Eë
Same thing applies to Spring. It also does NOT support UTF-8, it just supports strings of bytes and assumes that 1 character == 1 byte. (In practice many things may appear to work, but at some point you may hit bugs caused by the lack of proper support for UTF-8.)

Some background info: http://www.joelonsoftware.com/articles/Unicode.html
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: A letter from Spring players in China

Post by PicassoCT »

flyweight little pictures for the weeeerk...
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: A letter from Spring players in China

Post by gajop »

Tobi wrote: 1) You cannot say a language supports UTF-8 or not, it depends on the library.
Yes, you can. A language supports UTF-8 if it comes with the compiler. One can also say that a language supports UTF-8 if it's standard library supports it.
Examples of languages that support UTF-8 by default: Python, Java (perhaps many other JVM languages?), C# (perhaps many other .NET languages?), C++1x (http://en.wikipedia.org/wiki/C%2B%2B11# ... g_literals).

Those languages consider UTF characters (if they have that concept) as "wide-bytes", so they are completely different from Lua's 8-bit unencoded "support" I guess.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: A letter from Spring players in China

Post by Tobi »

Good point, if there are specific Unicode literals or a built-in Unicode data type (Python, Java), or you can make variable names containing non-ASCII characters, then you could say the language supports Unicode.

Neither is the case for Lua though. Neither the language nor the standard library support Unicode.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: A letter from Spring players in China

Post by AF »

I gather somebody changed the settings for the default type of char in VS and forgot to turn it off, resulting in char being typedeffed to be the same thing as wchar
User avatar
SwiftSpear
Classic Community Lead
Posts: 7287
Joined: 12 Aug 2005, 09:29

Re: A letter from Spring players in China

Post by SwiftSpear »

hoijui wrote:what you want seems to be internationalization support, which is not the same like UTF-8 support. niether is likely gonna happen anything soon (or ever) though, sorry. even if you would volunteer to do it... we could most likely not accept it, cause for this, you need to change 1 out of 10 lines in the source code, which means that all branches are basically unusable after this, if they have a reasonable ammount of changes.
so.. the basic, technical work is not too complicated, but it would cause a lot of workflow problems, and it is very boring work.
that is my view, at least.
UTF-8 alone allows chat in Chinese. They aren't retarded, they are taught the roman alphabet in school, they can read unit names and defer unit behavior through experience, but lack of UTF-8 support means if they are playing together they can't actually chat to eachother in game (or in lobby likewise)

It isn't THAT bad is it? How much spring code is legitimately dependent on the ASCII standard? Just the chat level data transfer code needs to be modified, not the entirety of the coded system. I mean, I'm not gonna do it, but is it really that hopeless?

[edit] after reading through the rest of the thread, I'd encourage the developers here to stop debating full universal text relations or the ability to customize translations for mods, that should be considered a long term goal. If lobby can support UTF-8 for chat and game names, and in-game can support UTF-8 for chat, that would be fully sufficient for every international player to participate with their local brethren. No one in the world right now is not taught the romanic alphabet. They can read unit names, they can distinguish between building a flash and building a raider. The issue is they can't actually talk to each other in a meaningful way. That could be fixed souly by allowing Chinese/Arabic keyboards to actually input their native characters into the systems.

Those systems are remarkably adaptable. The internet, after all, is fundamentally american. Eastern software is specifically designed to Jerry rig into systems with the least possible effort on the part of the western designed software.
Post Reply

Return to “General Discussion”