#ifndef _TRANSLATE_H #define _TRANSLATE_H #include "buildopt.h" #ifndef NoTranslations # define GETTEXT_PACKAGE "tdlib-purple" # include # define P_(Singular,Plural,N) ((char *) g_dngettext (GETTEXT_PACKAGE, Singular, Plural, N)) #else // The correct way to handle it is: //# define _(String) String //# define P_(Singular,Plural,N) Plural //# define N_(String) String //# define gettext(String) String // But glib isn't const-correct, and gcc treats this as a fatal error. # define _(String) const_cast(String) # define P_(Singular,Plural,N) const_cast(Plural) # define N_(String) const_cast(String) # define gettext(String) const_cast(String) #endif #endif