You are here

tmgmt-demo-text.html.twig in Translation Management Tool 8

Default theme implementation TMGMT Demo body text of tmgmt_demo.

Available variables:

  • content_language: Content language URL.
  • languages_url: Languages URL.
  • translatable_nodes: Translatable nodes URL.
  • translate_url: Translate URL.
  • file_translator: File translator URL.
  • tmgmt_local: Tmgmt local URL.

File

modules/demo/templates/tmgmt-demo-text.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation TMGMT Demo body text of tmgmt_demo.
  5. *
  6. * Available variables:
  7. * - content_language: Content language URL.
  8. * - languages_url: Languages URL.
  9. * - translatable_nodes: Translatable nodes URL.
  10. * - translate_url: Translate URL.
  11. * - file_translator: File translator URL.
  12. * - tmgmt_local: Tmgmt local URL.
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. <p>Welcome to the Translation Management Tool Demo module!</p>
  18. <p>The Translation Management Tool (TMGMT) demo module provides the configuration needed for translating predefined content types - <a href="{{ content_language }}">translatable nodes</a>.</p>
  19. <p>It enables three <a href="{{ languages_url }}">languages</a>. Besides English, it supports German and French.</p>
  20. <p>Content translation is enabled by default. This allows users to translate the content on their own. Also, Export / Import File translator enables exporting source data into a file and import the translated in return.</p>
  21. <ul>
  22. <li><span>To get started with the translation, two <a href="{{ translatable_nodes }}">translatable nodes</a> are created. The steps for translation are the following:</span>
  23. <ul>
  24. <li>On the node detail view use the <a href="{{ translate_url }}">"translate" Tab</a>, choose a language and click "Request Translation" to get started.</li>
  25. <li>After submitting the job, the status is changed to "In progress". In case of a machine translator, the translation is immediately returned. The status is then "Needs review".</li>
  26. <li>"In progress" is the state where we are awaiting the translations from the translator.</li>
  27. <li>Once the translations are provided by the translator, we can review the job items (and correct) the translated content. Some translators support feedback cycles. We can send an item that needs a better translation back to the translator with some comments. If the translation is fine, we can accept the job items (or the job). This is when the source items are updated/the translation is created.</li>
  28. <li>The job is finally in the state of being published</li>
  29. </ul>
  30. </li>
  31. </ul>
  32. <ul>
  33. <li><span>In the TMGMT demo module the <a href="{{ file_translator }}">File translator</a> is enabled by default. It allows users to export and import texts via xliff and HTML. The workflow is the following:</span>
  34. <ul>
  35. <li>Submit a job to the File translator. The job is in "active" state.</li>
  36. <li>Export it as HTML/XLIFF format.</li>
  37. <li>Translate the content by editing the XLIFF files in plaintext or with a proper CAT tool.</li>
  38. <li>Import it back on the site.</li>
  39. <li>Review the job items/data items. XLIFF does not support a feedback loop or commenting an item. Improvements/fixings can only be done by the reviewer (or by reimporting the improved XLIFF).</li>
  40. <li>Press save as completed to accept the translation and finish the process.</li>
  41. </ul>
  42. </li>
  43. </ul>
  44. <ul>
  45. <li><span>In the TMGMT demo module the <a href="{{ tmgmt_local }}">Drupal user</a> provider is also enabled by default. It allows to assign translation tasks to the users of the site that have the abilities to translate it (The demo adds all the abilities to all the users). The workflow is the following:</span>
  46. <ul>
  47. <li>Submit a job to the Drupal user provider and select translator for the job. The job is in "active" state.</li>
  48. <li>The user will translate the task. Also the task items can be reviewed.</li>
  49. <li>When the translation is done, the user will set the task as completed.</li>
  50. <li>Review the job items. This translator does not support a feedback loop or commenting an item. Improvements/fixings can only be done by the reviewer.</li>
  51. <li>Press save as completed to accept the translation and finish the process.</li>
  52. </ul>
  53. </li>
  54. </ul>
  55. <p>TMGMT demo also supports translation of paragraphs. To do this, you first need to enable paragraphs_demo and tmgmt_demo after that.</p>
  56. <ul>
  57. <li><span>External translation services can be used for creating a foreign language version of the source text. These are the recommended translators:</span>
  58. <ul>
  59. <li><a href="https://www.drupal.org/project/tmgmt_microsoft">Microsoft</a></li>
  60. <li><a href="https://www.drupal.org/project/tmgmt_google">Google translate</a></li>
  61. <li><a href="https://www.drupal.org/project/tmgmt_mygengo">Gengo</a></li>
  62. <li><a href="https://www.drupal.org/project/tmgmt_oht">One Hour Translation</a></li>
  63. </ul>
  64. </li>
  65. </ul>