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.
I'm new to panopoly so excuse me if I'm wrong, but...
There are several places in panopoly_widgets.module where default language and settings are assumed. For example function panopoly_widgets_ctools_content_subtype_alter(&$subtype, &$plugin)
82: if ($plugin['module'] == 'menu_block' && $subtype['menu_title'] == 'Main menu')
108: if ($subtype['category'] == 'Node' || $subtype['category'] == 'Entity') {
and so on
Main menu title can be easily changed, $subtype['category'] and other variables get translated (localized) before they're compared to the hardcoded default/english values.
Comments
Comment #1
dsnopekHrm, yes. Do you know where the translations come from if customized? For example, would it be enough to change the referenced code to:
(ie. adding
t()
around the string values?)In the case of the menu_block, it might be possible to get a machine name to reference too. But with the category, I think those are only ever human-readable values.