Commit f77b7106 authored by catch's avatar catch
Browse files

Issue #1966514 by Sutharsan, ivansf: Fixed Do not use \' in translatable strings.

parent 434498c3
...@@ -37,7 +37,7 @@ public function buildOptionsForm(&$form, &$form_state) { ...@@ -37,7 +37,7 @@ public function buildOptionsForm(&$form, &$form_state) {
$form['reduce_duplicates'] = array( $form['reduce_duplicates'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('Reduce duplicates'), '#title' => t('Reduce duplicates'),
'#description' => t('This filter can cause items that have more than one of the selected options to appear as duplicate results. If this filter causes duplicate results to occur, this checkbox can reduce those duplicates; however, the more terms it has to search for, the less performant the query will be, so use this with caution. Shouldn\'t be set on single-value fields, as it may cause values to disappear from display, if used on an incompatible field.'), '#description' => t("This filter can cause items that have more than one of the selected options to appear as duplicate results. If this filter causes duplicate results to occur, this checkbox can reduce those duplicates; however, the more terms it has to search for, the less performant the query will be, so use this with caution. Shouldn't be set on single-value fields, as it may cause values to disappear from display, if used on an incompatible field."),
'#default_value' => !empty($this->handler->options['reduce_duplicates']), '#default_value' => !empty($this->handler->options['reduce_duplicates']),
'#weight' => 4, '#weight' => 4,
); );
......
...@@ -859,11 +859,10 @@ public function buildOptionsForm(&$form, &$form_state) { ...@@ -859,11 +859,10 @@ public function buildOptionsForm(&$form, &$form_state) {
$this->documentSelfTokens($options[t('Fields')]); $this->documentSelfTokens($options[t('Fields')]);
// Default text. // Default text.
$output = t('<p>You must add some additional fields to this display before using this field. These fields may be marked as <em>Exclude from display</em> if you prefer. Note that due to rendering order, you cannot use fields that come after this field; if you need a field not listed here, rearrange your fields.</p>'); $output = '<p>' . t('You must add some additional fields to this display before using this field. These fields may be marked as <em>Exclude from display</em> if you prefer. Note that due to rendering order, you cannot use fields that come after this field; if you need a field not listed here, rearrange your fields.') . '</p>';
// We have some options, so make a list. // We have some options, so make a list.
if (!empty($options)) { if (!empty($options)) {
$output = t('<p>The following tokens are available for this field. Note that due to rendering order, you cannot use fields that come after this field; if you need a field not listed here, rearrange your fields. $output = '<p>' . t("The following tokens are available for this field. Note that due to rendering order, you cannot use fields that come after this field; if you need a field not listed here, rearrange your fields. If you would like to have the characters '[' and ']' use the html entity codes '%5B' or '%5D' or they will get replaced with empty space.") . '</p>';
If you would like to have the characters \'[\' and \']\' use the html entity codes \'%5B\' or \'%5D\' or they will get replaced with empty space.</p>');
foreach (array_keys($options) as $type) { foreach (array_keys($options) as $type) {
if (!empty($options[$type])) { if (!empty($options[$type])) {
$items = array(); $items = array();
......
...@@ -56,7 +56,7 @@ public function buildForm(array $form, array &$form_state) { ...@@ -56,7 +56,7 @@ public function buildForm(array $form, array &$form_state) {
$form['basic']['ui_show_display_embed'] = array( $form['basic']['ui_show_display_embed'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('Show the embed display in the ui.'), '#title' => t('Show the embed display in the ui.'),
'#description' => t('Allow advanced user to use the embed view display. The plugin itself works if it\'s not visible in the ui'), '#description' => t("Allow advanced user to use the embed view display. The plugin itself works if it's not visible in the ui"),
'#default_value' => $config->get('ui.show.display_embed'), '#default_value' => $config->get('ui.show.display_embed'),
); );
......
Markdown is supported
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