Specialize stream output for shared_ptr<void>
[platform/upstream/libzypp.git] / zypp / base / Gettext.h
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/base/Gettext.h
10  *
11  * Interface to gettext.
12  *
13 */
14 #ifndef ZYPP_BASE_GETTEXT_H
15 #define ZYPP_BASE_GETTEXT_H
16
17 /** Just tag text for translation. */
18 #define N_(MSG) MSG
19
20 /** Return translated text. */
21 #define _(MSG) ::zypp::gettext::dgettext( MSG )
22
23 /** Return translated text (plural form). */
24 #define _PL(MSG1,MSG2,N) ::zypp::gettext::dngettext( MSG1, MSG2, N )
25
26 ///////////////////////////////////////////////////////////////////
27 namespace zypp
28 { /////////////////////////////////////////////////////////////////
29   ///////////////////////////////////////////////////////////////////
30   namespace gettext
31   { /////////////////////////////////////////////////////////////////
32
33     /** Return translated text. */
34     const char * dgettext( const char * msgid );
35
36     /** Return translated text (plural form). */
37     const char * dngettext( const char * msgid1, const char * msgid2,
38                             unsigned long n );
39
40     /////////////////////////////////////////////////////////////////
41   } // namespace gettext
42   ///////////////////////////////////////////////////////////////////
43   /////////////////////////////////////////////////////////////////
44 } // namespace zypp
45 ///////////////////////////////////////////////////////////////////
46 #endif // ZYPP_BASE_GETTEXT_H