<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
<!--ArborText, Inc., 1988-1999, v.4002-->
<!--ARC : LSARC 2003/030 GNOME 2.x intltool-->
<!ENTITY cmd "intltoolize">
<!ENTITY % commonents SYSTEM "smancommon.ent">
%commonents;
<!ENTITY % booktitles SYSTEM "booktitles.ent">
%booktitles;
<!ENTITY suncopy "Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved.">
]>
<?Pub UDT _bookmark _target>
<?Pub Inc>
<refentry id="intltoolize-1">
<!-- %Z%%M% %I% %E% SMI; -->
<refmeta><refentrytitle>intltoolize</refentrytitle><manvolnum>1</manvolnum>
<refmiscinfo class="date">3 Apr 2003</refmiscinfo>
<refmiscinfo class="sectdesc">&man1;</refmiscinfo>
<refmiscinfo class="software">&release;</refmiscinfo>
<refmiscinfo class="arch">generic</refmiscinfo>
<refmiscinfo class="copyright">&suncopy;</refmiscinfo>
</refmeta>
<indexterm><primary>intltoolize</primary></indexterm><indexterm><primary>
prepare a source code tree to use the <application>intltool</application>
utilities</primary></indexterm><refnamediv id="intltoolize-1-name"><refname>intltoolize</refname>
<refpurpose>prepare a source code tree to use the <application>intltool</application>
utilities</refpurpose></refnamediv>
<refsynopsisdiv id="intltoolize-1-synp"><title>&synp-tt;</title>
<cmdsynopsis><command>&cmd;</command><arg choice="opt"><option>-automake</option></arg>
<arg choice="opt"><option>-copy</option></arg><arg choice="opt"><option>-debug
</option></arg><arg choice="opt"><option>-dry-run</option></arg><arg choice="opt"><option>
-force</option></arg><arg choice="opt"><option>-help</option></arg><arg choice="opt"><option>
-version</option></arg>
</cmdsynopsis></refsynopsisdiv>
<refsect1 id="intltoolize-1-desc"><title>&desc-tt;</title>
<para><command>&cmd;</command> prepares a package to use the <application>
intltool</application> utilities. <command>&cmd;</command> links or copies
various files needed by the <application>intltool</application> utilities
to the appropriate location, for use when building the package. You must change
your working directory to the top-level directory of the package before running <command>&cmd;</command>.
</para>
</refsect1>
<refsect1 id="intltoolize-1-opts"><title>&opts-tt;</title>
<para>The following options are supported:</para>
<variablelist termlength="narrow"><varlistentry><term><option>-automake</option></term>
<listitem><para>Work silently, and assume that Automake is in use.</para>
</listitem></varlistentry>
<varlistentry><term><option>-copy</option></term><listitem><para>Copy files,
instead of creating symbolic links to the files. You can also use <option>
c</option> to specify this option.</para>
</listitem></varlistentry>
<varlistentry><term><option>-debug</option></term><listitem><para>Enable verbose
shell tracing.</para>
</listitem></varlistentry>
<varlistentry><term><option>-dry-run</option></term><listitem><para>Print
the commands but do not run the commands. You can also use <option>n</option>
to specify this option.</para>
</listitem></varlistentry>
<varlistentry><term><option>-force</option></term><listitem><para>Replace
existing files. You can also use <option>f</option> to specify this option.
</para>
</listitem></varlistentry>
<varlistentry><term><option>-help</option></term><listitem><para>Show usage
and basic help information.</para>
</listitem></varlistentry>
<varlistentry><term><option>-version</option></term><listitem><para>Show version
information.</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1 id="intltoolize-1-exam"><title>&exam-tt;</title>
<example role="example"><title>Using &cmd; and the intltool Utilities</title>
<para>To use <command>&cmd;</command> and the <application>intltool</application>
utilities, perform the following steps:</para>
<orderedlist>
<listitem><para>Install <application>intltool</application>. Ensure that the
macro installed by <application>intltool</application> is in the <literal>
aclocal</literal> path, or run the following command</para><screen>example% <userinput>
export ACLOCAL_FLAGS='-I /usr/local/share/aclocal'</userinput></screen>
</listitem>
<listitem><para>Add the following lines to the <filename>autogen.sh</filename>
file, after the call to <command>gettextize</command>:</para><screen>echo "Running intltoolize"
intltoolize --copy --force --automake</screen>
</listitem>
<listitem><para>Add the following line to the <filename>configure.in</filename>
file, near the top of the file:</para><screen>AC_PROG_INTLTOOL([minimum required version])
</screen>
</listitem>
<listitem><para>Add <filename>intltool-extract.in</filename>, <filename>intltool-merge.in
</filename>, and <filename>intltool-update.in</filename> to the EXTRA_DIST
entry in your top-level <filename>Makefile.am</filename> file, and also to
the top-level <filename>.cvsignore</filename> file. Also add the non-<filename>
.in</filename> versions to the <filename>.cvsignore</filename> file.</para>
</listitem>
<listitem><para>Remove the <filename>po/desk.pl</filename> and <filename>
po/update.<replaceable>*</replaceable></filename> scripts, if present in your
source tree. The <filename>intltool-update</filename> utility will perform
equivalent functions.</para></listitem>
</orderedlist>
</example>
<para>At this point, translatable strings will be automatically extracted
to the <filename>.po</filename> files.</para>
</refsect1>
<refsect1 id="intltoolize-1-exit"><title>&exit-tt;</title>
<para>The following exit values are returned:</para>
<variablelist termlength="xtranarrow"><varlistentry><term><returnvalue>0</returnvalue></term>
<listitem><para>Application exited successfully</para>
</listitem></varlistentry>
<varlistentry><term><returnvalue>>0</returnvalue></term><listitem><para>Application
exited with failure</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1 id="intltoolize-1-file"><title>&file-tt;</title>
<para>The following files are used by this application:</para>
<variablelist termlength="medium"><varlistentry><term><filename>/usr/bin/&cmd;</filename>
</term><listitem><para>The command-line executable for the application.</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1 id="intltoolize-1-attr"><title>&attr-tt;</title>
<para>See <olink targetdocent="REFMAN5" localinfo="attributes-5"><citerefentry>
<refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry></olink>
for descriptions of the following attributes:</para>
<informaltable frame="all">
<tgroup cols="2" colsep="1" rowsep="1"><colspec colname="COLSPEC0" colwidth="1*">
<colspec colname="COLSPEC1" colwidth="1*">
<thead>
<row><entry align="center" valign="middle">ATTRIBUTE TYPE</entry><entry align="center"
valign="middle">ATTRIBUTE VALUE</entry></row>
</thead>
<tbody>
<row><entry><para>Availability</para></entry><entry><para>developer/gnome/gettext
</para></entry></row>
<row><entry colname="COLSPEC0"><para>Interface stability</para></entry><entry
colname="COLSPEC1"><para>Volatile</para></entry></row>
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="intltoolize-1-also"><title>&also-tt;</title>
<!--Reference to another man page-->
<!--Reference to a Help manual-->
<!--Reference to a book.-->
<para><citerefentry><refentrytitle>intltool-extract</refentrytitle><manvolnum>
1</manvolnum></citerefentry>, <citerefentry><refentrytitle>intltool-merge
</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>
intltool-prepare</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry>
<refentrytitle>intltool-unicodify</refentrytitle><manvolnum>1</manvolnum>
</citerefentry>, <citerefentry><refentrytitle>intltool-update</refentrytitle>
<manvolnum>1</manvolnum></citerefentry></para>
</refsect1>
<refsect1 id="intltoolize-1-note"><title>&note-tt;</title>
<para>For more information, see the <filename>I18N-HOWTO</filename> file,
which is provided with the <application>intltool</application> source code.
</para>
<para>Updated by Damien Donlon, Sun Microsystems Inc., 2003. Written by Darin
Adler, Kenneth Christiansen, Maciej Stachowiak.</para>
</refsect1>
</refentry>