Hi, I am using a translated block (setting All languages (Translatable) in the block properties) but using pathfilter in the translation does not seem to work.

Can you please test and help me to find out if this is a pathfilter issue or a more general drupal issue?

Steps to replicate my problem on a multilingual site:

  1. Add a new translatable block (setting All languages (Translatable) in the block properties)
  2. Add a pathfilter pattern inside the block in the default language version
  3. Go to admin/build/translate and translate the block into another language keeping the pathfilter pattern
  4. Put the block in a region so you can see it

What happens is that, even when we see the translated version on the page, the filter is applied to the original version. You can verify this by printing out the $text variable inside pathfilter_filter():

drupal_set_message('<pre>' . var_export($text, TRUE) . '</pre>', 'warning');

Thanks,
Antonio

Comments

ao2’s picture

After some investigations, it looks like the problem relies in block/i18nblock: when check_markup() is invoked in block_block, all the filters are applied to the original version of the block, not to the translation.

Closing the issue here and opening one regarding blocks.

Thanks,
Antonio.

ao2’s picture