File: lang.h

package info (click to toggle)
pnm2ppa 1.13-8
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,704 kB
  • ctags: 480
  • sloc: ansic: 7,505; sh: 4,222; makefile: 125; python: 8
file content (100 lines) | stat: -rw-r--r-- 3,145 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/***************************************************************************
    lang.h  -  contains the language selectors for I18N purposes
                             -------------------
    begin                : Thu Jan 13 2000
    copyright            : (C) 1999-2000 by Andrew van der Stock
    email                : ajv@greebo.net
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef __LANG_H__
#define __LANG_H__

typedef enum
{
    E_CS_BADMALLOC,             /*  00 */
    E_CS_BADTOPMARG,            /*  01 */
    E_CS_BADBOTMARG,            /*  02 */
    E_CS_BADNEXTLINE,           /*  03 */
    E_CS_BADPPAMALLOC,          /*  04 */
    E_CS_ERROR,                 /*  05 */
    E_CS_BADSWITCH,             /*  06 */
    W_PPA_NOZZLE,               /*  07 */
    E_IM_BADGAMMA,              /*  08 */
    E_IM_EOFREADLINE,           /*  09 */
    E_IM_BADREADLINE,           /*  10 */
    E_IM_BADIMAGE,              /*  11 */
    E_BADMALLOC,                /*  12 */
    E_IM_BADFORMAT,             /*  13 */
                                /*  14  (removed) */
    E_IM_BADPAPERSIZE,          /*  15 */
    E_IM_BADMAXVALUE,           /*  16 */
    E_PPA_UNKNOWN,              /*  17 */    
    E_PPA_BADMALLOC,            /*  18 */
    LOG_START,                  /*  19 */
    LOG_PAGE,                   /*  20 */
    LOG_FINISH,                 /*  21 */
    LOG_NOPAGES,                /*  22 */
    LOG_SUCCESS,                /*  23 */
    LOG_VERBOSE,                /*  24 */
    E_CONFIG,                   /*  25 */
    E_BADCONFIGFILE,            /*  26 */
    E_BAD_PAPER,                /*  27 */
    E_BADPARM,                  /*  28 */
    LINE,                       /*  29 */
    E_PARSE_CONFIG,             /*  30 */
    E_UNKNOWN_ARG,              /*  31 */
    E_BAD_OUTPUT,               /*  32 */
    E_BAD_INPUT,                /*  33 */
    LOG_VERSION,                /*  34 */
    E_BAD_GAMMAFILE,            /*  35 */
    E_BAD_PATH     ,            /*  36 */

    E_LANGNOMESS		/* placeholder */
}
mess_t;


#ifdef __PNM2PPA_C__
/* only defined the once */
char *gMessages[] = {

#ifdef LANG_CZ
#include "text-cz.h"
#endif

#ifdef LANG_EN
#include "text-en.h"
#endif

#ifdef LANG_ES
#include "text-es.h"
#endif

#ifdef LANG_FR
#include "text-fr.h"
#endif

#ifdef LANG_IT
#include "text-it.h"
#endif

#ifdef LANG_NL
#include "text-nl.h"
#endif
};

#else
/* make the messages available to other files */
extern char *gMessages[];
#endif

#endif