This site requires JavaScript, please enable it in your browser!
Greenfoot back
Upupzealot
Upupzealot wrote ...

2014/2/4

How can I contribute my translation in Chinese?

1
2
Upupzealot Upupzealot

2014/2/4

#
I mean, a Chinese version of the API of Greenfoot. I have translated some SF into Chinese, and I have used Greenfoot for several years. So I think I can tranlate it correctly. Is there already one?
kiarocks kiarocks

2014/2/4

#
davmac davmac

2014/2/4

#
There isn't a Chinese translation of the API yet, so it would be good of you to do one.
Upupzealot Upupzealot

2014/2/5

#
@davmac how do I supposed to start my work. Is it okay to edit the English API file in HTML? When I finish translating, how can I give it to you? By email?
davmac davmac

2014/2/5

#
It's better that you update the comments in the source files. You can find them in (greenfoot directory)\lib\english\greenfoot\api. That way the updated source files can be put in to the equivalent place in the chinese directory and code completion will show the chinese javadoc. However, you may just translate the HTML if you wish. You can send the translation to us at support@greenfoot.org.
Upupzealot Upupzealot

2014/2/6

#
Thx, I would try that. I did the "Actor" class in HTML already. I hope, I could finish it in 10 days.
Upupzealot Upupzealot

2014/2/9

#
A bug I found in the API through my translating: In class GreenfootImage method drawOval, the paras' doc still saying"fill", it should be "draw" I thought.
Upupzealot Upupzealot

2014/2/9

#
An other question: In class Actor method act, the doc said "each object's act method is invoked, in unspecified order." But the act order could be specified in the World's setActOrder method. So why saying it is "in unspecified order" here? And the World's setActOrder method says "The order of objects of the same class cannot be specified."(similar in setPaintOrder). I used to think they were in the order they were added into the world. I remember I used to use
1
2
3
4
int x = actor.getX();
int y = actor.getY();
world.removeObject(actor);
world.add(actor, x, y);
to make actor object return to the top, and it works.
Upupzealot Upupzealot

2014/2/9

#
Class GreenfootImage method fill, the doc"Fill the entire image with the current drawing dcolor.", guess the "dcolor"'s 'd' was a type mistake.
davmac davmac

2014/2/9

#
Ok, thanks.
An other question: In class Actor method act, the doc said "each object's act method is invoked, in unspecified order." But the act order could be specified in the World's setActOrder method. So why saying it is "in unspecified order" here?
Yes, the documentation for act() is slightly outdated. The order is unspecified, unless setActOrder(...) is called, and then the order is by class as specified.
And the World's setActOrder method says "The order of objects of the same class cannot be specified."(similar in setPaintOrder). I used to think they were in the order they were added into the world.
That's an implementation detail. It might not be true in future Greenfoot versions (or in other implementations of the same API).
Upupzealot Upupzealot

2014/2/10

#
OK I would explain that in a "Translator's Note".
davmac davmac

2014/2/10

#
OK I would explain that in a "Translator's Note".
You can if you wish, but in many ways we'd prefer it wasn't said.The documentation is the specification for what the method does. The implementation of course dictates the precise behavior. If you document a behavior, then people might rely on it! :)
Upupzealot Upupzealot

2014/2/10

#
Have you noticed the mirror methods in GreenfootImage sometime changes the color of the picture, davmac?
davmac davmac

2014/2/10

#
No, I haven't. Are you saying there's a bug?
Upupzealot Upupzealot

2014/2/10

#
Yes. If you like I can rebuild the problem in a scenrio.
There are more replies on the next page.
1
2