This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-11-18 12:42:50

g_arais
New Scratcher
Registered: 2010-11-05
Posts: 8

New blocks turn obsolete when I change the language...

Whenever I make a new block it becomes "obsolete!" (red block) when I change the language.

Can anyone help me?  I'm crazy trying to solve and I can not.


Thanks

Gustavo
PS. I´m from Brazil, so sorry for my English!

Offline

 

#2 2010-11-18 14:38:01

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: New blocks turn obsolete when I change the language...

The translator works by having a dictionary with lots of keys representing different words to be translated and their values being the translations. Since you made your new block yourself, Scratch doesn't have a translation for it and therefore doesn't recognise it and marks it as obsolete.


/* No comment */

Offline

 

#3 2010-11-18 15:00:54

g_arais
New Scratcher
Registered: 2010-11-05
Posts: 8

Re: New blocks turn obsolete when I change the language...

And where I can found this Dictionary? Are the .po files in locale?
I have inserted the keys correctly, so that they are translated to the left, but on the script area they become obsolete!.

If I change the label to anything of any existent block they alread works when I change the language.

Please any solution??

Gustavo

Offline

 

#4 2010-11-18 15:24:48

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: New blocks turn obsolete when I change the language...

The reason is that if you change the label to an existing block Scratch recognises the translation and doesn't mark it as obsolete.

The dictionary is created when you change the language from the po files, which are in locale.


/* No comment */

Offline

 

#5 2010-11-19 11:23:20

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: New blocks turn obsolete when I change the language...

TheSuccessor wrote:

The translator works by having a dictionary with lots of keys representing different words to be translated and their values being the translations. Since you made your new block yourself, Scratch doesn't have a translation for it and therefore doesn't recognise it and marks it as obsolete.

I don't think so.
There must be some other reason, probably only singled out on that computer, because in Bingo or Scratch, not all blocks have been translated. If the program does not find a key for it, it simply keeps it in the native language it was written in

I would probably need more information to identify its causes...  hmm

Offline

 

Board footer