Manual
9
Developer’s guide - C++, Urbi, Flex, Java - V2.0
robopec
This document is the property of Robopec. The information contained herein may not be used, reproduced or
communicated without its prior written consent.
<name_nom_application>name</name_nom_application>
<bonjour_nom_application>Hello</bonjour_nom_application>
</english>
</content>
Translation files for all applications are merged into a single database on Reeti. This allows you to
reuse the translations from other applications. Nonetheless, if the same xml tag is present in two
files, only one translation will be taken into account, that of the first file loaded. That is why we
recommend you to add the name of your application to your tag, if the translation is special:
Ex : To translate “yes”, you can use:
<yes>oui</yes>
<yes>yes</yes>
Because “yes” is quite general for all applications
But to translate: « Yes ! Of course. », our advice is to use:
<yes_mon_appli>Oui ! Bien sûr.<yes_mon_appli>
<yes_mon_appli>Yes ! Of course.<yes_mon_appli>
Because this sentence is dedicated to one application.
Conventionally, the translation file is named after your application as xml file: (RRobotFoo.xml for an
application named RRobotFoo).
Flash application file
This file .swf contains the flash application.
To create a compatible application, you have to follow these steps:
- Create your application as a RApplication (class in the PublicGUITools library)
o Your application must implements the variable m_appName : the name of your
application conventionnaly beginning by an R :
m_appName="RMy_application "
- Add a Header components from PublicGUITools. You have to fill:
o Title of your application: title= ‘‘name‘‘
o A function prevClick allowing you to go back to Home
- You can then send instructions to Reeti by using the following function :
o FlexGlobals.topLevelApplication.socket.write("Global.servo.leftEar=10;");
Example:
<?xml version="1.0" encoding="utf-8"?>
<!—Loadable Application by Reeti Launcher -->
<local:RApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"