GovindChittesh / google-api-for-dotnet

Automatically exported from code.google.com/p/google-api-for-dotnet
0 stars 0 forks source link

Hungarian translation is now supported by Google, but not by the API #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to translate a text from (for example) English to Hungarian

What is the expected output? What do you see instead?
The expected output is the hungarian translation, a GoogleAPIException is
raised instead.

What version of the product are you using? On what operating system?
2.0 Beta

Additional information:
If you "hack" the API, and add the Hungarian language the
s_TranslatableList field via reflection, it works ok.
You only have to add the Hungarian language to the s_TranslatableList array
in the static constructor of the LanguageUtility class.

Original issue reported on code.google.com by ger...@gmail.com on 6 Feb 2009 at 1:05

GoogleCodeExporter commented 9 years ago
Hello, 
how can I hack the api? Could you explain me? I have to translate from 
hungarian!!

Original comment by eclips...@inwind.it on 19 Feb 2009 at 5:12

GoogleCodeExporter commented 9 years ago
Hello,
you can "hack" with reflection.
Check out my blogpost: http://otperc.net/2009/02/google-api-for-dotnet.html
[It's hungarian only. But you can use the Google Translate to translate it to
english, of course. :) ]

Original comment by ger...@gmail.com on 19 Feb 2009 at 5:19

GoogleCodeExporter commented 9 years ago
mmm... I haven't understood the solution :(

Original comment by eclips...@inwind.it on 20 Feb 2009 at 12:56

GoogleCodeExporter commented 9 years ago
Well, Ok, I have tried, all seems to work fine!
Great work!

Original comment by eclips...@inwind.it on 20 Feb 2009 at 1:25

GoogleCodeExporter commented 9 years ago
Open source means you can see and change the code by yourself.

The easiest way to fix this problem is, make some method public (it's internal 
now).

I'll fix this on the next version. But I'm busy all these days, sorry all.

Original comment by iron9li...@gmail.com on 1 Mar 2009 at 7:46

GoogleCodeExporter commented 9 years ago
See v0.2

Original comment by iron9li...@gmail.com on 22 Mar 2009 at 8:10