Closed (fixed)
Project:
Variable
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2012 at 20:46 UTC
Updated:
31 Mar 2012 at 14:50 UTC
Hi ! Just add a simple line to enable localization of that type... File "variable.variable.inc", line 139 :
$type['text_format'] = array(
'title' => t('Formatted text'),
'element' => array('#type' => 'text_format'),
'localize' => TRUE, // Added
'element callback' => 'variable_form_element_text_format',
'format callback' => 'variable_format_text_format',
'default callback' => 'variable_text_format_default',
);
Sorry, I'm too lazy to make a patch file ! ^^
After that, it still seems not working with the module "i18n_variable", probably because this module doesn't know about the existence of the new variable type "text_format", introduced in the dev version...
Regards.
Comments
Comment #1
jose reyero commentedOk, thanks.