&kommander; dialogs can be translated to different languages. The mechanism is similar to the translation of other &kde; applications. The dialog is written in English, the texts that are needed to be translated are specially marked. A tool extracts these strings, another tool can be used to translate them. The translation then can be compiled and installed and the dialog will automatically recognize and use it.
</para>
<para>
Here is a short description about the needed steps to make a dialog translatable and translated it:
<orderedlist>
<listitem><para>How to prepare dialog to be translated?</para>
<para>Always use <emphasis>@i18n("This is my text")</emphasis> when you use some English text. This marks "This is my text" as a text to be translated.</para>
</listitem>
<listitem><para>How to extract the messages and create the .po file?</para>
Use the <command>kmdr2po</command> script to extract the strings. The script is inside the <emphasis>working</emphasis> directory of the source release tarball and should be installed to <command>$TDEDIR/share/apps/kommander/translating</command> as well.
An appropriate <your-kommander-dialog.po> file will be created.
</para>
</listitem>
<listitem>
<para>How to translate it?</para>
<para>Use <command>KBabel</command> to translate it. <command>Use msgfmt</command> to compile the translation. Look at <ulink url="http://i18n.kde.org">http://i18n.kde.org</ulink> for help on this subject.</para>
</listitem>
<listitem><para>How to install the translation?</para>
To open a different catalog (translation *.mo file) for a dialog, use the -c argument for kmdr-executor. The below example will take the translations from the Quanta translation file: