2017-04-27 20:24:53 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2013-10-06 08:55:58 -07:00
|
|
|
#ifndef MYGETTEXT_H
|
|
|
|
#define MYGETTEXT_H
|
|
|
|
|
2024-02-27 11:38:35 +01: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 08:55:58 -07:00
|
|
|
/* this is for the Qt based translations */
|
2013-10-10 00:15:21 -07:00
|
|
|
extern const char *trGettext(const char *);
|
|
|
|
#define translate(_context, arg) trGettext(arg)
|
2013-10-09 22:48:35 -07:00
|
|
|
#define QT_TRANSLATE_NOOP(_context, arg) arg
|
2013-11-29 11:20:49 -08:00
|
|
|
#define QT_TRANSLATE_NOOP3(_context, arg, _comment) arg
|
2013-10-06 08:55:58 -07:00
|
|
|
|
2024-02-27 11:38:35 +01:00
|
|
|
#endif
|
|
|
|
|
2013-10-06 08:55:58 -07:00
|
|
|
#endif // MYGETTEXT_H
|