473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Translating MenuItem and TreeNode objects

_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
0 935

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Rakesh | last post by:
Hi, I am able to obtain a MenuItem object's Name property @ design-time, but am not able to get the same @ run- time...why? And since MenuItem doesn't inherit from Control class, it's not...
4
by: Jesper | last post by:
Hi, When creating a popup menu I find it rather difficult to provide the eventhandler for the MenuItem with enough information. My actual problem is that I create a popup menu with a list of...
3
by: Wal Turner | last post by:
My general question is: How does one determine the font of a System.Windows.Form.MenuItem? I have a custom MenuItem where I have set OwnerDraw = true, and hence the implementations of DrawItem...
2
by: Fei Li | last post by:
Why TreeNode is a string? It should hold a Object and get label from Object.ToString(). Then much better. Easy to trace all objects in a TreeView.
6
by: Craig Lister | last post by:
I have a treeview with a Root, a Contact Type, and a Contact. Like MSN Messenger. Is there a way that I can say something like if treenode.tag is classContact then string Surname =...
1
by: naijacoder naijacoder | last post by:
Hi Guys, I have an application below that is treeview menu populated from the database which works with asp.net webmatrix.But when i put it into code behind in Visual Studio.Net it gives the...
5
by: Don | last post by:
I've created a small test class to extend the Treenode object and am having mixed success. In the Treeview's 'BeforeExpand' event I've used code from the help topic "Adding Custom Information to...
2
by: polocar | last post by:
Hi, I'm writing a program using Visual C# 2005 Professional Edition, and I was trying to assign multiple MainMenu objects (one by one, of course) to the same Form (let's suppose 2 MainMenu...
0
by: PopeDarren | last post by:
_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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.