Commit db5e7690 authored by dakwamine's avatar dakwamine
Browse files

Issue #3262539: Facets Custom Label >> how is translation of these possible

parent 2dab88f5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@ REQUIREMENTS
This module requires the following modules:

 * Facets (https://www.drupal.org/project/facets)
 * Configuration Translation, only if you need translated labels.

 INSTALLATION
------------
@@ -28,6 +29,8 @@ CONFIGURATION
-------------

 * Go to the facet onto which the label processor has to be enabled.
 * Enable the Facets custom label processor.
 * Enable the **Facets custom label processor**.
 * In the configuration form, insert the value mapping in the textarea box.
   Syntax can be found here: https://www.drupal.org/project/facets_custom_label
 * (optional) If you need translated labels, enable the
   **Configuration Translation** module and translate the facet configuration.
+2 −0
Original line number Diff line number Diff line
@@ -24,6 +24,8 @@ function facets_custom_label_help($route_name, RouteMatchInterface $route_match)
      $output .= '<li>' . t('their raw value: machine name or content IDs,') . '</li>';
      $output .= '<li>' . t('their display value: content titles, term names.') . '</li>';
      $output .= '</ul></li></ul>';
      $output .= '<h3>' . t('How to translate labels') . '</h3>';
      $output .= '<p>' . t('If labels require translation, please enable the <em>Configuration Translation</em> module, then translate the facet configuration.') . '</p>';
      $output .= '<h3>' . t('Usage') . '</h3>';
      $output .= '<p>' . t('For complete usage directions and examples, please visit the <a href="@href" title="Link to the module page">module page on drupal.org</a>.', ['@href' => 'https://www.drupal.org/project/facets_custom_label']) . '</p>';
      return $output;