diff --git a/modules/taxonomy/taxonomy.admin.inc b/modules/taxonomy/taxonomy.admin.inc index 4bd58b5..9b6779a 100644 --- a/modules/taxonomy/taxonomy.admin.inc +++ b/modules/taxonomy/taxonomy.admin.inc @@ -250,7 +250,7 @@ function taxonomy_overview_terms(&$form_state, $vocabulary) { return taxonomy_vocabulary_confirm_reset_alphabetical($form_state, $vocabulary->vid); } - drupal_set_title(t('Terms in %vocabulary', array('%vocabulary' => $vocabulary->name))); + drupal_set_title(t('Terms in %vocabulary', array('%vocabulary' => t($vocabulary->name)))); $form = array( '#vocabulary' => (array)$vocabulary, '#tree' => TRUE, @@ -620,7 +620,7 @@ function theme_taxonomy_overview_terms($form) { * Menu callback; return the edit form for a new term after setting the title. */ function taxonomy_add_term_page($vocabulary) { - drupal_set_title(t('Add term to %vocabulary', array('%vocabulary' => $vocabulary->name))); + drupal_set_title(t('Add term to %vocabulary', array('%vocabulary' => t($vocabulary->name)))); return drupal_get_form('taxonomy_form_term' , $vocabulary); } diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 168e289..4860794 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -1362,11 +1362,11 @@ function taxonomy_help($path, $arg) { } switch ($vocabulary->hierarchy) { case 0: - return '
'. t('%capital_name is a flat vocabulary. You may organize the terms in the %name vocabulary by using the handles on the left side of the table. To change the name or description of a term, click the edit link next to the term.', array('%capital_name' => drupal_ucfirst($vocabulary->name), '%name' => $vocabulary->name)) .'
'; + return ''. t('%capital_name is a flat vocabulary. You may organize the terms in the %name vocabulary by using the handles on the left side of the table. To change the name or description of a term, click the edit link next to the term.', array('%capital_name' => t(drupal_ucfirst($vocabulary->name)), '%name' => t($vocabulary->name))) .'
'; case 1: - return ''. t('%capital_name is a single hierarchy vocabulary. You may organize the terms in the %name vocabulary by using the handles on the left side of the table. To change the name or description of a term, click the edit link next to the term.', array('%capital_name' => drupal_ucfirst($vocabulary->name), '%name' => $vocabulary->name)) .'
'; + return ''. t('%capital_name is a single hierarchy vocabulary. You may organize the terms in the %name vocabulary by using the handles on the left side of the table. To change the name or description of a term, click the edit link next to the term.', array('%capital_name' => t(drupal_ucfirst($vocabulary->name)), '%name' => t($vocabulary->name))) .'
'; case 2: - return ''. t('%capital_name is a multiple hierarchy vocabulary. To change the name or description of a term, click the edit link next to the term. Drag and drop of multiple hierarchies is not supported, but you can re-enable drag and drop support by editing each term to include only a single parent.', array('%capital_name' => drupal_ucfirst($vocabulary->name))) .'
'; + return ''. t('%capital_name is a multiple hierarchy vocabulary. To change the name or description of a term, click the edit link next to the term. Drag and drop of multiple hierarchies is not supported, but you can re-enable drag and drop support by editing each term to include only a single parent.', array('%capital_name' => t(drupal_ucfirst($vocabulary->name)))) .'
'; } case 'admin/content/taxonomy/add/vocabulary': return ''. t('Define how your vocabulary will be presented to administrators and users, and which content types to categorize with it. Tags allows users to create terms when submitting posts by typing a comma separated list. Otherwise terms are chosen from a select list and can only be created by users with the "administer taxonomy" permission.') .'
'; diff --git a/sites/all/modules/lexicon/css/lexicon.css b/sites/all/modules/lexicon/css/lexicon.css index 28130aa..8f8ce87 100644 --- a/sites/all/modules/lexicon/css/lexicon.css +++ b/sites/all/modules/lexicon/css/lexicon.css @@ -104,6 +104,7 @@ div.lexicon-letter { } .lexicon-links { + clear: both; text-align: center; background-color: #eeeeff; color: #888888; @@ -115,22 +116,42 @@ div.lexicon-letter { } .lexicon-alphabar-instructions { + clear: both; font-size: 89%; font-style: italic; } .lexicon-admin-links { clear: both; - margin: 0.5em 0 0 3.0em; + margin: 0; +} +.lexicon-admin-links ul { + padding: 0; +} +.lexicon-admin-links li { + list-style: none; + float: left; + margin-bottom: .8em; +} +.lexicon-admin-links li.lexicon_edit, +.lexicon-admin-links li.lexicon_admin { + float: right; + padding: 0 8px 3px; + margin: .5em 0 .5em .5em; + background-color: #ff6600; } - .lexicon-admin-links li a { - padding: 5px; + color: #fff; + padding-right: 5px .8em 5px 5px; +} +.lexicon-admin-links li.lexicon_edit a, +.lexicon-admin-links li.lexicon_admin a { + font-size: 78%; } .lexicon-list dt img { float: left; -} +} .lexicon-list .taxonomy_image_wrapper { width: 70px; @@ -203,7 +224,7 @@ span.hovertip_target { } .lexicon_checkboxes .form-item .description { - clear: both; + clear: both; } .lexicon-detailed { @@ -228,6 +249,34 @@ span.hovertip_target { .block-lexicon { font-size: 89%; + position: relative; +} +.block-lexicon .content { + height: 42px; +} +.block-lexicon input.form-text { + padding-right: 48px; + background: #fff; + font-weight: 300; +} +.block-lexicon button.form-submit { + position: absolute; + padding: 0; + top: 0; + right: 0; + width: 39px; + height: 39px; + color: #3c8dbc; + overflow: hidden; +} +.block-lexicon button.form-submit:hover { + color: #307095; +} +.block-lexicon button.form-submit span { + color: #fff; + display: block; + line-height: 34px; + margin: 0; } .lexicon-block-term-name { diff --git a/sites/all/modules/lexicon/lexicon.module b/sites/all/modules/lexicon/lexicon.module index 81c0fec..3b26637 100644 --- a/sites/all/modules/lexicon/lexicon.module +++ b/sites/all/modules/lexicon/lexicon.module @@ -38,14 +38,6 @@ function lexicon_help($path, $args = array()) { return t('Maintain one or more lexicons on your site.'); break; - case 'lexicon': - if (!$args[1]) { - if (user_access('administer lexicon')) { - return t('Lexicon settings page', array('!url' => url('admin/settings/lexicon'))); - } - } - break; - case 'lexicon_search#noresults': return t('