<?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="gtr-create-tm" xml:lang="sl">

  <info>
    <link type="guide" xref="index#gtr-tm" group="first"/>
    <link type="seealso" xref="gtr-use-delete-entry"/>
    <link type="seealso" xref="gtr-shortcut-keys"/>
           
    <revision pkgversion="2.91.6" date="2013-06-18" status="review"/>
   <credit type="author copyright">
      <name>Radina Matic</name>
      <email its:translate="no">radina.matic@gmail.com</email>
      <years>2013</years>
    </credit>
    <credit type="copyright editor">
      <name/>
      <email its:translate="no"/>
      <years/>
    </credit>

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

  <title>Build Translation Memory</title>

  <p>With <app>Gtranslator</app> you can start with a blank translation memory (TM), and each time you translate a string it will be added as a new entry in the TM database.</p>
  
  <p>You can also build the TM by importing strings from an already existing PO file (for example one that has been created for the previous version of the program or web application that you are working on). That way, if there are similar strings in the PO file that you are working on, <app>Gtranslator</app> will display them in the TM panel and you can choose to use them as it is, or change/adapt them for the string you are translating.</p>
 
<note style="warning">
  <p>To be able to view the <gui>Translation Memory</gui> panel, you need to activate the <em style="strong">Translation Memory plugin</em>: click the <gui>Gtranslator</gui> app menu in the top bar, select <guiseq><gui>Preferences</gui><gui>Plugins</gui></guiseq> tab, and activate the TM plugin check box.</p>
</note> 

<figure>
  <title>Gtranslator TM panel</title>
  <desc> </desc>
 <media type="image" mime="image/png" src="figures/gtranslator_tm_strings.png"/>
</figure>

<p>To create <gui>Translation Memory</gui> from an existing PO file:</p>

<list type="numbered">
      <item><p>In the main Gtranslator menu go to <guiseq><gui>Tools</gui><gui>Build Translation Memory</gui></guiseq>.</p></item>
      <item><p>Select the folder where the PO files are stored, and click the <gui>Add to Database</gui> button.</p></item>
      <item><p>Click the <gui>Close</gui> button to finish.</p></item>
</list>

<figure>
  <title>Gtranslator TM manager</title>
  <desc> </desc>
 <media type="image" mime="image/png" src="figures/tm-manager.png"/>
</figure>

</page>
