<!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 "intltool-merge">
<!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="intltool-merge-1">
<!-- %Z%%M% %I% %E% SMI; -->
<refmeta><refentrytitle>intltool-merge</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>intltool-merge</primary></indexterm><indexterm><primary>
merge translated strings into various file types, such as XML</primary></indexterm>
<refnamediv id="intltool-merge-1-name"><refname>intltool-merge</refname><refpurpose>
merge translated strings into various file types, such as XML</refpurpose>
</refnamediv>
<refsynopsisdiv id="intltool-merge-1-synp"><title>&synp-tt;</title>
<cmdsynopsis><command>&cmd;</command><arg choice="opt"><option>-desktop-style
</option></arg><arg choice="opt"><option>-help</option></arg><arg choice="opt"><option>
-keys-style</option></arg><arg choice="opt"><option>-oaf-style</option></arg>
<arg choice="opt"><option>-pass-through</option></arg><arg choice="opt"><option>
-quiet</option></arg><arg choice="opt"><option>-utf8</option></arg><arg choice="opt"><option>
-version</option></arg><arg choice="opt"><option>-xml-style</option></arg>
<arg choice="plain"><replaceable>po-directory</replaceable></arg><arg choice="plain"><replaceable>
filename</replaceable></arg><arg choice="plain"><replaceable>output-file</replaceable></arg>
</cmdsynopsis></refsynopsisdiv>
<refsect1 id="intltool-merge-1-desc"><title>&desc-tt;</title>
<para><command>&cmd;</command> merges translated strings in <filename>.po
</filename> files in <replaceable>po-directory</replaceable> with the original
application file <filename><replaceable>filename</replaceable></filename>,
to create the file <filename><replaceable>output-file</replaceable></filename>
which contains both the original and the localized strings. Afterwards, the
application XML file contains repeated xml-nodes, where each xml&mdash;node
contains one of all translations and an <literal>xml:lang</literal> attribute.
</para>
</refsect1>
<refsect1 id="intltool-merge-1-opts"><title>&opts-tt;</title>
<para>The following options are supported:</para>
<variablelist termlength="narrow"><varlistentry><term><option>-desktop-style
</option></term><listitem><para>Include translations in the desktop style.
You can also use <option>d</option> to specify this option.</para>
</listitem></varlistentry>
<varlistentry><term><option>-help</option></term><listitem><para>Show usage
and basic help information. You can also use <option>h</option> to specify
this option.</para>
</listitem></varlistentry>
<varlistentry><term><option>-keys-style</option></term><listitem><para>Include
translations in the keys style. You can also use <option>k</option> to specify
this option.</para>
</listitem></varlistentry>
<varlistentry><term><option>-oaf-style</option></term><listitem><para>Include
translations in the oaf style. You can also use <option>o</option> to specify
this option.</para>
</listitem></varlistentry>
<varlistentry><term><option>-pass-through</option></term><listitem><para>
Use strings as found in <filename>.po</filename> files, without conversion
(not recommended). You can also use <option>p</option> to specify this option.
</para>
</listitem></varlistentry>
<varlistentry><term><option>-quiet</option></term><listitem><para>Operate
in quiet mode; do not provide feedback. You can also use <option>q</option>
to specify this option.</para>
</listitem></varlistentry>
<varlistentry><term><option>-schemas-style</option></term><listitem><para>
Include translations in the schemas style. You can also use <option>s</option>
to specify this option.</para>
</listitem></varlistentry>
<varlistentry><term><option>-utf8</option></term><listitem><para>Convert all
strings to UTF-8 encoding before merging. You can also use <option>u</option>
to specify this option.</para>
</listitem></varlistentry>
<varlistentry><term><option>-version</option></term><listitem><para>Show version
information. You can also use <option>v</option> to specify this option.</para>
</listitem></varlistentry>
<varlistentry><term><option>-xml-style</option></term><listitem><para>Include
translations in the standard XML style. You can also use <option>x</option>
to specify this option.</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1 id="intltool-merge-1-oper"><title>&oper-tt;</title>
<para>The following operands are supported:</para>
<variablelist termlength="narrow"><varlistentry><term><option role="nodash"><replaceable>
po-directory</replaceable></option></term><listitem><para>Specifies the location
of the translated <filename>.po</filename> files.</para>
</listitem></varlistentry>
<varlistentry><term><option role="nodash"><replaceable>filename</replaceable></option></term>
<listitem><para>Specifies the name of the original application file.</para>
</listitem></varlistentry>
<varlistentry><term><option role="nodash"><replaceable>output-file</replaceable></option></term>
<listitem><para>Specifies the name of the file to be created by the <command>&cmd;</command>
command, to contain both the original and the localized strings.</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1 id="intltool-merge-1-exam"><title>&exam-tt;</title>
<example role="example"><title>Merging the Contents of the Translated .po
Files in the po Directory With the Original File foo.desktop.in to Create
foo.desktop</title>
<para><screen>example% <userinput>&cmd; ./po foo.desktop.in foo.desktop <option>
d</option> <option>u</option></userinput></screen></para>
</example>
</refsect1>
<refsect1 id="intltool-merge-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="intltool-merge-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="intltool-merge-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="intltool-merge-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-prepare
</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>
intltool-unicodify</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry>
<refentrytitle>intltool-update</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry>
<refentrytitle>intltoolize</refentrytitle><manvolnum>1</manvolnum></citerefentry></para>
</refsect1>
<refsect1 id="intltool-merge-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>
