|
Yes. You can subscribe to something like the Google Translate API. However, the question is, will the quality of the translated text be sufficient? Also, do you want to display Anglicised versions of the translated text, or Kanji (in which case, you will need the appropriate fonts installed)?
|
|
|
|
|
Yes, but the problem is having complete dictionaries and syntax analyzers for both languages. I know nothing about Japanese but I doubt if this would be a simple project. It may be possible to use the Google translate feature in your program; take a look at the Google developer pages.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Just to further Pete o'Hanlon's post.
The quality of the translation seems to depend heavily on how close the languages are to eachother. If I put French or German into Google translate the results are pretty reasonable. I regularly need to translate Arabic into English, often the results are impossible even to get the jist of. My guess is Translating Japanese --> English and back will be pretty bad, but Japanese into one of the related East Asian languages less so.
Even then you don't have control over the process of the text comes out. An internal memo in Arabic about a student travelling with text that meant something like "She had two choices an easy way and a difficult way. She went the difficult way" into English "She made a choice between a soft one and a hard one. She took a hard one." I forget the exact wording, but it wasn't far off this. You end up surprisingly often with unintentionally funny or smutty translations, something that you may want to avoid for your clients.
Writing your own translator is hard Google has large teams devoted to the problem, and you see the results. My advice is to use a good [human] translator and swap languages in code.
|
|
|
|
|
Talking about translating the UI? or a translation software ?
Watched code never compiles.
|
|
|
|
|
Hi,
It is possible to get Japanese Language text from reading image file
How will get text as japanese language in ocr
|
|
|
|
|
This question has already been answered here[^].
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Hi All,
I am stuck with Icon overlay, I am developing windows project using C#,
How to overlay an icon over existing shell objects in 3 easy steps[^]
i am trying to implement icon overlay using above link, but how to use it i am not get it, i am used export and import is there any solution for icon overlay any one help me Plz..
Thank you,
|
|
|
|
|
When you are trying to get something working based on an article, the best place to ask questions is on the forum for that article. There's precious little chance that an author will happen on by and pick up a question in an unrelated forum.
|
|
|
|
|
Hello!I have a problem.I try to make a program which when I press a button my program execute this:
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
HttpWebResponse rsp = (HttpWebResponse)req.GetResponse();
The problem is when the url is not valid my program is blocking at this sequence: HttpWebResponse rsp = (HttpWebResponse)req.GetResponse();
What can I do for my program show me a message when the url is not valid?
|
|
|
|
|
What does "the url is not valid" mean?
When I try string url = "http://www.google.con"; , I receive a DNS error ("could not resolve name").
When I try string url = "http://www.google.com/blah.php"; , I receive error 404 ("not found").
I do not know the URL you tried. Try waiting for some time (about a minute), and see if you run into a tme-out. In any case, you should get an exception telling the reason.
|
|
|
|
|
More exactly i try the url that contain the port.
|
|
|
|
|
Enclose the code in a try catch block and log the Exception message. You'll know why your call failed after the call times out.
|
|
|
|
|
i tried this but if the url not exist first the program is blocking for 20 seconds and after give me a message :"Unable to connect to the remote server".
|
|
|
|
|
That's the correct behavior. What else you want it to do?
|
|
|
|
|
That's the error that Shameel is talking about.
If the url is being entered at runtime by the user and you want to validate the url before trying it, then there is no really simple way to do this. In this case you would have to write a validation method before you try the url.
Otherwise, the suggestion you have received already is the correct one.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
I want if the url is not valid the program skip quickly over this sequence.i want the program doesn't blocking
|
|
|
|
|
Then you need to run the web request in a background thread (or BackgroundWorker or Task).
|
|
|
|
|
This a good idea!I will try this.Thanks
|
|
|
|
|
hi
i have in my C# WinForm program DataGridView
i need to change the text color of any cell by code.
i try this:
dataGridView8[0, rowCounter].Style.ForeColor = Color.Red;
but it dosnt work
how to do it ?
thanks in advance
modified 13-Feb-12 2:12am.
|
|
|
|
|
Identify the Cell and change it's ForeColor.
Cell.ForeColor = "Red";
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
i try this:
dataGridView8[0, rowCounter].Style.ForeColor = Color.Red;
but it dosnt work
|
|
|
|
|
This worked for me.
private void btnGC_Click(object sender, EventArgs e)
{
List<string> lData = new List<string>();
lData.Add("this one");
lData.Add("this one");
lData.Add("this one");
lData.Add("this one");
lData.Add("this one");
lData.Add("this one");
lData.Add("this one");
this.dataGridView1.DataSource = lData;
this.dataGridView1[0, 3].Style.ForeColor = Color.Red;
}
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
thanks for the help, but the color dosent change
|
|
|
|
|
Then there must be another issue, that code above changes the colour of the text in the specified cell!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I'm wondering if the Subject is correct and pointing to the problem... If there's a hyperlink in the cell, would changing the Forecolor affect it, or is it going to default to the default hyperlink color?
|
|
|
|