Good morning,

Are there plans to improve Webform Localization support in this module?

Current Functionality

Creating a new webform, with a 3 column Matrix Component results in the Label of the Matrix Component being available in the Translation Interface.
Seemingly correctly nested in the "Webform Localization" text group" and properly created with a unique identifier.

Webform Localization Matrix Label webform:60cb4736-b31e-41e1-acb7-05f863305912:20:#title

However:
While Column Names are available in the Built-in Interface, and appear translated when filling in the Form, they:
1) Exist in the Built-In Interface group and are not uniquely identified.
2) Appear correctly translated when completing the form
3) The Translated strings DO NOT appear in the Preview step of the form. (See preview.png)

Built-in interface	     TEST-Name	                             /fr/service/199
Built-in interface	     TEST-Date of Birth	             /fr/service/199
Built-in interface	     TEST-Health Card Number	     /fr/service/199	
Built-in interface	     TEST-Select Options	             /fr/service/199

Thanks for your comments.

Comments

fgjohnson created an issue. See original summary.

fgjohnson@lojoh.ca’s picture

StatusFileSize
new18.36 KB
chetan-singhal’s picture

will add this functionality in next release

fgjohnson@lojoh.ca’s picture

Jumped the Gun...
Looks like my preview issue is resolved with this "webform" patch.
https://www.drupal.org/files/issues/webform-markup_translation-2728557-1...

It's odd.
The translated fields exist when the page is evaluated with "developer"... but do not render on the page.

String insertion into "Built-in Interface" instead of "Webform Components" seems to be something that could be addressed.

Thanks man!

chetan-singhal’s picture

do you want patch for that?

fgjohnson@lojoh.ca’s picture

A patch would be awesome!
Be glad to test it for you.

Maybe related...
https://www.drupal.org/node/2728557

fgjohnson@lojoh.ca’s picture

For clarification, and so I can communicate to my supervisors...

Are you creating a patch for this?
Thanks

chetan-singhal’s picture

yes

fgjohnson@lojoh.ca’s picture

Sweet,
Let me know when you need some testing.

fgjohnson@lojoh.ca’s picture

Hi,
Just wondering if you have made any progress with this?
Thanks

nixou’s picture

Status: Active » Needs review
StatusFileSize
new16.3 KB

I worked on this issue and I created a patch with a full implementation to Webform Localization.

To have the matrix component translatable you should apply this patch and then :

  1. Install Webform Localization if you have not
  2. Go to the "Form Settings" tab of your webform and check the option "Expose webform component strings suitable for translation"
  3. Go to admin/config/regional/translate/i18n_string and refresh "Webform Localization" strings
  4. Go to admin/config/regional/translate/translate and filter by "Webform Localization"
  5. Translate label / options (for options, beware to include "\r\n" between each option in the translation)
  6. Clear all cache