Translations

From Rivendell Wiki

Jump to: navigation, search

Preparing or updating a translation for Rivendell is generally a matter of editing a set of phrase dictionaries, using a tool called 'Qt-Linguist'. Qt-Linguist is part of Qt, and should be included with most Linux distros (try installing the 'qt-tools' package or something similar). The Windows and Mac OS X versions will work fine for the purpose too -- you can find those (as well as sources for Linux) on TrollTech's site at http://www.trolltech.com/.

Each set of phrase dictionaries comes in a file with a name of the form 'rivendell_<LANG>.tar.gz', where <LANG> is the ISO code indicating language and (sometimes) country. For example, the phrase dictionary for German would be named 'rivendell_de.tar.gz'. To generate a translation, download and then unpack the appropriate phrase dictionary file somewhere. That should create a <LANG> directory, containing a set of files with names ending in '.ts'. Load each of these in turn into the 'Qt-Linguist' application and generate the translation phrases, then save them back out to the same names. When it's all done, run the 'rdpack.sh' script located in the same directory, which will generate a '.tar.gz' output file. Mail that file to the address indicated by the script.

How to text translation files

On Thursday 16 April 2009 01:38:05 pm Daniel Roviriego wrote:
> What I am doing:   generated the .ts files like rdairplay_pt_BR.ts and all
> the others. Doing some of phrases translation (about 20% of
> the code) copied them back to the original folders compilled the source
> my LANG variable is : pt_BR.UTF-8
> 
> When I run the binaries, the modules are still in english. What I am doing
> wrong ?

You will need to generate and install the .qm file manually after recompiling the source, as no pt_BR translation is currently defined in the makefile. To do this, proceed as follows:

1) Add the following line to the end of 'rdairplay/rdairplay.pro':

TRANSLATIONS += rdairplay_pt_BR.ts

2) Run the following commands (from the top of the source tree):

 cd rdairplay
 lupdate rdairplay.pro
 lrelease rdairplay.pro

3) Copy the resulting 'rdairplay_pt_BR.qm' file to Rivendell's shared data directory ('/usr/local/share/rivendell/' by default).

Start up RDAirPlay now and you should see the translated strings.



Reference: English – Translations: Français

Personal tools