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 /** Return translated text. */
21 #define _(MSG) ::zypp::gettext::dgettext( MSG )
23 /** Return translated text (plural form). */
24 #define _PL(MSG1,MSG2,N) ::zypp::gettext::dngettext( MSG1, MSG2, N )
26 ///////////////////////////////////////////////////////////////////
28 { /////////////////////////////////////////////////////////////////
29 ///////////////////////////////////////////////////////////////////
31 { /////////////////////////////////////////////////////////////////
33 /** Return translated text. */
34 const char * dgettext( const char * msgid );
36 /** Return translated text (plural form). */
37 const char * dngettext( const char * msgid1, const char * msgid2,
40 /////////////////////////////////////////////////////////////////
41 } // namespace gettext
42 ///////////////////////////////////////////////////////////////////
43 /////////////////////////////////////////////////////////////////
45 ///////////////////////////////////////////////////////////////////
46 #endif // ZYPP_BASE_GETTEXT_H