This is a multilingual Greek - English new and fresh drupal 7 beta 1 installation, for testing and translation.
Installation was in Greek language and was really smooth and cool ! following installer steps (see also this issue http://drupal.org/node/882164).

All core modules enabled.

Then i downloaded and enabled the Localization client module and tested with some translations.

1. Translations are not saved (seems to be inside Localization Client UI but when i refresh the page trasnslations are gone.
2. when i go to admin/config/regional/language/share and check the "Enable sharing translations with server" checkbox and hitting "Save Configuration button" i get the following:

Fatal error: Cannot use string offset as an array in /home/goargoli/domains/el-drupal7.dyndns.org/public_html/includes/xmlrpc.inc on line 564

after this error, pressing the back browser button and uncheck the "Enable sharing translations with server" checkbox, hitting "Save Configuration button" again, i get the following warnings:

* Warning: key(): Passed variable is not an array or object in _xmlrpc() (line 558 of /home/goargoli/domains/el-drupal7.dyndns.org/public_html/includes/xmlrpc.inc).
* Warning: Invalid argument supplied for foreach() in xmlrpc_request() (line 381 of /home/goargoli/domains/el-drupal7.dyndns.org/public_html/includes/xmlrpc.inc).

PS. sorry i think i should have create two seperate issues for 1. and 2.

Comments

gapa’s picture

I also run into this. Into both problems, same setup.

gábor hojtsy’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Active » Patch (to be ported)
StatusFileSize
new4.79 KB

Ok, these were two problems but we can fix them at once :)

1. The translating saving did not work since core stopped assigning IDs to hidden fields, so our JS did not carry over the form ID which then resulted in the XSS prevention code to kick off and deny the submission. Fixing one line in the JS solves the issue.

2. The XML-RPC was failing since Drupal 7 changed how the xmlrpc() function should be invoked. It now takes an array of methods with an array of arguments, while Drupal 6 took a method name and optional arguments. By fixing this (at the testing place and the actual submission), submitting strings works as well. I confirmed by submitting my first l10n_client sourced D7 translation string at http://localize.drupal.org/translate/languages/hu/translate?sid=589444

I also took the liberty to fix the very outdated explanation for the server URL and avoid an XML-RPC call and have a better error message for when the server address was not specified. The client now works for me fully after this change (for built-in strings at least). For custom text groups #361147: Support for different text groups needs some love.

gábor hojtsy’s picture

Status: Patch (to be ported) » Fixed
StatusFileSize
new3.98 KB

I've committed this backport with the textual changes to Drupal 6.

Status: Fixed » Closed (fixed)

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