sbuild
1.6.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
sbuild
sbuild-i18n.h
Go to the documentation of this file.
1
/* Copyright © 2005-2007 Roger Leigh <rleigh@debian.org>
2
*
3
* schroot is free software: you can redistribute it and/or modify it
4
* under the terms of the GNU General Public License as published by
5
* the Free Software Foundation, either version 3 of the License, or
6
* (at your option) any later version.
7
*
8
* schroot is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
* General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see
15
* <http://www.gnu.org/licenses/>.
16
*
17
*********************************************************************/
18
24
#ifndef SBUILD_I18N_H
25
#define SBUILD_I18N_H
26
27
#include <sbuild/sbuild-config.h>
28
29
#include <libintl.h>
30
31
// Undefine macros which would interfere with our functions.
32
#ifdef gettext
33
#undef gettext
34
#endif
35
#ifdef _
36
#undef _
37
#endif
38
#ifdef gettext_noop
39
#undef gettext_noop
40
#endif
41
#ifdef N_
42
#undef N_
43
#endif
44
45
namespace
sbuild
46
{
53
inline
const
char
*
54
gettext
(
const
char
*message)
55
{
56
return
dgettext (SBUILD_MESSAGE_CATALOGUE, message);
57
}
58
66
inline
const
char
*
67
_
(
const
char
*message)
68
{
69
return
gettext
(message);
70
}
71
78
inline
const
char
*
79
gettext_noop
(
const
char
*message)
80
{
81
return
message;
82
}
83
91
inline
const
char
*
92
N_
(
const
char
*message)
93
{
94
return
gettext_noop
(message);
95
}
96
97
}
98
99
#endif
/* SBUILD_I18N_H */
100
101
/*
102
* Local Variables:
103
* mode:C++
104
* End:
105
*/
Generated on Fri Jun 29 2012 13:39:02 for sbuild by
1.8.1.1