Links are misconfigured and untranslatable on

admin/appearance/settings/bootstrap

if looks like this:
bootstrap setting misconfiguration

It's because the way links are generated:

  $form['general']['buttons']['bootstrap_button_colorize'] = array(
    '#type' => 'checkbox',
    '#title' => t('Colorize Buttons'),
    '#default_value' => bootstrap_setting('button_colorize', $theme),
    '#description' => t('Adds classes to buttons based on their text value. See: <a href="!bootstrap_url" target="_blank">Buttons</a> and <a href="!api_url" target="_blank">hook_bootstrap_colorize_text_alter()</a>', array(
      '!bootstrap_url' => 'http://getbootstrap.com/css/#buttons',
      '!api_url' => 'http://drupalcode.org/project/bootstrap.git/blob/refs/heads/7.x-3.x:/bootstrap.api.php#l13',
    )),
  );
  $form['general']['buttons']['bootstrap_button_iconize'] = array(
    '#type' => 'checkbox',
    '#title' => t('Iconize Buttons'),
    '#default_value' => bootstrap_setting('button_iconize', $theme),
    '#description' => t('Adds icons to buttons based on the text value. See: <a href="!api_url" target="_blank">hook_bootstrap_iconize_text_alter()</a>', array(
      '!api_url' => 'http://drupalcode.org/project/bootstrap.git/blob/refs/heads/7.x-3.x:/bootstrap.api.php#l37',
    )),
  );

Comments

alvar0hurtad0 created an issue. See original summary.

alvar0hurtad0’s picture

Assigned: alvar0hurtad0 » Unassigned
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new47.91 KB
new3.69 KB

Here's the patch,

now it looks in this way:

bootstrap links fixed

  • alvar0hurtad0 authored bc2938d on 8.x-3.x
    Issue #2578615 by alvar0hurtad0: Links misconfiguration on theme...
neardark’s picture

Status: Needs review » Fixed

Merged.

markhalliwell’s picture

Version: 8.x-3.x-dev » 7.x-3.x-dev
Status: Fixed » Patch (to be ported)

This needs to be backported

dalker’s picture

I´m with alvar0hurtad0 and we´ve checked that the problem is also solved in drupal 7

dalker’s picture

Status: Patch (to be ported) » Needs review

Status changed

markhalliwell’s picture

Version: 7.x-3.x-dev » 8.x-3.x-dev
Status: Needs review » Closed (fixed)
markhalliwell’s picture

FYI: this issue should not have been committed, see #2611770-4: Errors User error: Invalid placeholder and subsequent patch that follows.