Re: Gettext



Matias Torres writes:
#define PACKAGE "xiliunsystem"
#define LOCALEDIR "po"

    bindtextdomain (PACKAGE, LOCALEDIR);
    textdomain (PACKAGE);

This requires that you are in the folder where the "po" subfolder
is. Are you there when you run the app?

Alternatively, you could have the app look up where its exe file is
located, and construct the path to the "po" subfolder from that.

In there there's a myapp.mo file compile with "msgfmt.EXE"

Shouldn't it be called xiliunsystem.mo, see the PACKAGE definition
above?

--tml




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