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 #ifdef ZYPP_DLL //defined if zypp is compiled as DLL
19 /** Just tag text for translation. */
23 /** Return translated text. */
25 #define _(MSG) ::zypp::gettext::dgettext( MSG )
27 /** Return translated text (plural form). */
29 #define PL_(MSG1,MSG2,N) ::zypp::gettext::dngettext( MSG1, MSG2, N )
37 #define _(MSG) ::gettext( MSG )
40 #define PL_(MSG1,MSG2,N) ::ngettext( MSG1, MSG2, N )
45 ///////////////////////////////////////////////////////////////////
47 { /////////////////////////////////////////////////////////////////
48 ///////////////////////////////////////////////////////////////////
50 { /////////////////////////////////////////////////////////////////
52 /** Return translated text. */
53 const char * dgettext( const char * msgid );
55 /** Return translated text (plural form). */
56 const char * dngettext( const char * msgid1, const char * msgid2,
59 /////////////////////////////////////////////////////////////////
60 } // namespace gettext
61 ///////////////////////////////////////////////////////////////////
62 /////////////////////////////////////////////////////////////////
64 ///////////////////////////////////////////////////////////////////
65 #endif // ZYPP_BASE_GETTEXT_H