home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / os2 / remind / src / lang.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-12  |  2.4 KB  |  63 lines

  1. /***************************************************************/
  2. /*                                                             */
  3. /*  LANG.H                                                     */
  4. /*                                                             */
  5. /*  Header file for language support for various languages.    */
  6. /*                                                             */
  7. /*  This file is part of REMIND.                               */
  8. /*  Copyright (C) 1992, 1993 by David F. Skoll.                */
  9. /*                                                             */
  10. /***************************************************************/
  11.  
  12. /* I'm chauvinistic and name each language with its English name... */
  13.  
  14. #define ENGLISH    0 /* original by David Skoll */
  15. #define GERMAN     1 /* translated by Wolfgang Thronicke */
  16. #define DUTCH      2 /* translated by Willem Kasdorp and Erik-Jan Vens */
  17. #define FINNISH    3 /* translated by Mikko Silvonen */
  18. #define FRENCH       4 /* translated by Laurent Duperval */
  19. #define NORWEGIAN  5 /* translated by Trygve Randen */
  20.  
  21. /* Add more languages here - but please e-mail dfs@doe.carleton.ca
  22.    to have your favorite language assigned a number.  If you add a
  23.    language, please send me the header file, and permission to include
  24.    it in future releases of Remind.  Note that you'll get no remuneration
  25.    for this service - just everlasting fame. :-)
  26.  
  27.    Use the file tstlang.rem to test your new language file. */
  28.  
  29. /************************************************************************
  30.  *                                                                      *
  31.  *       Define the language you want to use here                       *
  32.  *                                                                      *
  33.  ************************************************************************/
  34. #ifndef LANG  /* Allow for definition on compiler command line */
  35. #define LANG ENGLISH
  36. #endif
  37.  
  38. /* If LANG is not defined, it defaults to English. */
  39. #ifndef LANG
  40. #define LANG ENGLISH
  41. #endif
  42.  
  43.  
  44. /* Pick up the appropriate header file */
  45. #if LANG == ENGLISH
  46. #include "english.h"
  47. #elif LANG == GERMAN
  48. #include "german.h"
  49. #elif LANG == DUTCH
  50. #include "dutch.h"
  51. #elif LANG == FINNISH
  52. #include "finnish.h"
  53. #elif LANG == FRENCH
  54. #include "french.h"
  55. #elif LANG == NORWEGIAN
  56. #include "norwgian.h"
  57.  
  58. /* If no sensible language, choose English.  I intended to use
  59.    the #error directive here, but some C compilers barf. */
  60. #else
  61. #include "english.h"
  62. #endif
  63.