Index: imagemenu.module =================================================================== RCS file: /cvs/drupal/contributions/modules/imagemenu/imagemenu.module,v retrieving revision 1.5 diff -u -p -r1.5 imagemenu.module --- imagemenu.module 20 Mar 2007 11:44:07 -0000 1.5 +++ imagemenu.module 9 May 2007 11:29:46 -0000 @@ -138,10 +138,10 @@ function imagemenu_list() { $operations[] = l(t('edit'), 'admin/build/menu/imagemenu/menu/edit/'.$mid); $operations[] = l(t('delete'), 'admin/build/menu/imagemenu/menu/delete/'.$mid); $operations[] = l(t('add item'), 'admin/build/menu/imagemenu/item/add/'.$mid); - $table = 'menu id: '.$mid.''; + $table = ''.t('menu id: ').$mid.''; $table .= theme('item_list', $operations); $rows = imagemenu_build_rows($mid); - if (!$rows) $rows[] = array(array('data' => l('No rows created yet', 'admin/build/menu/imagemenu/item/add/'.$mid), 'colspan' => 3)); + if (!$rows) $rows[] = array(array('data' => l(t('No rows created yet'), 'admin/build/menu/imagemenu/item/add/'.$mid), 'colspan' => 3)); $table .= theme('table', $header, $rows); $output .= theme('box', check_plain($title), $table); } @@ -164,7 +164,7 @@ function imagemenu_build_rows($mid) { } } if (!$menu['enabled']) { - $suffix = '(disabled)'; + $suffix = t('(disabled)'); $tag = 'enable'; } else { @@ -172,7 +172,7 @@ function imagemenu_build_rows($mid) { $tag = 'disable'; } if ($menu['has_children']) $type = $menu['type'] ? 'Yes' : 'No'; - $output[$menu['mid']] = array(array('data' => $prefix.l($menu['title'], $menu['path']).$suffix), array('data' => $type), array('data' => l('edit', 'admin/build/menu/imagemenu/item/add/'.$menu['mid'].'/edit')), array('data' => l('delete', 'admin/build/menu/imagemenu/item/delete/'.$menu['mid'])), array('data' => l($tag, 'admin/build/menu/imagemenu/item/'.$tag.'/'.$menu['mid']))); + $output[$menu['mid']] = array(array('data' => $prefix.l($menu['title'], $menu['path']).$suffix), array('data' => $type), array('data' => l(t('edit'), 'admin/build/menu/imagemenu/item/add/'.$menu['mid'].'/edit')), array('data' => l(t('delete'), 'admin/build/menu/imagemenu/item/delete/'.$menu['mid'])), array('data' => l(t($tag), 'admin/build/menu/imagemenu/item/'.$tag.'/'.$menu['mid']))); } return $output; } @@ -252,7 +252,7 @@ function imagemenu_add_item_form($mid = $form['path'] = array('#type' => 'textfield', '#title' => t('Path'), '#default_value' => $item['path'], - '#description' => t('The path this menu item links to. This can be an internal Drupal path such as %add-node or an external URL such as %drupal. Enter %front to link to the front page.', array('%front' => theme('placeholder', ''), '%add-node' => theme('placeholder', 'node/add'), '%drupal' => theme('placeholder', 'http://drupal.org'))), + '#description' => t('The path this menu item links to. This can be an internal Drupal path such as %add-node or an external URL such as %drupal. Enter %front to link to the front page.', array('%front' => '', '%add-node' => 'node/add', '%drupal' => 'http://drupal.org')), '#required' => TRUE, ); $form['alt'] = array('#type' => 'textfield', @@ -321,7 +321,7 @@ function imagemenu_parents($mid = 0) { } return $output; } - $output[$mid] = ''; + $output[$mid] = t(''); $menus = imagemenu_fetch_rows($mid, TRUE); foreach ($menus as $menu) { $temp = imagemenu_fetch_mid($menu['mid']); @@ -419,7 +419,7 @@ function imagemenu_settings() { $form['admin_settings']['imagemenu_layout'] = array( '#type' => 'select', '#title' => t('Layout'), - '#options' => array('vertical' => 'vertical', 'horizontal' => 'horizontal'), + '#options' => array('vertical' => t('vertical'), 'horizontal' => t('horizontal')), '#default_value' => variable_get('imagemenu_layout', 'vertical'), '#description' => t('The orientation of the menu.'), );