setting language for method getCommandString

pedroquaresma shared this question 7 years ago
Answered

Hi


When using the GeoGebra applet method 'getCommandString' the output cames in the local language, e.g.


'Circunferência[E, F]' (in Portuguese).


This cannot be feed back into the applet, using 'evalCommand', e.g.


applet.evalCommand("c = Circunferência[E, F]");


the 'Comando desconhecido. : "Circunferência' (unknown command) message appears.


How can I get the English version of the command with 'getCommandString' ?


Or


Is it possible to change from Portuguese to English, and after the 'getCommandString' comand back to Portuguese?


Thank you.

Comments (1)

photo
1

Hi


try with


String getAlgorithmXML(String objName)


or


use the global-Javascript (as black box) in the attachment (include sample)

With this 2 global-Java-scripts you can get or set all exists attributes of an named-object.


Raymond

https://ggbm.at/568409

© 2021 International GeoGebra Institute