﻿<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="guide.xsl" type="text/xsl"?>
<guide platform="win mac" title="Using Modify Code Paths To Create a Spanish Translation of Your Document" section="advanced">
  <p>
      If you have both the English and Spanish version of an Acces database module, then you can use the <span class="option">Modify Code Paths</span> option to change from one language to the other.
    </p>
  <div class="info">
      <p>
        The Modify Code Paths option is most useful when there is a one-to-one match between problems in two different
        modules, or two different branches in the database browser. By switching branches, you substitute one group of
        problems with another. This is how you go from English to Spanish or vice versa.
      </p>
      <p>
        Refer to the <a href="!!!" shape="rect">list</a> of database modules compatible with this option.
      </p>
    </div>
  <p>
      When EducAide publishes database modules in English and Spanish, only the beginning of the CodePaths are
      different. For example, a problem in English for Texas Elementary Math has the codepath <span class="codePath">EAS.<b>TEM</b>.5.6.14A.7</span>. The matching problem in Spanish has the codepath <span class="codePath">EAS.<b>TES</b>.5.6.14A.7</span>. Notice the paths differ only between TEM and TES, which happen to be
      the codes for the respective database modules.
    </p>
  <div class="tip">
      <p>
        A quick way to find the codes for database modules is to choose <span class="menu">Help &gt; About
        Acces</span>, then click <span class="option">Program Details</span>.
      </p>
    </div>
  <p>
      This example will use the Texas ES Math Framework, which has a Spanish translation.
    </p>
  <ol>
      <li>
        <p>
          Choose <span class="menu">Edit &gt; Vary Problems</span>.
        </p>
        <p>
          <img class="screenshot-noshadow mac" src="images/varyproblems.png"></img>
        </p>
      </li>
      <li>
        <p>
          Select <span class="option">Modify problem CodePaths</span>. <img class="screenshot mac" src="images/modifycodepaths1.png"></img>
        </p>
      </li>
      <li>In this example, the code for the English version of the framework is <span class="codePath">TEM</span>. The
      code for the Spanish version is <span class="codePath">TES</span>. Enter these values in the appropriate fields,
      as shown below. <img class="screenshot mac" src="images/modifycodepaths2.png"></img>
      </li>
      <li style="list-style: none">
        <p>
          This will perform a simple search-and-replace on the CodePaths of the problems in your document.
        </p>
      </li>
      <li>Select the option <span class="option mac">"All parts"</span><span class="option win">"Entire document"</span> to modify all the problems on your document.
      Alternately, you can modify only the problems in the selected part.
      </li>
      <li style="list-style: none">
        <p>
          <img class="screenshot mac" src="images/modifycodepaths3.png"></img>
        </p>
      </li>
      <li>Click <span class="button">OK</span>.
        <div class="horizontal">
          <div>
            <div>
              <img class="screenshot-noshadow" src="images/modifycodepathsa.png"></img>
            </div>
            <div class="caption">
              Before modifying CodePaths
            </div>
          </div>
          <div>
            <div>
              <img class="screenshot-noshadow" src="images/modifycodepathsb.png"></img>
            </div>
            <div class="caption">
              After modifying CodePaths
            </div>
          </div>
        </div>
      </li>
      <li>Choose <span class="menu">File &gt; Save As</span> to save your document with a different name. Choosing
      <span class="menu">File &gt; Save</span> will replace your original version of the document with the new one.
      </li>
    </ol>
  <div class="warning">
      <p>
        This option can be used to modify CodePaths for any document, but be careful! It is possible to introduce
        invalid CodePaths if you enter incorrect information.
      </p>
    </div>
  <hr>
  </hr>
</guide>