Not sure if this issue should be here or in http://drupal.org/project/issues/l10n_server.

On my language I have 3 forms plural but only the first (#0) and the second (#1) are filled right now. On long texts those two form elements are textareas while the third (#2, the empty one) is textfield.

This prevents entering the entire text in #2 because textfield is limited.

Comments

claudiu.cristea’s picture

StatusFileSize
new35.44 KB

See also a screenshot.

gábor hojtsy’s picture

Project: Drupal.org site moderators » Localization server
Version: » 6.x-1.x-dev
Component: Localize.drupal.org » Code
Assigned: Unassigned » gábor hojtsy
Status: Active » Fixed

Yes, the basic problem was that English has 0 and 1 as plural indexes, and when Romanian had to ask for the length of the English original variant for the index 2, it was empty. Therefore the textfield. Also, the JS tried to copy value for index 2 when there is only 0 and 1.

Fixed this in PHP and JS both by maintaining a source index and not going above 1 when the translation source index goes. This applies the size of the second variant for the textfields/areas, which is probably as correct as we can be. Plus it also copies the second variant for the third, fourth, etc. field.

Tested and deployed too. Thanks for the report.

gábor hojtsy’s picture

StatusFileSize
new2.02 KB

Patch which did not manage to attach.

claudiu.cristea’s picture

Is working fine now on http://localize.drupal.org.

Thanks.

Status: Fixed » Closed (fixed)

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