Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 15247 → Rev 15248

/trunk/Scribus/doc/en/translation_howto.html
25,17 → 25,18
<li>Run <code>qmake -project</code>.</li>
<li>Edit the <code>Scribus.pro</code> file to have the language listed at the bottom that you wish to translate for. For example,
<blockquote><table width="100%" border="1" bgcolor="#eeeeee"><tr><td border="0">
<pre>TRANSLATIONS += scribus/po/scribus.en_GB.ts</pre>
<pre>TRANSLATIONS += resources/translations/po/scribus.en_GB.ts</pre>
</td></tr></table></blockquote>
Of course, replace the <code>en_GB</code> in this example with the language code you are working with.</li>
<li>Run <code>lupdate Scribus.pro</code>.</li>
<li>Start KBabel or QT Linguist and load the <code>scribus/po/scribus.en_GB.ts</code> file.</li>
<li>Start KBabel or QT Linguist and load the <code>resources/translations/po/scribus.en_GB.ts</code> file.</li>
<li>Perform the translations.</li>
<li>Save the <code>.ts</code> file.</li>
<li>Run <code>lrelease scribus/po/scribus.en_GB.ts -qm scribus/qm/scribus.en_GB.qm</code>. this can be simplified by just running <code>lrelease scribus/po/scribus.en_GB.ts</code> and the qm will be created for you in the <code>scribus/po</code> directory. The previous command allows a <code>make &#038;&#038; make install</code> with the translations in their correct places.</li>
<li>Run <code>lrelease resources/translations/po/scribus.en_GB.ts -qm scribus/qm/scribus.en_GB.qm</code>. this can be simplified by just running <code>lrelease resources/translations/po/scribus.en_GB.ts</code> and the qm will be created for you in the <code>resources/translations/po</code> directory. The previous command allows a <code>make &#038;&#038; make install</code> with the translations in their correct places.</li>
<li>Copy the <code>.qm</code> file to the <code>/usr/local/lib/scribus</code> directory (or appropriate Scribus installation directory on your PC).</li>
<li>Run Scribus with the language code from the command line like: <code>scribus -lang en_GB</code>.</li>
<li>Once you are happy with this, please open your web browser to the <a href="http://bugs.scribus.net">Scribus Bugs Website</a> and submit a new bug with Title of &#034;British English Translation Update&#034; and Category of &#034;Translation&#034; and upload the new <code>.ts</code> AND <code>.qm</code> into the bug system. If you can, please make a <code>tar.bz2</code> file of the two to save some space on the bugs site.</li>
<li>If you need to update translations for the render frames editor, you also need to update xml files located in <code>resources/editorconfig</code> and attach updated files to your translation update request.</li>
<li>That's it! When the next CVS release is made, your new translation will be added by the team.</li>
</ol>
<p>So that's it really! Enjoy Scribus in your favourite language!</p>