By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,771 Members | 1,685 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,771 IT Pros & Developers. It's quick & easy.

Translating MenuItem and TreeNode objects

P: n/a
_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 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 hundreds 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!
Apr 4 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.