Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 7621ec88 authored by Davis Ragels's avatar Davis Ragels
Browse files

WEB-T Drupal plugin release version

parent 65ae75c7
No related branches found
No related tags found
No related merge requests found
......@@ -17,20 +17,19 @@ class AboutTabController extends ControllerBase {
*/
public function content() {
$about_heading = t( 'About WEB-T module' );
$about_content = t( 'WEB-T is a module that allows you to translate your Drupal website content using machine translation. It comes with a default translation provider, eTranslation, but can be configured to use custom providers' );
$learn_more = t( 'Learn more' );
$learn_more_link = 'https://comm-ewcms-wbt-tools.prd.fpfis.tech.ec.europa.eu/';
$about_content = t( 'WEB-T is a module that allows you to translate your Drupal website content using machine translation. It comes with a default translation provider, eTranslation, but can be configured to use custom providers.' );
$configure_content = new FormattableMarkup(
t( "See how to <a target='_blank' href='@link'>configure and use this plugin</a>." ),
array(
'@link' => $learn_more_link,
'@link' => 'https://website-translation.language-tools.ec.europa.eu/solutions/drupal_en',
)
);
$more_info_heading = t( 'More information' );
$more_info_content = t( 'WEB-T is a part of European Multilingual Web (EMW) project by EC' );
$more_info_link = 'https://comm-ewcms-wbt-tools.prd.fpfis.tech.ec.europa.eu/';
$learn_more = t( 'Learn more' );
$learn_more_link = 'https://website-translation.language-tools.ec.europa.eu/web-t-connecting-languages-0_en';
$asset_manager = \Drupal::service( 'webt.asset_manager' );
$ec_logotype_url = $asset_manager->getAssetUrl( 'images/ec_logotype.svg' )->toString();
......@@ -39,14 +38,14 @@ class AboutTabController extends ControllerBase {
$text = "
<h5>$about_heading</h5>
<p>
$about_content (<a target='_blank' href='$learn_more_link'>$learn_more</a>).
$about_content
</p>
<p>
$configure_content
</p>
<h5>$more_info_heading</h5>
<p>
$more_info_content (<a target='_blank' href='$more_info_link'>$more_info_link</a>).
$more_info_content (<a target='_blank' href='$learn_more_link'>$learn_more</a>).
</p>
<p>
<img alt='EC logotype' class='logotypes' src='$ec_logotype_url' />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment