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.

CommentFileSizeAuthor
#3 1673602-3.patch710 bytesswentel

Comments

swentel’s picture

Status: Active » Closed (fixed)

Fixed in both branches.

jaroslaw.kaminski’s picture

Version: 7.x-1.5 » 7.x-1.6
Status: Closed (fixed) » Active

Hi,
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.

swentel’s picture

Status: Active » Closed (fixed)
StatusFileSize
new710 bytes

You're right, fixed in all branches.

geek-merlin’s picture

Title: Node title labels are not translated » Node title labels are not translated in forms
Version: 7.x-1.6 » 7.x-2.x-dev
Issue summary: View changes
Status: Closed (fixed) » Active

It looks like this is also an issue in ds_forms

aspilicious’s picture

Where?

aspilicious’s picture

Status: Active » Closed (works as designed)

no answers in 7 months.