Already translated node types get translated again, making already translated strings show up in the database.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Do you know where in core this translation happens? I tried to find a t() function but I couldn't figure that out.

Chris Matthews’s picture

Version: 7.x-3.5 » 7.x-3.x-dev
Issue summary: View changes
Status: Needs review » Needs work
Issue tags: +Needs reroll

The 6 year old patch to views_handler_field_node_type.inc and views_handler_filter_node_type.inc does not apply to the latest views 7.x-3.x-dev and if still applicable needs to be rerolled.

Checking patch modules/node/views_handler_field_node_type.inc...
error: while searching for:
    */
  function render_name($data, $values) {
    if ($this->options['machine_name'] != 1 && $data !== NULL && $data !== '') {
      return t($this->sanitize_value(node_type_get_name($data)));
    }
    return $this->sanitize_value($data);
  }

error: patch failed: modules/node/views_handler_field_node_type.inc:37
error: modules/node/views_handler_field_node_type.inc: patch does not apply
Checking patch modules/node/views_handler_filter_node_type.inc...
Hunk #1 succeeded at 21 (offset 4 lines).
Andrew Answer’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
1.24 KB

Patch rerolled.