Closed (fixed)
Project:
Webform
Version:
5.x-1.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
19 Nov 2007 at 14:26 UTC
Updated:
11 Mar 2021 at 19:06 UTC
I noticed that the component names are not being translated when switching between languages. To fix that, simply edit the webform.module, and look for function webform_load($node) around line 148, and edit the line (around 154)
$page->webformcomponents[$c['cid']]['name']= $c['name'];
to
$page->webformcomponents[$c['cid']]['name']= t($c['name']);
adding the translation function t().
After that, just go to /admin/settings/locale/string/search and search for the word, and translate it.
Comments
Comment #1
quicksketchThanks, committed!
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.