Drupal

With Smartcat and the TMGMT connector, you can send content from Drupal to Smartcat for translation, manage the translations in your Smartcat account, and then send them back to Drupal.

What you need

  • TMGMT module
  • Smartcat plugin

To install the TMGMT module:

1. Download the ZIP-archive or copy the tar.gz download link from the official website.
2. Enable the Update Manager Module in the Admin panel of your Drupal website by ticking the relevant box.

Drupal1.png

3. Select Add a new module and paste the link into the archive/upload the archive into the window that opens.

Drupal2.png

4. Choose Enable recently added modules from the Next Steps list and select the modules used by TMGMT in the Translation Management section. Click Proceed.

Drupal_3.png

Select the languages you want to work with in the Language and Region settings of your website.

 

To install the Smartcat plugin:

1. Download the ZIP-archive or copy the tar.gz download link from the official website.
2. Add it to your website as a new module as described above.
3. Enable the Smartcat Translator by ticking the relevant box in the Translation Management section.

Setting up the integration


In your Smartcat account:
1. Navigate to Settings- >API on the left-hand side menu to generate an API key.

2. Click Create New Key to open the following dialog:

Drupal4.png

3. Copy the API key as well as your account ID.


On your Drupal website:
1. Navigate to the Providers tab in the Translations section of your Drupal website and select Smartcat.
2. Paste your API key and the account ID into the corresponding sections, and select your preferred server.

3. Click Save.

The translation process


1. Navigate to Structure -> Content Types and select Operations -> Edit for each content type you want to translate.

Drupal5.png
2. Navigate to the Language settings tab and select Enable translation and Show language selector for these content types. 

Drupal6.png
3. The selected sources will be available in the Sources section of your Providers tab.

Drupal7.png

4. Tick the ones you want to translate right away, select the source and target languages and click Request translation.
5. Select Smartcat as your translation provider and submit the job*.

*Please note that a job is created for each target language. To translate one text into several languages at once, tick the relevant box.

Drupal8.png

6. Smartcat will create a project for each job you submit. These are also available in the Jobs section of your Drupal website. You can monitor the progress of translations in the Translation Job Messages.

Drupal9.png

Drupal10.png

7. To complete the job, approve all the selected segments in Smartcat.

Screenshot_4.png

8. To push the translations back, enter the relevant job on your Drupal website and click Download translations.
9. Enter the job, approve the translations and click Publish. The target language version of your article will be generated and published.

Translating custom fields

1. Navigate to the Content types section of your website’s Structure, and add a new field for the material you want to edit.

Screenshot_3.png

2. Select the type of field, e.g. plain text, list or image.
3. Fill in the rest of the data, e.g. Alt-text, category, or tags, and click Save.

Screenshot_2.png
4. Return to the Configuration section and tick the fields you want to translate, e.g. title, tags, etc.* and click Save. If you tick no fields, only the title will be translated.
*Please make sure the fields you select can be translated.

5. Submit the material for translation as described above. Review the translations in the Editor* and push them back to Drupal.
*The only field that can’t be translated for now is the Category field as it’s uploaded from Drupal as a numeric value.


 

Was this article helpful?

Do you need a human-assisted guidance? 🙌

Request a demo