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
------------------------------------
Issue #1542306 by hass: Fix strings missing translate function wrapper.
Taxonomy Display 7.x-1.0, 2011-10-10
------------------------------------
......
......@@ -113,7 +113,7 @@ class TaxonomyDisplayAssociatedDisplayHandlerViews extends TaxonomyDisplayAssoci
'#options' => $select_options,
'#prefix' => '<div id="replace-td-views-display-field">',
'#suffix' => '</div>',
'#title' => 'View\'s display',
'#title' => t("View's display"),
'#type' => 'select',
);
}
......
......@@ -29,7 +29,7 @@ function taxonomy_display_admin_form(&$form, &$form_state) {
// We require the 'full' #view_mode to configure the taxonomy term page.
if ($form['#view_mode'] == 'default') {
$field = array(
'#title' => 'Term page display',
'#title' => t('Term page display'),
'#type' => 'fieldset',
);
// 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) {
$entity_info = entity_get_info('taxonomy_term');
$view_mode_settings = field_view_mode_settings('taxonomy_term', $form['#bundle']);
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 {
$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;
}
......@@ -54,8 +54,8 @@ function taxonomy_display_admin_form(&$form, &$form_state) {
$stored_settings = taxonomy_display_fetch_taxonomy_display($form['#bundle']);
$form['additional_settings']['taxonomy_display'] = array(
'#description' => 'Configure how the taxonomy term display page should be presented when viewed for this vocabulary.',
'#title' => 'Term page display',
'#description' => t('Configure how the taxonomy term display page should be presented when viewed for this vocabulary.'),
'#title' => t('Term page display'),
'#type' => 'fieldset',
);
$fieldset =& $form['additional_settings']['taxonomy_display'];
......@@ -69,8 +69,8 @@ function taxonomy_display_admin_form(&$form, &$form_state) {
// Add selection for adding taxonomy term core feed to page
$fieldset['add_feed'] = array(
'#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.',
'#title' => 'Include feed',
'#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' => t('Include feed'),
'#type' => 'checkbox',
);
......@@ -196,7 +196,7 @@ function taxonomy_display_field_ui_layouts_validate($form, &$form_state) {
/**
* Helper function; build the admin form for plugins.
*
*
* @param string $type
* Either 'term', 'associated', or 'breadcrumb'.
* @param array $fieldset
......@@ -219,7 +219,7 @@ function _taxonomy_display_admin_form_build_plugin_form($type, &$fieldset, &$for
// Set variables needed based on type
$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;
if (isset($form_state['values']['additional_settings']['taxonomy_display'])) {
......@@ -231,7 +231,7 @@ function _taxonomy_display_admin_form_build_plugin_form($type, &$fieldset, &$for
// Add support for missing plugins.
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.
......@@ -276,7 +276,7 @@ function _taxonomy_display_admin_form_build_plugin_form($type, &$fieldset, &$for
$fieldset[$type . '_display_form'] = array(
'#prefix' => '<div id="replace-' . $type . '-display-form">',
'#suffix' => '</div>',
'#title' => t('!label display options', array('!label' => $options[$selected])),
'#title' => t('@label display options', array('@label' => $options[$selected])),
'#type' => 'fieldset',
);
......
......@@ -168,12 +168,12 @@ function taxonomy_display_permission() {
/**
* Retrieve an array of Taxonomy Display plugins.
*
*
* @param null|string $type
* Only retrieve plugins of a specific type, expected values 'term',
* 'associated', and 'breadcrumb'. By default, NULL, this will return an array
* with all.
*
*
* @return array|void
* 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
......@@ -208,7 +208,7 @@ function taxonomy_display_taxonomy_display_plugins() {
// 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
// for display as the value.
//
//
// Note: All of the class's files are in our module's .info files array so
// that auto loading works.
'associated' => array(
......@@ -431,19 +431,19 @@ function taxonomy_display_taxonomy_vocabulary_update($vocabulary) {
function _taxonomy_display_plugin_types() {
return array(
'term' => array(
'short' => 'term display',
'description' => 'content',
'long' => 'Term display',
'short' => t('term display'),
'description' => t('content'),
'long' => t('Term display'),
),
'associated' => array(
'short' => 'associated content',
'description' => 'associated content',
'long' => 'Associated content display',
'short' => t('associated content'),
'description' => t('associated content'),
'long' => t('Associated content display'),
),
'breadcrumb' => array(
'short' => 'breadcrumb',
'description' => 'breadcrumb',
'long' => 'Breadcrumb display',
'short' => t('breadcrumb'),
'description' => t('breadcrumb'),
'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