The region title from a "bootstrap panel" style set on a region does not seem to be translatable.

Here are my steps:

  1. Install a fresh install of the WxT distro
  2. I created a panel page in page manager, with any layout.
  3. I then added some panes to a region.
  4. I then set the region to be "Bootstrap Panel" and set the Region title.

The region title does not seem to be translatable.

Any help would be appreciated !

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aastrong created an issue. See original summary.

natew’s picture

Status: Active » Postponed (maintainer needs more info)

Is this still an issue in the latest?

joel_osc’s picture

Status: Postponed (maintainer needs more info) » Active

I checked this recently and yes it is still an issue.

natew’s picture

I looked into this while waiting for some CI tests. I was able to recreate and doing a little investigation it appears that this is part of wetkit_theme. If I wrap the region_title on line 87 of /wetkit_theme/modules/wetkit_bootstrapx/plugins/styles/bootstrap_styles.inc (theme function) and save the panel page. I then see the title in the translate interface, can add the translation, and see it on the page.

'region_title' => !empty($settings['region_title']) ? t($settings['region_title']) : '',

However, I am not sure if this is the right place for the translation.

joel_osc’s picture

Interesting... I can run with this issue a bit from there. It should really be translated using i18n_string instead of the t function. Nice work.

joseph.olstad’s picture

still need to patch this

joseph.olstad’s picture

new patch

joseph.olstad’s picture

Status: Active » Needs review
joseph.olstad’s picture

I ended up doing a hook form alter to fix this by adding code in a custom module

joseph.olstad’s picture

Oh ya the above patch still good