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
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.
Offline
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
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.
Offline
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...
Offline