This is a follow up for the title label issue mentioned in http://drupal.org/node/1550678
In order to have a translated node title label, this:
// Title label.
if ($key == 'title' && $entity_type == 'node') {
$node_type = node_type_get_type($entity);
$field['title'] = $node_type->title_label;
}
needs to be replaced with:
// Title label.
if ($key == 'title' && $entity_type == 'node') {
$node_type = node_type_get_type($entity);
$field['title'] = function_exists('i18n_node_translate_type') ? i18n_node_translate_type($node_type->type, 'title_label') : $node_type->title_label;
}
I think this also applies to the 2.x branch.
Comments
Comment #1
swentel commentedFixed in both branches.
Comment #2
jaroslaw.kaminski commentedHi,
unfortunetly it's not working. I only see colon in title label. When I delete i18n_node_translate_type and leave only $node_type->title_label I see my title label. I use drupal as polish language without translated interface, but when I manually translated label nothing happen.
Comment #3
swentel commentedYou're right, fixed in all branches.
Comment #4
geek-merlinIt looks like this is also an issue in ds_forms
Comment #5
aspilicious commentedWhere?
Comment #6
aspilicious commentedno answers in 7 months.