On my website www.wellness-rooms.com, i am using the internationalization module to translate content. On the home page, i have blocks in panels but when i click on the translation flag, the content is translated but the block title isnt. All blocks in panels are set to system block and to use original block title.

Does anyone know what the issue could be?

Comments

merlinofchaos’s picture

Status: Active » Closed (duplicate)

Update CTools to latest -dev.

greenavus’s picture

Status: Closed (duplicate) » Active

Sorry for the late response. I have updated ctools to the latest dev version and also panels and it is now working.

greenavus’s picture

Status: Active » Closed (fixed)
mducharme’s picture

Component: Miscellaneous » Mini panels
Status: Closed (fixed) » Active

This issue is still an active issue for Blocks placed in Mini Panels. Same description as originally posted. The block alone is translated when placed in a region but the Mini Panel containing the same block shows the untranslated title.

Ctools: 7.x-1.3+4-dev
Panels: 7.x-3.3
i18n: 7.x-1.10

skyredwang’s picture

Component: Mini panels » Panel pages

This bug comes back

Chaos tool suite (ctools) 7.x-1.3
Panels 7.x-3.3
Internationalization 7.x-1.10

skyredwang’s picture

Project: Panels » Internationalization
Version: 7.x-3.3 » 7.x-1.10
Component: Panel pages » Blocks

With fresh install, I have tested

1. title translation doesn't work
Chaos tool suite (ctools) 7.x-1.2, 7.x-1.3
Panels 7.x-3.3
Internationalization 7.x-1.8, 7.x-1.10

2. title translation works!
Chaos tool suite (ctools) 7.x-1.3
Panels 7.x-3.3
Internationalization 7.x-1.7

Therefore, this bug is introduced in 1.8

dshields’s picture

thanks, skyredwang, for testing the different versions and spelling it out like that.
I'm finding the very same behaviour..

Kojo Unsui’s picture

I have same behaviour with blocks and views blocks (I don't have Panels installed). So this might not be related with Panels.
I tried :
Ctools: 7.x-1.2, 7.x-1.3, 7.x-1.3+4-dev
Internationalization 7.x-1.7, 7.x-1.8, 7.x-1.10

Still the same :-(
Have a look maybe at this related post : https://drupal.org/node/1975768

kopeboy’s picture

A fix on this? I'm having the same problem as #6.
Blocks are translated if placed in panels, but they are not if placed in mini panels (then in Panels).

nmalinoski’s picture

Issue summary: View changes

Odd. I'm having this issue, but I'm not using Panels at all. Drupal 7.43, Internationalization 7.x-1.13.

Block title override is set through Configuration > Blocks > Edit Block, but that override is never added to the string table. Unless I'm looking at a different bug with similar symptoms, this seems like it could be a bug in Core. Sadly, I'm not familiar enough with Core or the block module to figure out where t() should be called and isn't.

Edit: modules/block/block.module:939

        if ($block->title) {
          // Check plain here to allow module generated titles to keep any
          // markup.
          $block->subject = $block->title == '<none>' ? '' : check_plain($block->title);
        }
        if (!isset($block->subject)) {
          $block->subject = '';
        }

I think this is where it would be set, but I'm not entirely sure what else it could affect further out. $block->subject is already translated at this point, so it seems reasonable to encapsulate the check_plain() call in t() thusly:
modules/block/block.module:942
$block->subject = $block->title == '<none>' ? '' : t(check_plain($block->title));

This works in my limited scenario, but I'm being told that blocks can set title as well. Would that occur before or after this code in block.module? Is there a particular language title supposed to be?

bwaindwain’s picture

Maybe try setting the i18n_string_translate_langcode_XX variable.

see http://www.drupalcontrib.org/api/drupal/contributions%21i18n%21i18n_stri...