D7 port of l10n_client

droplet - September 21, 2009 - 07:59
Project:Localization client
Version:7.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:fixed
Description

Hi,
I tried to setup l10n client 7.x-1.x-dev on Drupal 7.x-dev-head but it doesn't work.

#1

Gábor Hojtsy - September 21, 2009 - 08:32

It definitely supported D7 at the point when it was ported. It might not support it at the moment due to the registry being rolled back and other ongoing API changes.

#2

Pasqualle - October 4, 2009 - 04:48
Title:Does l10n client supports Drupal 7-dev ?» D7 port of l10n_client
Component:Miscellaneous» Code
Category:support request» feature request
Status:active» needs review

With this patch it seems working, but I am unsure about the dbtng changes..

AttachmentSize
583260-2-D7_port.patch 16.72 KB

#3

Gábor Hojtsy - November 17, 2009 - 04:10
Status:needs review» fixed

Thanks for this great patch. Reviewed, tried, fixed and committed. Corrected the following things:

- did not add the "change localization server" permission but kept relying on "administer languages" as before; don't think we need a one-off permission for just this one admin page
- admin/config/regional/translate/share was not a local task, so was not showing up; since it is still connected to language administration (from where you attempted to move out), I put it back there, but not under configure; it is now on the same level instead
- l10n_client_page_alter() did not have any arguments, &$page added
- the import form submission cleanup code lacked field definition for the lid query, also using s as a shorthand was superfluous there

This is it. Reimports, local submissions, remote submissions, etc. seem to work. Thanks again!

#4

Pasqualle - November 17, 2009 - 11:49
Status:fixed» needs review

the commit is not listed: http://drupal.org/project/cvs/140087
and the checkout does not contain the changes.

#5

Gábor Hojtsy - November 17, 2009 - 12:10
Status:needs review» reviewed & tested by the community

Haha, right. For some reason, I've had an anonymous checkout of the module. Patch attached and attempting to apply this again on a personal checkout :) Note also that I've added a todo to the import stuff to convert to an action if import/export becomes a local action, which I'd expect (but do not have time to roll a patch now).

AttachmentSize
updated-l10n-client.patch 16.9 KB

#6

Gábor Hojtsy - November 17, 2009 - 12:13
Status:reviewed & tested by the community» fixed

Ok, now sure being committed :) http://drupal.org/cvs?commit=290094 Thanks again!

 
 

Drupal is a registered trademark of Dries Buytaert.