Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedUpdate CTools to latest -dev.
Comment #2
greenavus CreditAttribution: greenavus commentedSorry for the late response. I have updated ctools to the latest dev version and also panels and it is now working.
Comment #3
greenavus CreditAttribution: greenavus commentedComment #4
mducharme CreditAttribution: mducharme commentedThis 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
Comment #5
skyredwangThis bug comes back
Chaos tool suite (ctools) 7.x-1.3
Panels 7.x-3.3
Internationalization 7.x-1.10
Comment #6
skyredwangWith 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
Comment #7
dshields CreditAttribution: dshields commentedthanks, skyredwang, for testing the different versions and spelling it out like that.
I'm finding the very same behaviour..
Comment #8
Kojo Unsui CreditAttribution: Kojo Unsui commentedI 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
Comment #9
kopeboy CreditAttribution: kopeboy commentedA 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).
Comment #10
nmalinoski CreditAttribution: nmalinoski commentedOdd. 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
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 thecheck_plain()
call int()
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 inblock.module
? Is there a particular languagetitle
supposed to be?Comment #11
bwaindwain CreditAttribution: bwaindwain as a volunteer commentedMaybe try setting the i18n_string_translate_langcode_XX variable.
see http://www.drupalcontrib.org/api/drupal/contributions%21i18n%21i18n_stri...