|Previous|| Using Subversion with KDE|
Building KDE From Subversion
Writing Applications With Localization in Mind
For those working on applications in KDE's main repository, building and installing language support from KDE's localization (l10n) module is a good idea. Doing so will allow you to test applications in other languages so as to spot problems related to localization that may exist in KDE. Learn how to do just that in this tutorial.
First, checkout the kdesdk module from the repository, then build and install it. If you have trouble building the kdesdk module, you can skip the troublesome parts. The main thing you need from the kdesdk module is the poxml folder. Lokalize is also nice to have but not essential.
svn co -N svn://anonsvn.kde.org/home/kde/trunk/l10n-kde4 l10n cd l10n svn up scripts svn up templates svn up x-test svn up de ./scripts/autogen.sh de ./scripts/autogen.sh x-test
Once this is done, switch to your build directory, start cmake in the l10n/x-test, l10n/de, etc directories that you wish to build the language support for one at a time. You may then make and install from the build directory.
|Do not combine make and make install in a single step. It won't install anything.|
The ./x-test/internal/update_xx.sh step uses the transxx program in kdesdk/poxml to automatically produce the XX language translation. If you were not able to build the kdesdk/poxml files, skip the ./x-test/internal/update_xx.sh step. You'll have to rely on someone else running it and committing to the code repository.
where "myapp" is the name of the application you wish to test. Replace the "de" with the language code you wish to test, e.g. "x-test".