![]() | Make the translations for a simple kde project |
| Prev | Next |
When your own project is finished, you may like to have one or several translations for the GUI. Here is how you can do that.
Install a patched gettext that you can find on developer.kde.org and install it in your home directory. The patched gettext can be found there : http://public.kde.planetmirror.com/pub/kde/devel/gettext-kde/
$ tar xvzf gettext-0.10.35-kde.tar.gz $ cd gettext-0.10.35-kde $ ./configure $ make $ mkdir -p ~/bin $ cp src/gettext src/xgettext ~/bin # copy gettext and xgettext into your HOME/bin directory $ export PATH=~/bin:$PATH
Then, go into your project directory :
$ cd /path/to/myprojectSet KDEDIR to match your kde installation - on my Mandrake it is /usr This path can also be found by doing "kde-config --prefix"
$ export KDEDIR=`kde-config --prefix` # or export KDEDIR=/usrThen create the translations files :
$ make -f admin/Makefile.common package-messages
Translate the .po files using kbabel These files are in the po directory of your project.
Please see the original version of this chapter here, thanks to Thomas Nagy.
| Prev | Home | Next |
| In short | Up | A few general tips |