| 1 | /* |
| 2 | * Internationalization definitions for CUPS drivers. |
| 3 | * |
| 4 | * Copyright 2008 Michael Sweet ([email protected]) |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify it |
| 7 | * under the terms of the GNU General Public License as published by the Free |
| 8 | * Software Foundation; either version 2 of the License, or (at your option) |
| 9 | * any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, but |
| 12 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 13 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 14 | * for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 18 | */ |
| 19 | |
| 20 | #include <gutenprint/gutenprint.h> |
| 21 | #include <gutenprint/string-list.h> |
| 22 | |
| 23 | |
| 24 | /* |
| 25 | * Macro for localizing driver messages... |
| 26 | */ |
| 27 | |
| 28 | #define _(x) x |
| 29 | |
| 30 | |
| 31 | /* |
| 32 | * Prototypes... |
| 33 | */ |
| 34 | |
| 35 | extern const stp_string_list_t *stp_i18n_load(const char *locale); |
| 36 | extern const char *stp_i18n_lookup(const stp_string_list_t *po, |
| 37 | const char *message); |
| 38 | extern void stp_i18n_printf(const stp_string_list_t *po, |
| 39 | const char *message, ...); |