1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/base/Gettext.h
11 * Interface to gettext.
14 #ifndef ZYPP_BASE_GETTEXT_H
15 #define ZYPP_BASE_GETTEXT_H
17 /** Just tag text for translation. */
20 #ifdef ZYPP_DLL //defined if zypp is compiled as DLL
22 /** Return translated text. */
23 #define _(MSG) ::zypp::gettext::dgettext( MSG )
25 /** Return translated text (plural form). */
26 #define _PL(MSG1,MSG2,N) ::zypp::gettext::dngettext( MSG1, MSG2, N )
29 #define _(MSG) ::gettext( MSG )
30 #define _PL(MSG1,MSG2,N) ::ngettext( MSG1, MSG2, N )
33 ///////////////////////////////////////////////////////////////////
35 { /////////////////////////////////////////////////////////////////
36 ///////////////////////////////////////////////////////////////////
38 { /////////////////////////////////////////////////////////////////
40 /** Return translated text. */
41 const char * dgettext( const char * msgid );
43 /** Return translated text (plural form). */
44 const char * dngettext( const char * msgid1, const char * msgid2,
47 /////////////////////////////////////////////////////////////////
48 } // namespace gettext
49 ///////////////////////////////////////////////////////////////////
50 /////////////////////////////////////////////////////////////////
52 ///////////////////////////////////////////////////////////////////
53 #endif // ZYPP_BASE_GETTEXT_H