The GeoGebra Google GadGet Translation...

Luiz Aquino shared this question 8 years ago
Needs Answer

Dear Friends,


I know that here it's not a english forum, but I need some help...


I'm working in a 'full' version of GeoGebra Google Gadget, so we can put our .ggb files in Google-Sites without writing any .xml file. Now, you can have it from:

http://www.google.com/ig/di...


I need help to translate it to another languages. All you have to do is edit the text between "<msg>" and "</msg>" in the file "ALL_ALL.xml" below, and save it as "<language>_<country>.xml", where "<language>" and "<country>" usually have two letters (see [1] and [2]). For example, your language is english and your country is UK, so we have "en_UK.xml". For portuguese and Brazil, we have "pt_BR.xml". And so on. If there isn't another country officially speaking your language, so we have "<language>_ALL.xml".


"ALL_ALL.xml" file:

<messagebundle>

<?xml version="1.0" encoding="UTF-8"?>

<msg name="module-title">GeoGebra GadGet</msg>

<msg name="module-description">Put a GeoGebra file (.ggb) in your Google-site.</msg>

<msg name="module-thumbnail">http://hosting.gmodules.com...;

<msg name="module-screenshot">http://hosting.gmodules.com...;

<msg name="title">Title</msg>

<msg name="title-bar-background-color">Title bar background color</msg>

<msg name="title-bar-text-color">Title bar text color</msg>

<msg name="codebase">Code base</msg>

<msg name="archive">GeoGebra Archive</msg>

<msg name="width">Width</msg>

<msg name="height">Height</msg>

<msg name="filename">GGB File</msg>

<msg name="image">Loading image</msg>

<msg name="enableRightClick">Enable right click features</msg>

<msg name="enableLabelDrags">Enable dragging of labels</msg>

<msg name="showResetIcon">Show icon to reset construction</msg>

<msg name="showAnimationButton">Show animation button</msg>

<msg name="framePossible">Double click opens application window</msg>

<msg name="showMenuBar">Show menubar</msg>

<msg name="showToolBar">Show toolbar</msg>

<msg name="showToolBarHelp">Show toolbar help</msg>

<msg name="showAlgebraInput">Show input bar</msg>

<msg name="errorDialogsActive">Show error dialogs</msg>

<msg name="thereisnotJava">If there isn't Java, show this message</msg>

<msg name="thereisnotJava-default-value">

Sorry, the GeoGebra Applet could not be started. Please make sure that Java 1.4.2 (or later) is installed and active in your browser (<a href='http://java.sun.com/getjava'>Click here to install Java now <\a>)

</msg>

<msg name="param_extra">Extra applet parameter</msg>

<msg name="title-bar-download-ggb-file-button">Download .ggb file</msg>

<msg name="title-bar-hide-button">Hide</msg>

<msg name="title-bar-show-button">Show</msg>

</messagebundle>


Before you edit this file, we have two simple rules:

  • The file must be saved in UTF-8 format.
  • You can't use the character: &, <, > or " in your text. If you want to use them, so use the follow escape code:

    • & : &
    • < : <
    • > : >
    • " : "

    For example, you want to put a link for Java site in the case that the applet can't be started. So do this:

    <a href='http://java.sun.com/getjava'>Click here to install Java now <\a>

    and we'll have this

    <a href='http://java.sun.com/getjava'>Click here to install Java now<\a>


When you finish the edition, send me the file. My e-mail address is aquino.luizclaudio@gmail.com.


One more thing, from "enableRightClick" to "showAlgebraInput", we can find the translation in GeoGebra menu: File > Export Dynamic Worksheet > Advanced tab.


If you want to know more about google gadget and internationalization, see this page:

http://code.google.com/apis...


Best regards,

Luiz Aquino.


[1] http://en.wikipedia.org/wik...

[2] http://en.wikipedia.org/wik...

© 2018 International GeoGebra Institute