| 1 |
/* |
| 2 |
* Copyright (C) 2020 The HIME team, Taiwan |
| 3 |
* |
| 4 |
* This library is free software; you can redistribute it and/or |
| 5 |
* modify it under the terms of the GNU Lesser General Public |
| 6 |
* License as published by the Free Software Foundation version 2.1 |
| 7 |
* of the License. |
| 8 |
* |
| 9 |
* This library is distributed in the hope that it will be useful, |
| 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 |
* Lesser General Public License for more details. |
| 13 |
* |
| 14 |
* You should have received a copy of the GNU Lesser General Public |
| 15 |
* License along with this library; if not, write to the Free Software |
| 16 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 17 |
*/ |
| 18 |
|
| 19 |
#ifndef GTKINTL_H |
| 20 |
#define GTKINTL_H |
| 21 |
|
| 22 |
/* To get GETTEXT_PACKAGE */ |
| 23 |
#include "../config.h" |
| 24 |
|
| 25 |
/* TODO: Should support build-time configuration */ |
| 26 |
#define GTK_LOCALEDIR "/usr/share/locale" |
| 27 |
|
| 28 |
#if HIME_I18N_MESSAGE |
| 29 |
#include <libintl.h> |
| 30 |
#define _(String) dgettext (GETTEXT_PACKAGE, String) |
| 31 |
#else |
| 32 |
#define _(String) (String) |
| 33 |
#endif |
| 34 |
#define N_(String) (String) |
| 35 |
|
| 36 |
#endif /* HIME_GTKINTL_H */ |