<?xml version="1.0" encoding="Shift_JIS"?>

<document>

 <properties>
  <title>Migration To Velocity</title>
  <author email="jvanzyl@locus.apache.org">Velocity Documentation Team</author>
  <translator>熊坂祐二</translator>
  <translator>高橋達男</translator>
  <translator>羽生田恒永</translator>
  <original>migration</original>
 </properties>

<body>

<section name="Converting Templates" alias="テンプレート変換">

<primary>
<p>
    Legacy documents are the bane of any software migration. The
    Velocity Team has tried to ensure that existing templates can be
    converted for use within Velocity in as painless a manner as
    possible.
</p>
</primary>
<p>
既存の文書は、どんなソフトウェアの移行でも頭痛の種です。
Velocity チームは、既存のテンプレートを Velocity で使えるように
変換することを、できるだけ簡単に、そして確実にしようと試みました。
</p>

<primary>
<p>
    Currently there is only a WebMacro to Velocity template converter,
    but there are plans for a Tea to Velocity template converter, and a
    FreeMarker to Velocity template converter.
</p>
</primary>
<p>
現在のところ、WebMacro から Velocity へのテンプレートコンバータだけですが、
Tea から Velocity、そして FreeMarker から Velocity へのテンプレートコンバータの計画があります。
</p>

</section>

<section name="WebMacro to Velocity Template Converter" alias="WebMacro から Velocity へのテンプレート変換">

<primary>
<p>
    The <code>convert-wm.sh</code> script in the <code>convert</code>
    directory converts a single WebMacro template (<code>*.wm</code>) to
    a Velocity template (<code>*.vm</code>), or converts an entire
    directory structure of WebMacro templates to Velocity templates.
</p>
</primary>
<p>
<code>convert</code> ディレクトリにある
<code>convert-wm.sh</code> スクリプトは、
単一の WebMacro テンプレート (<code>*.wm</code>) を
Velocity テンプレート(<code>*.vm</code>)に変換したり、
WebMacro テンプレートのディレクトリ構造をまるごと
Velocity テンプレートに変換します。
</p>

<primary>
<p>
    The <code>convert-wm.sh</code> script can convert a single WebMacro
    template to a Velocity template.
</p>
</primary>
<p>
    <code>convert-wm.sh</code> スクリプトは、単一の WebMacro テンプレートを Velocity テンプレートに変換します。
</p>

<source><![CDATA[
./convert-wm.sh template.wm
]]></source>

<primary>
<p>
    This will produce a single Velocity template named
    <code>template.vm</code> from the WebMacro template
    <code>template.wm</code>. The original WebMacro template will be
    preserved.
</p>
</primary>
<p>
これで、
<code>template.wm</code> という名前の WebMacro テンプレートから
単一の <code>template.vm</code> という名前の Velocity テンプレート
が生成されます。元の WebMacro テンプレートはそのまま残ります。
</p>

<primary>
<p>
    To convert an entire directory structure of WebMacro templates using
    the <code>convert-wm.sh</code> script, simply include the directory
    name instead of the template name, as indicated below.
</p>
</primary>
<p>
WebMacro テンプレートのディレクトリ構造を丸ごと変換するには、
<code>convert-wm.sh</code> スクリプトを使用して、
単純にテンプレート名の替わりにディレクトリ名を以下のように指定します。
</p>

<source><![CDATA[
./convert-wm.sh templates
]]></source>

<primary>
<p>
    This will produce a directory structure of templates named
    <code>templates/[template].vm</code>. The original WebMacro templates
    will be preserved during the conversion process.
</p>
</primary>
<p>
これで、<code>templates/[template].vm</code>
という名前のテンプレートのディレクトリ構造が生成されます。
変換時には、元の WebMacro テンプレートはそのまま残ります。
</p>
</section>

</body>
</document>
