From kde-devel Fri Mar 14 16:52:17 2003 From: Stanislav Visnovsky Date: Fri, 14 Mar 2003 16:52:17 +0000 To: kde-devel Subject: Re: i18n problem... X-MARC-Message: https://marc.info/?l=kde-devel&m=104766087422027 On Fri, 14 Mar 2003 xavier.allamigeon@free.fr wrote: > En réponse à Nicolas Goutte : > > > As far as I know, KGlobal::locale()->language() returns en_US if the > > current > > application has no translation in the wanted language. > > > > Have a nice day/evening/night! > > Sure, but my application has the "fr" translation. "fr.po", and the build files > (fr.gmo if I remember...) exist. But in spite of that, it refuses to translate > the text... And during the compilation, there is no error message concerning > the po files. Futhermore, the "fr.gmo" file is installed in the right KDE > directory (I mean, /share/apps/fr/LC_MESSAGES/, or something > like that)... So, any ideas ? What is the name of your application? If it's called kxx, the translation file should be /share/locale/fr/LC_MESSAGES/kxx.mo Also, you can try "strace kxx 2>&1 | grep locale" to see, where the app tries to load your translation file. Stanislav >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<