<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" style="task" id="plugin-translate" xml:lang="zh-HK">

  <info>
    <link type="guide" xref="gedit-plugin-guide#gedit-additional-plugins"/>
    <revision version="1.0" date="2018-03-04" status="review"/>

    <credit type="author">
      <name>Jordi Mas i Hernàndez</name>
      <email its:translate="no">jmas@softcatala.org</email>
    </credit>

    <include xmlns="http://www.w3.org/2001/XInclude" href="legal-plugins.xml"/>

    <desc>Translate text into different languages</desc>
  </info>

  <title>Translate</title>

  <p>The <app>Translate</app> plugin allows you to translate text from <app>gedit</app> using Apertium and Yandex engines.</p>

<section id="enable-translate">
  <title>Enabling and configuring the Translate plugin</title>

  <steps>
    <title>To enable the <app>Translate</app> plugin:</title>
    <item>
      <p>Select <guiseq><gui style="menu">gedit</gui>
      <gui style="menuitem">Preferences</gui>
      <gui style="tab">Plugins</gui></guiseq>.</p>
    </item>
    <item>
      <p>Select <gui style="menuitem">Translate</gui> to enable the
      plugin.</p>
    </item>

    <item>
      <p>Select <gui style="button">Preferences</gui> to configure the translation engine to use and a language pair.</p>
    </item>
    <item>
      <p>In case you use the Yandex translation engine, you need an API key. You can obtain a free key at <link href="https://tech.yandex.com/translate/">Yandex web site</link>.</p>
    </item>
  </steps>

</section>

<section id="use-translate">
  <title>Using the Translate plugin</title>

 <steps>
    <title>To translate a text:</title>
    <item>
      <p>Select the part of text that you would like to translate.</p>
    </item>
    <item>
      <p>Press <keyseq><key>Ctrl</key><key>K</key></keyseq> or use the context menu to translate it.</p>
      <p>The translation appears in the document or in the bottom panel, depending on your configuration.</p>
    </item>
  </steps>

</section>

</page>
