When using the i18ncontent module (part of i18n module), it is possible to translate the labels of fields of content types. These translations are not shown in the CCK Blocks, because the t() function is not used to display the block subject.

This minor change solves it:

  /* original line 54, does not use t() on content label for block subject 
  block['subject'] = $fields[$delta]['widget']['label'] ? $fields[$delta]['widget']['label'] : $delta;
  */

  // replace with this, using t():
  $block['subject'] = t($fields[$delta]['widget']['label'] ? $fields[$delta]['widget']['label'] : $delta);

CommentFileSizeAuthor
#2 cck-blocks-translatesubject-DEV-316166-3.patch792 bytesAnonymous (not verified)

Comments

ali_b’s picture

THANKS

Anonymous’s picture

Version: 6.x-1.1 » 6.x-1.x-dev
Assigned: Unassigned »
Status: Active » Needs review
StatusFileSize
new792 bytes

Please test the attached patch. It will get into the -dev version, if it works.

Anonymous’s picture

To make testing easier, this patch is contained in tomorrows -dev release.

Anonymous’s picture

Status: Needs review » Fixed

seems to be fixed, as there are no further comments.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.