i am using the dictionary concept for localization i have two xml one
is language list another one is get the translation
i am getting the first xml and bind it to combobox that xml is
<?xml version="1.0" encoding="utf-8"?>
<data>
<default id="en" name="English"/>
<language id="en" name="English"/>
<language id="fr" name="French"/>
<language id="es" name="Spanish"/>
</data>
in the first onload complete
var xml:XML = new XML(result);
var language:LanguageVO;
var languages:Array = [];
var defaultLanguage:LanguageVO;
var defaultLanguageId:String =
[email protected]();
var so:SharedObject = SharedObject.getLocal("vtAdmin");
if(so.data.langId)
{
defaultLanguageId = so.data.langId;
}
so.close();
for(var i:int = 0; i<xml.language.length(); ++i)
{
language = new LanguageVO();
language.id = xml.language[[email protected]();
language.label =
xml.language[[email protected]();
languages.push(language);
if(defaultLanguageId == language.id)
{
defaultLanguage = language;
}
}
i need to form the second xml
in the second onload complete
var result:Dictionary = new Dictionary();
var i:int;
for(i = 0; i<xml.entry.length(); ++i)
{
result[xml.entry[[email protected]()] =
xml.entry[i].toString();
}
please help me to form the second xml to translate
i tried but it not translate
<?xml version="1.0" encoding="utf-8"?>
<data>
<entry id="en" key=top_menu_panoramas" value="hfhfhgf"/>
</data>
--
Thanks & Regards
S.Mohamed Faisal B.E.,
+918050783447
+919842351939
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.