Commit 85cd0ffd authored by mpp's avatar mpp Committed by NickWilde

Issue #2883254 by mpp: Help text not translatable

parent 2dff074c
......@@ -16,7 +16,7 @@ function views_slideshow_cycle_help($route_name, RouteMatchInterface $route_matc
switch ($route_name) {
case 'help.page.views_slideshow_cycle':
if (\Drupal::moduleHandler()->moduleExists('advanced_help')) {
$output = '<p>' . Link::fromTextAndUrl('Click here to view the documentation for Views Slideshow Cycle.', Url::fromRoute('advanced_help.module_index', ['module' => 'views_slideshow_cycle'])->toString()) . '</p>';
$output = '<p>' . Link::fromTextAndUrl(t('Click here to view the documentation for Views Slideshow Cycle.'), Url::fromRoute('advanced_help.module_index', ['module' => 'views_slideshow_cycle'])->toString()) . '</p>';
}
else {
$output = '<p>' . t('Views Slideshow Cycle help can be found by installing and enabling the @advanced_help', ['@advanced_help' => Link::fromTextAndUrl(t('Advanced Help module'), Url::fromUri('http://drupal.org/project/advanced_help'))->toString()]) . '</p>';
......
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