Hi every body
I have project as book electronic and any words in this book I want translate it into more than one language .
The idea behind this project is imagine page of any books wrote such as English language , the page's consist of paragraphs ,and the paragraphs consist of words.
I need make links on some words and when users click on this word result on appear menus contain languages chooses . the user can translate word by click on it into language that selected.
Which programming languages I can do that ?
Are I can do it by c sharp language ?
Given some idea about how done that project ?
Pleas , I want help from experience body
I sorry on my enghish , but I hope if cleared
So just to clarify. It sounds like you want to load the electronic book into your program, and then display the text. Once you have done this you want the user to be able to right click on a word and translate it. To do this you would add a "ContextMenuStrip" to your project. Then go to the ContextMenuStrip property of the control you are using to display the text, and set its value to the ContextMenuStrip you have added. Then you can modify the Strip to have a list of every language you want. Does this make sense?
So the program might look something like this:
C#.net, VB, C++, Java, VS 2005/2008
Dont' forget to rate posts that are helpful to you.
If it's a book-ish application, I'd imagine that the presentation would occur in an embedded page or in a richtextbox or something similar. You could have a context menu as steve has shown you or make the difficult word a hyperlink which the user can click on to choose a language.
So just to clarify. It sounds like you want to load the electronic book into your program, and then display the text. Once you have done this you want the user to be able to right click on a word and translate it. To do this you would add a "ContextMenuStrip" to your project. Then go to the ContextMenuStrip property of the control you are using to display the text, and set its value to the ContextMenuStrip you have added. Then you can modify the Strip to have a list of every language you want. Does this make sense?
So the program might look something like this:
thank you guy, your post useful me and closed of my idea
I am tried to do that but conn't , I am don't know why ?
and are you do link on word inside control or on control?
how you make links , is depended position word inside controls?
If it's a book-ish application, I'd imagine that the presentation would occur in an embedded page or in a richtextbox or something similar. You could have a context menu as steve has shown you or make the difficult word a hyperlink which the user can click on to choose a language.
thank you guy for help me ,
your idea is correct , maybe if I use richtextbox is best but my problem how i can do context menu on word a hyperlink?I can make hyperlink on word , which when user click on go to other place but I cann't set user click on to choose a language .
thank you on your idea but still my problem pending
So do you want to have the menu pop up like I showed you or do you want to have the word be a hyperlink?
If you tried my way could you tell me the steps you followed to try and do what I did? You need to make sure you create the ContextMenuStrip. Then there will be a property called ContextMenuStrip on each of your items... So go to your rich text box and set the value to the Strip you created.
C#.net, VB, C++, Java, VS 2005/2008
Dont' forget to rate posts that are helpful to you.
Hi every body
I
I need make links on some words and when users click on this word result on appear menus contain languages chooses . the user can translate word by click on it into language that selected.
now , my tried is successful , but i am want make hyperlink on some words not all word that mean i am not want translate all word in richtextbox .
this result is correct :
So you mean you want to have certain words that you will not allow the user to translate? If so, how do you want to store this list? In a database or something else? If not could you explain a little more.
C#.net, VB, C++, Java, VS 2005/2008
Dont' forget to rate posts that are helpful to you.
I'm not sure how efficient this would be but you could have it so that :
1. User right clicks on a word
2. The word is passed as a parameter to a stored procedure in your DB that returns a boolean as to whether or not it exists (this will be the list of words not allowed to translate)
3. if(!exists) show the menu of other languages the word can be translated into
C#.net, VB, C++, Java, VS 2005/2008
Dont' forget to rate posts that are helpful to you.