From 51a8d7994eb50f9c1fa17833ea27453d7aab237f Mon Sep 17 00:00:00 2001 From: Henning Geinitz Date: Fri, 27 Apr 2001 19:28:52 +0000 Subject: [PATCH] 2001-04-27 Henning Meier-Geinitz * backend/agfafogus.c: Moved PATH_MAX after sanei_backend.h include to avoid warning. Changed printf to DBG. * backend/mustek.c backend/mustek.CHANGES backend/mustek.desc: Added support for translating options. Used only PACKAGE_VERSION for output. Updated email address. New version: 1.0-107. * include/sane/sanei_backend.h include/sane/saneopts.h: Added macro SANE_I18N. It's used to mark strings that can be translated and used by a frontend. Usually these are option titles and descriptions as well as the contents of string lists. Used this macro to mark the translatable strings in saneopts.h. More translation support will follow. --- include/sane/sanei_backend.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/sane/sanei_backend.h b/include/sane/sanei_backend.h index 22cd0b61d..bb1e88a1e 100644 --- a/include/sane/sanei_backend.h +++ b/include/sane/sanei_backend.h @@ -110,3 +110,11 @@ extern void ENTRY(exit) (void); #define sane_close(a) ENTRY(close) (a) #define sane_exit(a) ENTRY(exit) (a) #endif /* STUBS */ + +/* Internationalization for SANE backends + Add SANE_I18N() to all texts that can be translated. + E.g. out_txt = SANE_I18N("Hello"); */ + +#ifndef SANE_I18N +#define SANE_I18N(text) text +#endif