dhtml_menu.admin.inc contains some untranslatable strings

  $options['animation']['speed'] = array(
    '#type' => 'select',
    '#title' => t('Speed'),
    '#options' => array(100 => 'Very Fast (0.1s)', 500 => 'Fast (0.5s)', 1000 => 'Medium (1s)', 1500 => 'Slow (1.5s)', 2000 => 'Very Slow (2s)'),
    '#default_value' => $settings['animation']['speed'],
    '#description' => t('Choose how quickly the menus should expand and collapse.'),
  );

Comments

cburschka’s picture

Version: 7.x-1.0-alpha4 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new1.05 KB

Whoops. Thanks for the heads-up.

Here's a patch for HEAD. This will need to be fixed in 6.x-4.x-dev as well.

cburschka’s picture

Eh; it's been a while since I did this. Of course t() takes an associative array; there's also a syntax error.

cburschka’s picture

... and indentation.

arhak’s picture

if numeric values are (hard coded) constants then variables are not required (unless you're thinking to save some translator's time if you change them in the future)

anyway !seconds is not needed, @seconds seems more appropriate (there is no markup involved)

cburschka’s picture

You're right that the values are unlikely to change, but it leaves that option open with no real downside.

But yeah, @ is the way to go. I usually use either % or ! by reflex, but since this is inside a tag attribute % would be completely wrong.

cburschka’s picture

Status: Needs review » Fixed

I've committed this change to HEAD and to DRUPAL-6--4 (along with a newly generated dhtml_menu.pot template).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.