I hacked up the following snipped inside i18nprofile_form_translate(), which I got working, to see the translated values for profile items in options list that have translations:
LINE 124:
if($field->explanation) {
$form[$category][$name]['#description'] = $field->explanation;
}
//code below
if(!empty($field->options)) {
$form[$category][$name]['#options'] = preg_split('/[,\n\r]+/',$field->options);
}
I did this before I noticed that the most recent version of i18nprofile.module in cvs had code that seemed like it should work:
if($field->explanation) {
$form[$category][$name]['#description'] = $field->explanation;
}
//code diff in HEAD
if($form[$category][$name]['#type'] == 'select' && $options = unserialize($field->options)) {
$form[$category][$name]['#options'] = $options;
}
When I put that code in my 4.7.x installation, it didn't work, and replacing the whole module with the version in HEAD made my "translation" tab disappear.
I went back to my old bits... I think that the current version of i18nprofile.module requires some stuff in 5.0?
In any event, don't know if this should be a patch or not... figured I'd send it in so that you can take a look at it José... :-)
Juan Felipe
Comments
Comment #1
jose reyero commentedThis should be working in latest version, reopen if not
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.