summaryrefslogtreecommitdiff
path: root/src/cups/i18n.h
diff options
context:
space:
mode:
authorDidier Raboud <odyx@debian.org>2018-09-28 10:34:15 +0200
committerDidier Raboud <odyx@debian.org>2018-09-28 10:34:15 +0200
commit477a402e36e91cb68b09f70ddf32a8ea1e47c22f (patch)
tree655c3f6331a6e8fd8b09ceb4da8f5896484ae16a /src/cups/i18n.h
Import gutenprint_5.3.1.orig.tar.xz
[dgit import orig gutenprint_5.3.1.orig.tar.xz]
Diffstat (limited to 'src/cups/i18n.h')
-rw-r--r--src/cups/i18n.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/cups/i18n.h b/src/cups/i18n.h
new file mode 100644
index 0000000..1ab5275
--- /dev/null
+++ b/src/cups/i18n.h
@@ -0,0 +1,39 @@
+/*
+ * Internationalization definitions for CUPS drivers.
+ *
+ * Copyright 2008 Michael Sweet (mike@easysw.com)
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the Free
+ * Software Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+#include <gutenprint/gutenprint.h>
+#include <gutenprint/string-list.h>
+
+
+/*
+ * Macro for localizing driver messages...
+ */
+
+#define _(x) x
+
+
+/*
+ * Prototypes...
+ */
+
+extern const stp_string_list_t *stp_i18n_load(const char *locale);
+extern const char *stp_i18n_lookup(const stp_string_list_t *po,
+ const char *message);
+extern void stp_i18n_printf(const stp_string_list_t *po,
+ const char *message, ...);