Commit a7f6cefe authored by hass's avatar hass Committed by codycraven
Browse files

Issue #1542306 by hass: Fix strings missing translate function wrapper..

parent ef592fa6
Taxonomy Display 7.x-1.x, YYYY-MM-DD Taxonomy Display 7.x-1.x, YYYY-MM-DD
------------------------------------ ------------------------------------
Issue #1542306 by hass: Fix strings missing translate function wrapper.
Taxonomy Display 7.x-1.0, 2011-10-10 Taxonomy Display 7.x-1.0, 2011-10-10
------------------------------------ ------------------------------------
......
...@@ -113,7 +113,7 @@ class TaxonomyDisplayAssociatedDisplayHandlerViews extends TaxonomyDisplayAssoci ...@@ -113,7 +113,7 @@ class TaxonomyDisplayAssociatedDisplayHandlerViews extends TaxonomyDisplayAssoci
'#options' => $select_options, '#options' => $select_options,
'#prefix' => '<div id="replace-td-views-display-field">', '#prefix' => '<div id="replace-td-views-display-field">',
'#suffix' => '</div>', '#suffix' => '</div>',
'#title' => 'View\'s display', '#title' => t("View's display"),
'#type' => 'select', '#type' => 'select',
); );
} }
......
...@@ -29,7 +29,7 @@ function taxonomy_display_admin_form(&$form, &$form_state) { ...@@ -29,7 +29,7 @@ function taxonomy_display_admin_form(&$form, &$form_state) {
// We require the 'full' #view_mode to configure the taxonomy term page. // We require the 'full' #view_mode to configure the taxonomy term page.
if ($form['#view_mode'] == 'default') { if ($form['#view_mode'] == 'default') {
$field = array( $field = array(
'#title' => 'Term page display', '#title' => t('Term page display'),
'#type' => 'fieldset', '#type' => 'fieldset',
); );
// Find out if full mode is enabled and change the description for term page // Find out if full mode is enabled and change the description for term page
...@@ -37,10 +37,10 @@ function taxonomy_display_admin_form(&$form, &$form_state) { ...@@ -37,10 +37,10 @@ function taxonomy_display_admin_form(&$form, &$form_state) {
$entity_info = entity_get_info('taxonomy_term'); $entity_info = entity_get_info('taxonomy_term');
$view_mode_settings = field_view_mode_settings('taxonomy_term', $form['#bundle']); $view_mode_settings = field_view_mode_settings('taxonomy_term', $form['#bundle']);
if (isset($view_mode_settings['full']['custom_settings'])) { if (isset($view_mode_settings['full']['custom_settings'])) {
$field['#description'] = 'To alter the term page display you need to go to the <em>Taxonomy term page</em> view mode.'; $field['#description'] = t('To alter the term page display you need to go to the <em>Taxonomy term page</em> view mode.');
} }
else { else {
$field['#description'] = 'Enable the <em>Taxonomy term page</em> view mode under the <em>Custom display settings</em> tab to alter the term page display.'; $field['#description'] = t('Enable the <em>Taxonomy term page</em> view mode under the <em>Custom display settings</em> tab to alter the term page display.');
} }
$form['additional_settings']['taxonomy_display'] = $field; $form['additional_settings']['taxonomy_display'] = $field;
} }
...@@ -54,8 +54,8 @@ function taxonomy_display_admin_form(&$form, &$form_state) { ...@@ -54,8 +54,8 @@ function taxonomy_display_admin_form(&$form, &$form_state) {
$stored_settings = taxonomy_display_fetch_taxonomy_display($form['#bundle']); $stored_settings = taxonomy_display_fetch_taxonomy_display($form['#bundle']);
$form['additional_settings']['taxonomy_display'] = array( $form['additional_settings']['taxonomy_display'] = array(
'#description' => 'Configure how the taxonomy term display page should be presented when viewed for this vocabulary.', '#description' => t('Configure how the taxonomy term display page should be presented when viewed for this vocabulary.'),
'#title' => 'Term page display', '#title' => t('Term page display'),
'#type' => 'fieldset', '#type' => 'fieldset',
); );
$fieldset =& $form['additional_settings']['taxonomy_display']; $fieldset =& $form['additional_settings']['taxonomy_display'];
...@@ -69,8 +69,8 @@ function taxonomy_display_admin_form(&$form, &$form_state) { ...@@ -69,8 +69,8 @@ function taxonomy_display_admin_form(&$form, &$form_state) {
// Add selection for adding taxonomy term core feed to page // Add selection for adding taxonomy term core feed to page
$fieldset['add_feed'] = array( $fieldset['add_feed'] = array(
'#default_value' => $stored_settings['add_feed'], '#default_value' => $stored_settings['add_feed'],
'#description' => 'Drupal, by default, includes a feed of content referencing the term, by unchecking this you can prevent the feed from being added.', '#description' => t('Drupal, by default, includes a feed of content referencing the term, by unchecking this you can prevent the feed from being added.'),
'#title' => 'Include feed', '#title' => t('Include feed'),
'#type' => 'checkbox', '#type' => 'checkbox',
); );
...@@ -196,7 +196,7 @@ function taxonomy_display_field_ui_layouts_validate($form, &$form_state) { ...@@ -196,7 +196,7 @@ function taxonomy_display_field_ui_layouts_validate($form, &$form_state) {
/** /**
* Helper function; build the admin form for plugins. * Helper function; build the admin form for plugins.
* *
* @param string $type * @param string $type
* Either 'term', 'associated', or 'breadcrumb'. * Either 'term', 'associated', or 'breadcrumb'.
* @param array $fieldset * @param array $fieldset
...@@ -219,7 +219,7 @@ function _taxonomy_display_admin_form_build_plugin_form($type, &$fieldset, &$for ...@@ -219,7 +219,7 @@ function _taxonomy_display_admin_form_build_plugin_form($type, &$fieldset, &$for
// Set variables needed based on type // Set variables needed based on type
$select_field_title = t($plugin_types[$type]['long']); $select_field_title = t($plugin_types[$type]['long']);
$select_field_description = t('Select which plugin you would like to display the term\'s ' . $plugin_types[$type]['description']); $select_field_description = t("Select which plugin you would like to display the term's %plugin_types_description.", array('%plugin_types_description' => $plugin_types[$type]['description']));
$values = NULL; $values = NULL;
if (isset($form_state['values']['additional_settings']['taxonomy_display'])) { if (isset($form_state['values']['additional_settings']['taxonomy_display'])) {
...@@ -231,7 +231,7 @@ function _taxonomy_display_admin_form_build_plugin_form($type, &$fieldset, &$for ...@@ -231,7 +231,7 @@ function _taxonomy_display_admin_form_build_plugin_form($type, &$fieldset, &$for
// Add support for missing plugins. // Add support for missing plugins.
if (isset($stored_settings[$type . '_plugin_missing'])) { if (isset($stored_settings[$type . '_plugin_missing'])) {
$options = array_merge(array('missing' => t('-- Missing plugin --')), $options); $options = array_merge(array('missing' => t('- Missing plugin -')), $options);
} }
// Discover which option should be selected from the display plugins. // Discover which option should be selected from the display plugins.
...@@ -276,7 +276,7 @@ function _taxonomy_display_admin_form_build_plugin_form($type, &$fieldset, &$for ...@@ -276,7 +276,7 @@ function _taxonomy_display_admin_form_build_plugin_form($type, &$fieldset, &$for
$fieldset[$type . '_display_form'] = array( $fieldset[$type . '_display_form'] = array(
'#prefix' => '<div id="replace-' . $type . '-display-form">', '#prefix' => '<div id="replace-' . $type . '-display-form">',
'#suffix' => '</div>', '#suffix' => '</div>',
'#title' => t('!label display options', array('!label' => $options[$selected])), '#title' => t('@label display options', array('@label' => $options[$selected])),
'#type' => 'fieldset', '#type' => 'fieldset',
); );
......
...@@ -168,12 +168,12 @@ function taxonomy_display_permission() { ...@@ -168,12 +168,12 @@ function taxonomy_display_permission() {
/** /**
* Retrieve an array of Taxonomy Display plugins. * Retrieve an array of Taxonomy Display plugins.
* *
* @param null|string $type * @param null|string $type
* Only retrieve plugins of a specific type, expected values 'term', * Only retrieve plugins of a specific type, expected values 'term',
* 'associated', and 'breadcrumb'. By default, NULL, this will return an array * 'associated', and 'breadcrumb'. By default, NULL, this will return an array
* with all. * with all.
* *
* @return array|void * @return array|void
* If an expected value is provided for $type, or no value is provided, an * If an expected value is provided for $type, or no value is provided, an
* array will be returned. If an unexpected value is provided nothing will be * array will be returned. If an unexpected value is provided nothing will be
...@@ -208,7 +208,7 @@ function taxonomy_display_taxonomy_display_plugins() { ...@@ -208,7 +208,7 @@ function taxonomy_display_taxonomy_display_plugins() {
// In the array's sencondary arrays, provide the implementing class // In the array's sencondary arrays, provide the implementing class
// name of your handler as the keys and the text to be displayed to the user // name of your handler as the keys and the text to be displayed to the user
// for display as the value. // for display as the value.
// //
// Note: All of the class's files are in our module's .info files array so // Note: All of the class's files are in our module's .info files array so
// that auto loading works. // that auto loading works.
'associated' => array( 'associated' => array(
...@@ -431,19 +431,19 @@ function taxonomy_display_taxonomy_vocabulary_update($vocabulary) { ...@@ -431,19 +431,19 @@ function taxonomy_display_taxonomy_vocabulary_update($vocabulary) {
function _taxonomy_display_plugin_types() { function _taxonomy_display_plugin_types() {
return array( return array(
'term' => array( 'term' => array(
'short' => 'term display', 'short' => t('term display'),
'description' => 'content', 'description' => t('content'),
'long' => 'Term display', 'long' => t('Term display'),
), ),
'associated' => array( 'associated' => array(
'short' => 'associated content', 'short' => t('associated content'),
'description' => 'associated content', 'description' => t('associated content'),
'long' => 'Associated content display', 'long' => t('Associated content display'),
), ),
'breadcrumb' => array( 'breadcrumb' => array(
'short' => 'breadcrumb', 'short' => t('breadcrumb'),
'description' => 'breadcrumb', 'description' => t('breadcrumb'),
'long' => 'Breadcrumb display', 'long' => t('Breadcrumb display'),
), ),
); );
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment