When I move the gadget over to the Spanish or Portuguese wikipedia,
and enable access in the Google Api Console to
http://es.wikipedia.org
http://pt.wikipedia.org
I get a "Access Not Configured" message when I access the Google
language API V2 translation request.
I know the code works because it works on en.wikipedia.org.
I have checked for any hardcoded en.wikipedia.org strings already.
Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA
For more information or a project quote:
jrge...@gmail.com
If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!
> --
> You received this message because you are subscribed to the Google
> Groups "Google AJAX APIs" group.
> To post to this group, send email to
> google-ajax...@googlegroups.com
> To unsubscribe from this group, send email to
> google-ajax-searc...@googlegroups.com
> To view this message on the web, visit
> http://groups.google.com/group/google-ajax-search-api?hl=en_US
> For more options, visit this group at
> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
The gadget code is at:
http://en.wikipedia.org/wiki/User:Endo999/GoogleTrans.js
There's quite a lot of code.
Sincerely,
Paul
Quoting Jeremy Geerdes <jrge...@gmail.com>:
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
While you're looking for that, a few of thoughts:
1. Are you sure that the value given for SCGoogleAPIKeyV2 is a valid key which is activated in the APIs Console AND not restricted to a particular domain or URL? Despite what the code says about the key not being required (which, by the way, is the case with v1), v2 does require a valid key which is obtained through the APIs Console ( http://code.google.com/apis/console ). Although I don't know of a definitive reference to explain error messages from the API, the error that you're receiving would seem to suggest that this has not been done.
2. There is a v1 key present just above the v2 key. It looks like the code is using the v1 API for its Languages enum and perhaps individual word lookups. This is going to be problematic because the v1 API will be discontinued on 1 December. The comments in the code indicate that, because of the v1 key present in the code, the author expected an email notification if and when the API was discontinued. That is not the case. It will simply cease to work. You may want to consider using my Javascript wrapper for the v2 API to approximate the functionality of the v1 API. You can find it at http://code.google.com/p/gtranslate-api-v2-jsapi
3. It should also be noted that, on 1 December, the Translate API v2 will transition to a paid service. In order to continue using it after that time, you will need to have activated the API AND enabled billing through the API Console. Perhaps the author of the code disabled the key so as to avoid having to pay for others' use.
4. The individual word lookup facility would be problematic because machine translation (i.e., the service underlying Google's Translate API) generally struggles to translate strings of only one or two words. In my testing, it only becomes even remotely reliable with at least three words.
Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA
For more information or a project quote:
jrge...@gmail.com
If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!
I fixed my problem up by simply creating another browser language api
v2 key and associating it with a referral pattern
And then I was able to have the software gadget work on all wikipedias.
The editing of referrals per browser key does not seem to work after a while.
Regards,
Paul
Quoting Jeremy Geerdes <jrge...@gmail.com>:
----------------------------------------------------------------