diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-12-26 22:13:52 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-12-26 22:15:20 +0100 |
commit | 0b56957297167538addd330e699e2e3cd2731d68 (patch) | |
tree | 7718aacad23f2800db8a53af9f2d4970bed9c992 /compat/macros.hpp | |
parent | c8d8702431e5b4fb275e9952d59efac69ca00960 (diff) |
compat: use gettext convention for tr()
Diffstat (limited to 'compat/macros.hpp')
-rw-r--r-- | compat/macros.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compat/macros.hpp b/compat/macros.hpp index e27eb906..5a2f01e3 100644 --- a/compat/macros.hpp +++ b/compat/macros.hpp @@ -1,6 +1,8 @@ #pragma once +#include <QCoreApplication> #define otr_tr(str) (QCoreApplication::translate(OTR_MODULE_NAME, (str))) +#define _(x) otr_tr(x) #if defined _MSC_VER # define never_inline __declspec(noinline) |