MenuItem and TreeNode help

MenuItem and TreeNode help

am 04.04.2008 20:46:02 von PopeDarren

_Short version_: Is it possible to directly access the hyperlink
objects in the MenuItem and TreeNode objects on the server-side? If
so, how do I do it?

_Long version_: I'm getting to the end of a huge multi-lingual
project
for our company. It's an intranet site, but it will eventually be a
world-wide program. Things change and now I find out that sometimes
there are not going to be human translations available for every
language, but there will always be at least one human translation
available - and it can be in any language. Fine. Now the program
sends objects to get translated on the server side, and if it doesn't
find the translation there, I use javascript to loop through an array
of objects that weren't translated and let google try to do the rest.
(Google AJAX Lanugage API). It's about 95% successful and really
neat
to watch, but I'm having trouble specifically with MenuItem and
TreeNode objects.

The problem is that I'm creating the javascript array on the server-
side. My hope was that I would be able to translate only the
specific
objects that need translation with the Google AJAX Language API, but
I
can't figure out how to access the hyperlink objects that hold the
text I need to translate within the TreeNodes or MenuItems. I'm not
even sure it's possible on the server side.

I'm open to the idea of having javascript search for only
untranslated
material, but I'm not sure how to go about looping through the
objects
in javascript, or how long it would take to go through a page with
potentially thousands of objects. Let me know what you think.

Ask questions, please, if I didn't explain something very well.
Thanks for your help in advance!