I have a working Zen subtheme but when I enable the module "Block Translation" of the I18N suite, the sidebars won't get rendered correctly. Instead of wrapping the blocks into the sidebar region-divs, the blocks get printed out right after the

. However, the tag receives the correct "two-sidebars" class.

Any idea?

Comments

Herman Hiddema’s picture

Confirm. Brand new Drupal 6.14 installation with a clean copy of zen starterkit. Sidebars are broken with block translation enabled, and fine with block translation disabled. Blocks are getting printed directly, without wrapping sidebar block.

Missing with block translation enabled is:

<div class="region region-sidebar-second column sidebar">
<div class="section">

(same for region-sidebar-first, etc).

kdebaas’s picture

This is the culprit:

/**
 * Implementation of hook theme_registry_alter().
 *
 * Replace theme_blocks with theme_i18nblocks. There may be a better way to do this but
 * I cannot figure out an easier way to build the whole registry entry.
 *
 * Warning: this can mess with themes implementing the _blocks function.
 */
function i18nblocks_theme_registry_alter(&$theme_registry) {
  $theme_registry['blocks'] = $theme_registry['i18nblocks'];
}

(lines 303-313 in i18nblocks.module)

See also #457512: i18n blocks creates conflicts with themes and modules that override the theme_blocks function

kdebaas’s picture

Project: Zen » Internationalization
Version: 6.x-2.0-beta1 » 6.x-1.x-dev
Component: PHP Code » Compatibility
Status: Active » Closed (duplicate)

And now there is a patch available at #457512: i18n blocks creates conflicts with themes and modules that override the theme_blocks function. If you're interested, then please review the patch, so it may be committed soon.

Yuri’s picture

For those still seeking a solution: I had the same theme issues, and it turned out to be bad html in content of one node. See:
http://drupal.org/node/805614#comment-3424966