Subversion Repositories Scribus

Rev

Rev 13527 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10646 cbradney 1
<html>
2
<head>
3
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
4
        <title>How to create or update a translation of Scribus</title>
5
</head>
6
<body>
559 cbradney 7
<h2>How to create or update a translation of Scribus</h2>
8
 
9
<p>Scribus is available in over 20 languages thanks to the many willing souls out there who have spent the time translating. This is no small task, but to be honest, not a very difficult one technically. This page outlines the requirements and procedures for creating or updating such a translation.</p>
10
 
11
<p>Please note, there are many willing contributors to the Scribus project and there may already be a translation in progress for the language you wish to help for. It would be worthwhile asking on the mailing list to see if someone has started. This is also a courtesy matter. At this point we don't really have any &#034;official&#034; translators but perhaps you can work together, or take over an old translation if the previous translator no longer has the time to keep it up-to-date. So, here we go...</p>
12
 
13
<h3>Requirements</h3>
14
<ul>
5490 mrdocs 15
<li>The Scribus source from CVS. Please see the <a href="install.html">Installation</a> section for details on how to checkout CVS if you aren't up with that yet. Its not too hard so don't be dismayed. By working with the CVS source, you know you will be working with the latest Scribus source and therefore will get the most up-to-date set of files to translate.</li>
16
<li>KBabel or Qt Linguist. Both of these are available in their respective development packages. The choice of which one to use is more a user preference, the result is the same.</li>
17
<li>You will need to make sure you have the <strong><code>lupdate</code></strong> and <strong><code>lrelease</code></strong> programs which are a part of Qt, or perhaps a part of a Qt development package, depending on your distribution.</li>
18
<li>If you use create .mo for .po files you need the <strong><code>msg2qm</code></strong> program to convert them to .qm files. Debian users will need to install: <a href="http://packages.debian.org/stable/devel/qt3-dev-tools-compat">http://packages.debian.org/stable/devel/qt3-dev-tools-compat</a> to obtain this tool.</li>
559 cbradney 19
</ul>
20
 
21
<h3>Procedure for creating or updating a translation file</h3>
22
<ol>
5490 mrdocs 23
<li>Check out CVS as per instructions on this page.</li>
24
<li>Move into the <code>Scribus</code> directory.</li>
25
<li>Run <code>qmake -project</code>.</li>
26
<li>Edit the <code>Scribus.pro</code> file to have the language listed at the bottom that you wish to translate for. For example,
27
<blockquote><table width="100%" border="1" bgcolor="#eeeeee"><tr><td border="0">
15248 jghali 28
        <pre>TRANSLATIONS += resources/translations/po/scribus.en_GB.ts</pre>
5490 mrdocs 29
</td></tr></table></blockquote>
30
Of course, replace the <code>en_GB</code> in this example with the language code you are working with.</li>
31
<li>Run <code>lupdate Scribus.pro</code>.</li>
15248 jghali 32
<li>Start KBabel or QT Linguist and load the <code>resources/translations/po/scribus.en_GB.ts</code> file.</li>
5490 mrdocs 33
<li>Perform the translations.</li>
34
<li>Save the <code>.ts</code> file.</li>
15248 jghali 35
<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>
5490 mrdocs 36
<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>
37
<li>Run Scribus with the language code from the command line like: <code>scribus -lang en_GB</code>.</li>
38
<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>
15248 jghali 39
<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>
5490 mrdocs 40
<li>That's it! When the next CVS release is made, your new translation will be added by the team.</li>
559 cbradney 41
</ol>
597 cbradney 42
<p>So that's it really! Enjoy Scribus in your favourite language!</p>
10646 cbradney 43
</body>
44
</html>