 |
|
 |
Hello
there’s a problem when translating from pt to en
when using certain words like
não -> no
opção -> option
cão -> dog
pão -> bred
chimpanzé -> chimp
Título -> title
They use certain specific chars ( ã ç é í ) and the word fail to be correctly translated
Can you please take look this issue ?
|
|
|
|
 |
|
 |
Thanks. Will look into this shortly.
/ravi
|
|
|
|
 |
|
 |
I found myself a workaround if you are interested like this :
Before passing the string for translation I replace all those specific chars with no accentuation ones like this:
public string RemoveAcentosComRegEx(string inputString)
{
System.Text.RegularExpressions.Regex replace_a_Accents = new System.Text.RegularExpressions.Regex("[á|à|ä|â|ã]", System.Text.RegularExpressions.RegexOptions.Compiled);
System.Text.RegularExpressions.Regex replace_e_Accents = new System.Text.RegularExpressions.Regex("[é|è|ë|ê]", System.Text.RegularExpressions.RegexOptions.Compiled);
System.Text.RegularExpressions.Regex replace_i_Accents = new System.Text.RegularExpressions.Regex("[í|ì|ï|î]", System.Text.RegularExpressions.RegexOptions.Compiled);
System.Text.RegularExpressions.Regex replace_o_Accents = new System.Text.RegularExpressions.Regex("[ó|ò|ö|ô|õ]", System.Text.RegularExpressions.RegexOptions.Compiled);
System.Text.RegularExpressions.Regex replace_u_Accents = new System.Text.RegularExpressions.Regex("[ú|ù|ü|û]", System.Text.RegularExpressions.RegexOptions.Compiled);
System.Text.RegularExpressions.Regex replace_c_Accents = new System.Text.RegularExpressions.Regex("[ç]", System.Text.RegularExpressions.RegexOptions.Compiled);
inputString = replace_a_Accents.Replace(inputString, "a");
inputString = replace_e_Accents.Replace(inputString, "e");
inputString = replace_i_Accents.Replace(inputString, "i");
inputString = replace_o_Accents.Replace(inputString, "o");
inputString = replace_u_Accents.Replace(inputString, "u");
inputString = replace_c_Accents.Replace(inputString, "c");
return inputString;
}
Translation seams to be OK now!
|
|
|
|
 |
|
 |
Awesome! +5
/ravi
|
|
|
|
 |
|
 |
Hello
The method I used also solves the problem in other languages translation that use that specific chars!
|
|
|
|
 |
|
 |
Hello
Can you please send me the source code for the dll's so i can take a deep look in it?
There are certain limitations the traslation with de procedure I did. the translation it's not allways right the string get's truncated at a certain point.
my email is : bgsjust@hotmail.com
Thank's in advance!
|
|
|
|
 |
|
 |
You can download the source code from the article.
/ravi
|
|
|
|
 |
|
 |
nevermind i noticed your other links to the dll's
|
|
|
|
 |
|
|
 |
|
 |
Thanks for your vote!
/ravi
|
|
|
|
 |
|
 |
Hi,
Thanks for your excellent tool. I used it to make translations of my program. But I discovered very odd behaviour with the translations.
When I translate "choose language" from English to German, I get "Sprache wählen". Which is correct, I think. But when I translate "Choose language" (with a capital), I get "Choose language" as a result. Other languages seem to be OK. I think it has nothing to do with your tool, but something strange is happening at Google's translator. Can you tell me where I can find the documentation of the protocol you used? So I can contact Google about this issue.
Regards,
ffonzz
|
|
|
|
 |
|
 |
Thanks. Will look into this shortly.
/ravi
|
|
|
|
 |
|
 |
Your Code Class is simply fantastci , but the only Major problem is German special character handling. It simply bundles up the (ä,ü etc...) to something funny.
It should really be great if you could be able to sort this bug out. We are situated in Salzburg,AUSTRIA and I am looking forward to impliment your Class in my WPF application.
Thanks !!!
abhijit chitnis
|
|
|
|
 |
|
 |
Thanks for your comments. Will look into it the moment I have some free cycles.
/ravi
|
|
|
|
 |
|
 |
I have the same problem with the german special characters. Can you help me too?
Thanks in advance!
|
|
|
|
 |
|
 |
Will look into this when I have some free cycles. Have been very busy lately. Thanks for your patience!
/ravi
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
Hi,
I'm getting character problems in strContent while trying translate some text from English to Turkish. Because of that, the translation will be cropped and not right.
How can I fix that ?
thanks in advance.
|
|
|
|
 |
|
 |
Thanks. Will look into this shortly.
/ravi
|
|
|
|
 |
|
 |
I wanted to see if I could get some help. I am not able to get this to work for Thai to English.
However, if I try Googles web site (http://translate.google.com/) it works fine.
Any help would be greatly appreciated.
|
|
|
|
 |
|
 |
Thanks. Will look into this shortly.
/ravi
|
|
|
|
 |
|
 |
Just tried the Demo and the source code. And its not working, always getting a String Length error when i try to translate even a single word.
|
|
|
|
 |
|
 |
Thanks for letting me know. I'll look into it over the weekend.
/ravi
|
|
|
|
 |
|
 |
Works fine for me. What language gave you the error?
/ravi
|
|
|
|
 |