2017-04-27 18:24:53 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2013-10-06 15:55:58 +00:00
|
|
|
#ifndef MYGETTEXT_H
|
|
|
|
#define MYGETTEXT_H
|
|
|
|
|
2024-02-27 10:38:35 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
|
|
|
extern "C" const char *trGettext(const char *);
|
|
|
|
static inline const char *translate(const char *, const char *arg)
|
|
|
|
{
|
|
|
|
return trGettext(arg);
|
|
|
|
}
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
2013-10-06 15:55:58 +00:00
|
|
|
/* this is for the Qt based translations */
|
2013-10-10 07:15:21 +00:00
|
|
|
extern const char *trGettext(const char *);
|
|
|
|
#define translate(_context, arg) trGettext(arg)
|
2013-10-10 05:48:35 +00:00
|
|
|
#define QT_TRANSLATE_NOOP(_context, arg) arg
|
2013-11-29 19:20:49 +00:00
|
|
|
#define QT_TRANSLATE_NOOP3(_context, arg, _comment) arg
|
2013-10-06 15:55:58 +00:00
|
|
|
|
2024-02-27 10:38:35 +00:00
|
|
|
#endif
|
|
|
|
|
2013-10-06 15:55:58 +00:00
|
|
|
#endif // MYGETTEXT_H
|