Dangerous colors

rafael shared this problem 11 years ago


I think this is not a bug but rather an exceptional behavior, and may be unwanted, of a command. Normally, the interface language has no effect on construction, because all commands "change their skin", adapting to the new language. All? Hum ... The argument "color" ("red", "blue", etc..) of SetColor command is not translated (388). If we introduce it into a script, the construction will only work in the original language and fail to choose another language for the interface.



PS For example, in the attachment I typed the script Colores[A,"rojo"] and then I choosed English language. "Colores" becomes SetColor, but "rojo" doesn't become "red". Then, the construction fails.


© 2022 International GeoGebra Institute