libzypp
17.31.7
Gettext.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
14
#ifndef ZYPP_BASE_GETTEXT_H
15
#define ZYPP_BASE_GETTEXT_H
16
17
#ifdef ZYPP_DLL
//defined if zypp is compiled as DLL
18
20
#undef N_
21
#define N_(MSG) MSG
22
24
#undef _
25
#define _(MSG) ::zypp::gettext::dgettext( MSG )
26
28
#undef PL_
29
#define PL_(MSG1,MSG2,N) ::zypp::gettext::dngettext( MSG1, MSG2, N )
30
31
#else
32
33
#ifndef N_
34
#define N_(MSG) MSG
35
#endif
36
#ifndef _
37
#define _(MSG) ::gettext( MSG )
38
#endif
39
#ifndef PL_
40
#define PL_(MSG1,MSG2,N) ::ngettext( MSG1, MSG2, N )
41
#endif
42
43
#endif
44
46
namespace
zypp
47
{
49
namespace
gettext
50
{
51
53
const
char
*
dgettext
(
const
char
* msgid );
54
56
const
char
*
dngettext
(
const
char
* msgid1,
const
char
* msgid2,
57
unsigned
long
n );
58
60
}
// namespace gettext
63
}
// namespace zypp
65
#endif
// ZYPP_BASE_GETTEXT_H
zypp::gettext::dngettext
const char * dngettext(const char *msgid1, const char *msgid2, unsigned long n)
Return translated text (plural form).
Definition:
Gettext.cc:51
zypp::gettext::dgettext
const char * dgettext(const char *msgid)
Return translated text.
Definition:
Gettext.cc:45
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition:
CodePitfalls.doc:2
zypp-core
base
Gettext.h
Generated by
1.9.3