Support for the 2.0 remote server API

Gábor Hojtsy - October 20, 2008 - 22:35
Project:Localization client
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:needs work
Description

There is a new 2.0 server API just committed at http://drupal.org/node/323914 for l10n_server. This patch adds support for that API in l10n_client. Architected and implemented by Jose A Reyero, cleaned and tightened up by myself. Committed to 6.x.

AttachmentSize
new_20_api_client.patch6.93 KB

#1

panas - October 24, 2008 - 12:58
Version:6.x-1.x-dev» 6.x-1.6
Component:Code» Documentation
Category:task» support request
Status:fixed» active

need some clarification,

nstant sharing of localized strings as you input them with a Localization server. (Drupal 6.x)

On local machine we have enabled the,
admin/settings/language/configure/l10n_client
Enable sharing translations with server
and in
Address of localization server to use:
we have the remote server

http://www.demo.somesite.net/

* Verified that the specified server can handle remote string submissions. Supported languages: el.
* The configuration options have been saved.

Do we miss something? or isn't yet working?

#2

Gábor Hojtsy - October 24, 2008 - 13:05

Have you set up a user key for the user you are trying to use to share. Since this works via server-server communication, we need a way to authenticate the client, so that people cannot submit strings in your name. Therefore you need to go into your user settings and set up your user key on the client site. Instructions there will help you do it right.

I agree this could be better documented.

#3

panas - October 24, 2008 - 14:51
Status:active» fixed

Ok so here is how it works.

Version 6.x-1.6 and after

After enabling the module and setting up the permissions for the user roles.

Navigate to
admin/settings/language/configure/l10n_client

check the

Enable sharing translations with server

Enter the web link of your team server under
Address of localization server to use:
http://www.example.com

Click

Save configuration

Go to your account and click
Edit

Find
Your Loalization Server API key:

and enter the key that you would get by clicking on the link after the ,
This is a unique key that will allow you to send translations to the remote server. To get your API key go to

You have to be logged in in at this time on the localization server in order to get the Api key.
And also you must have the permission on the remote server to submit remote translations.

Easy?

#4

Gábor Hojtsy - October 24, 2008 - 14:57

The startup setup of this new interface is a bit longer then the previous one, but from there, you don't need to be logged in on the l10n_server at all to contribute. Previously your contributions would just be dropped if you were not logged in, now you don't need to be logged in, since your secret API key authenticates you.

#5

Anonymous (not verified) - November 7, 2008 - 15:01
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#6

pvasili - June 8, 2009 - 15:03
Version:6.x-1.6» 6.x-1.x-dev
Status:closed» active

How to keep the access via group using this method?

Will be add transfers any users who have the key? :(

How do I restrict access to external users?

Now the client writes to the log file:
Translation rejected by remote server. Reason: Wrong parameters or signature.
server:
Submitted translation with wrong parameters or signature. :( ...

#7

pvasili - June 9, 2009 - 16:34
Component:Documentation» Code
Category:support request» bug report
Status:active» needs review

Some users receive an error when adding the translation (to the l10 server).
This patch fixes the problem.

AttachmentSize
l10n_client-323917.patch 794 bytes

#8

pvasili - August 10, 2009 - 08:10
Priority:normal» critical

This bug is still present and it is not fixed: (

#9

Gábor Hojtsy - August 10, 2009 - 08:16
Status:needs review» needs work

Let's trim the key on entry/submission to the client form, not when it is used.

 
 

Drupal is a registered trademark of Dries Buytaert.