elmo-users
[Top][All Lists]
Advanced

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

[elmo-users] gettext w zrodelkach


From: Artur Skura
Subject: [elmo-users] gettext w zrodelkach
Date: 15 Apr 2003 12:33:28 -0000

Acha, i prosba zeby przy nowo pisanych plikach juz w miare mozliwosci
stosowac sie do ponizszego (z
http://www.gnu.org/manual/gettext/html_mono/gettext.html.gz):

For newly written software the strings of course can and should be
marked while writing it. The gettext approach makes this very easy.
Simply put the following lines at the beginning of each file or in a
central header file:

#define _(String) (String)
#define N_(String) String
#define textdomain(Domain)
#define bindtextdomain(Package, Directory)

Doing this allows you to prepare the sources for internationalization.
Later when you feel ready for the step to use the gettext library
simply replace these definitions by the following:

#include <libintl.h>
#define _(String) gettext (String)
#define gettext_noop(String) String
#define N_(String) gettext_noop (String)

and link against `libintl.a' or `libintl.so'. Note that on GNU
systems, you don't need to link with libintl because the gettext
library functions are already contained in GNU libc. That is all you
have to change. 

Pozdrowienia,
Artur





reply via email to

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