I'm going to use the ZNC (A bouncer program for IRC) as a multilingual program.
---------
#include "gettext.h"
#include "locale.h"
setlocale (LC_ALL, "de_DE");
textdomain ("ClientCommand");
bindtextdomain ("ClientCommand", "/home/znctest/locale");
cout << gettext("hello, world!") << "\n";
---------
The locale file and everything is available but the program just shows the text in english (hello, world!).
I traced the program and this is the result:
---------
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 6
hello, world!
---------
So the program is not looking for the locale files!!! What can be the reason?