haiku/headers/private/mail/MDRLanguage.h

52 lines
2.1 KiB
C
Raw Normal View History

#ifndef ZOIDBERG_MDR_LANGUAGE_H
#define ZOIDBERG_MDR_LANGUAGE_H
/*
** Mail Daemon Replacement interim International Language Macros.
**
** Copyright 2003 Dr. Zoidberg Enterprises. All rights reserved.
**
** The input for the language macro system is the MDR_DIALECT define which is
** set by the makefile (you compile a version for the desired language, it
** can't change at run-time using this temporary internationalization system).
** MDR_DIALECT was set to 0 for English-USA, 1 for Japanese, and other numbers
** for other language dialects. If it's not present, we use English-USA.
**
** $Log: MDRLanguage.h,v $
** Revision 1.1 2004/09/20 22:31:42 nwhitehorn
** Imported MDR. Some code still not entirely functional -- I haven't been able to figure out how to detect SSL, so IMAP and POP have it turned off. PPP auto-detect is also not functional at the moment. Other than that, it seems to work beautifully. Packaging will come later.
**
** Revision 1.3 2003/02/05 22:43:17 agmsmith
** Default language (judging by the use of "color" in the bemail
** preferences) changed to be English-USA.
**
** Revision 1.2 2003/01/30 23:52:12 agmsmith
** Initial simple language system macros done.
**
** Revision 1.1 2003/01/30 23:26:07 agmsmith
** Starting to add a simplistic internationalization system for "Koki",
** who wants to use BeMail in Japanese. It should later be replaced by
** a more comprehensive system, but at least this one will mark out the
** spots where translated text is needed.
*/
#define MDR_DIALECT_ENGLISH_USA 0
#define MDR_DIALECT_JAPANESE 1
#ifndef MDR_DIALECT
#define MDR_DIALECT MDR_DIALECT_ENGLISH_USA
#endif
#if (MDR_DIALECT == MDR_DIALECT_ENGLISH_USA)
#define MDR_DIALECT_CHOICE(EnglishUSA,Japanese) EnglishUSA
#define MDR_COUNTRY "United States of America"
#define MDR_LANGUAGE "English"
#elif (MDR_DIALECT == MDR_DIALECT_JAPANESE)
#define MDR_DIALECT_CHOICE(EnglishUSA,Japanese) Japanese
#define MDR_COUNTRY "Japan"
#define MDR_LANGUAGE "Japanese"
#else
#error "Unrecognized value specified for MDR_DIALECT macro constant."
#endif
#endif /* ZOIDBERG_MDR_LANGUAGE_H */