Steps to reproduce the problem

  1. Create two blocks in "admin/build/block".
  2. Edit these blocks and make sure they have a title.
  3. Create a multilingual block for these two blocks.
  4. Enable the multilingual block : the title will not appear for any language.

Some analysis
Title management of blocks generated by block.module changed in Drupal 5 as the title can be now overriden by the administrator.

See this commit for details:
http://cvs.drupal.org/viewcvs/drupal/drupal/modules/block/block.module?r...

The problem is when i18nblocks_block() invokes block_block(), this function now only returns the block 'content' (not the 'subject').

The attached patch retrieves the title manually. I do not see a better way to workaround this issue.

CommentFileSizeAuthor
i18nblocks_module_01.patch960 bytesPierreM-1

Comments

slaffka’s picture

I had the same problem. I downloaded this patch and manually changed the strings in my code (vs. messing up with the patch software on Windows box).

The patch worked for me: I can see the titles passed from language-depended blocks to the multilingual block.

jose reyero’s picture

Version: 5.x-1.x-dev » 5.x-2.0
Status: Needs review » Fixed

The i18nblocks module has been completely reworked and this should not be an issue anymore. Thanks for the patch though.

Anonymous’s picture

Status: Fixed » Closed (fixed)