WEB-T Drupal module
Automated website translation solution for Drupal websites. This module can pre-translate all translatable entities (articles, pages, comments, tags, etc.), UI and config strings and translate new entities when they are created or updated. Before loading any translatable entity, this module also translates them, if translation in selected language does not exist. It does that by adding/updating entity, UI and config string translations provided by Drupal core localization modules.
Dependencies
Module depends on Drupal built-in localization modules:
- language - provides website language selection functionality;
- content_translation - provides API for Drupal entity (page, article, etc.) translation;
- config_translation - provides API for configuration item translation;
- locale - provides API for user interface item translation.
For machine-translation this module uses either eTranslation or any other MT API integrator compatible MT provider. Machine translation configuration and access key is specified by website administrator in module settings.
Architecture
Setup
- Copy repository contents to a new folder called
webt
, then copy this folder to Drupal website'smodules/custom
folder or create ZIP archive of it and install ZIP viaExtend->Add new module
admin page. - Clear cache by using
Configuration->Performance->Clear all caches
button or by runningdrush cr
command. - Go to
Extend->List
section and underMultilingual
section select 'WEB-T' module, clickInstall
. If asked, confirm installation of module dependencies. - Go to
Configuration->Languages
and add translation languages. - Go to
Configuration->Content language and translation
and enable content translation for all website content elements you want to translate automatically (e.g. Comment, Content, Taxonomy term) by marking them as 'Translatable' and saving settings. - Go to
Configuration->WEB-T settings
and choose MT engine. For eTranslation enter eTranslation API credentials; for Custom provider - specify provider's Base URL and API key. ClickSave
. - Translate all exisiting and translatable elements by selecting target languages and clicking
Translate
in Machine translation section.
Screenshots
Module settings:
License
This module is licensed under the GNU General Public License, version 2 (GPLv2) or later