[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] Using gettext in ZNC

From: omid -
Subject: [bug-gettext] Using gettext in ZNC
Date: Sat, 13 Apr 2013 22:50:58 +0430

I'm going to use the ZNC (A bouncer program for IRC) as a multilingual program.
The program is written in c++

I used the codes below in the source file:
#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?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]