How to install library translations as libkfoo-<ABI-major>.mo instead of libkfoo.mo

Chusslove Illich caslav.ilic at gmx.net
Thu Jun 14 16:56:29 BST 2007


> [: Stephan Kulow :]
> [...] And to spell it out: you can use -DLOCALE_INSTALL_DIR to KDE4, so
> KDE4 will install its locale files somewhere else - e.g.
> /usr/share/kde4/locale. What I'm unsure about atm is where it looks first
> though, I have a bad feeling it might look at /usr/share/locale first.

In kdecore/localization/kcatalog.cpp, the locale directory for the given
catalog name is searched for like this:

  QString relpath = QString::fromLatin1( "%1/LC_MESSAGES/%2.mo" ).arg( language, name );
  return KGlobal::dirs()->findResourceDir( "locale", relpath );

and then gettext is bound to look there (won't use any defaults), but I
don't know what findResourceDir() will do.

-- 
Chusslove Illich (Часлав Илић)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070614/2b4d5509/attachment.sig>


More information about the kde-core-devel mailing list