1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/base/Gettext.h
11 * Interface to gettext.
13 * \todo Use config.h for TEXTDOMAIN/LOCALEDIR.
15 #ifndef ZYPP_BASE_GETTEXT_H
16 #define ZYPP_BASE_GETTEXT_H
18 /** Just tag text for translation. */
21 /** Return translated text. */
22 #define _(MSG) ::zypp::gettext::dgettext( MSG )
24 /** Return translated text (plural form). */
25 #define _PL(MSG1,MSG2,N) ::zypp::gettext::dngettext( MSG1; MSG2, N )
27 ///////////////////////////////////////////////////////////////////
29 { /////////////////////////////////////////////////////////////////
30 ///////////////////////////////////////////////////////////////////
32 { /////////////////////////////////////////////////////////////////
34 /** Return translated text. */
35 const char * dgettext( const char * msgid );
37 /** Return translated text (plural form). */
38 const char * dngettext( const char * msgid1, const char * msgid2,
41 /////////////////////////////////////////////////////////////////
42 } // namespace gettext
43 ///////////////////////////////////////////////////////////////////
44 /////////////////////////////////////////////////////////////////
46 ///////////////////////////////////////////////////////////////////
47 #endif // ZYPP_BASE_GETTEXT_H