How to create or update a translation of Scribus
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.
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 "official" 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...
Requirements
- The Scribus source from CVS. Please see the Installation 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.
- 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.
- You will need to make sure you have the
lupdateandlreleaseprograms which are a part of Qt, or perhaps a part of a Qt development package, depending on your distribution. - If you use create .mo for .po files you need the
msg2qmprogram to convert them to .qm files. Debian users will need to install: http://packages.debian.org/stable/devel/qt3-dev-tools-compat to obtain this tool.
Procedure for creating or updating a translation file
- Check out CVS as per instructions on this page.
- Move into the
Scribusdirectory. - Run
qmake -project. - Edit the
Scribus.profile to have the language listed at the bottom that you wish to translate for. For example,TRANSLATIONS += scribus/po/scribus.en_GB.ts
Of course, replace theen_GBin this example with the language code you are working with. - Run
lupdate Scribus.pro. - Start KBabel or QT Linguist and load the
scribus/po/scribus.en_GB.tsfile. - Perform the translations.
- Save the
.tsfile. - Run
lrelease scribus/po/scribus.en_GB.ts -qm scribus/qm/scribus.en_GB.qm. this can be simplified by just runninglrelease scribus/po/scribus.en_GB.tsand the qm will be created for you in thescribus/podirectory. The previous command allows amake && make installwith the translations in their correct places. - Copy the
.qmfile to the/usr/local/lib/scribusdirectory (or appropriate Scribus installation directory on your PC). - Run Scribus with the language code from the command line like:
scribus -lang en_GB. - Once you are happy with this, please open your web browser to the Scribus Bugs Website and submit a new bug with Title of "British English Translation Update" and Category of "Translation" and upload the new
.tsAND.qminto the bug system. If you can, please make atar.bz2file of the two to save some space on the bugs site. - That's it! When the next CVS release is made, your new translation will be added by the team.
So that's it really! Enjoy Scribus in your favourite language!
