3 /* -*- buffer-read-only: t -*- vi: set ro:
5 * DO NOT EDIT THIS FILE (usage-txt.h)
7 * It has been AutoGen-ed Saturday May 5, 2007 at 12:02:33 PM PDT
8 * From the definitions usage-txt.def
9 * and the template file usage-txt.tpl
11 * This file handles all the bookkeeping required for tracking all the little
12 * tiny strings used by the AutoOpts library. There are 113
13 * of them. This is not versioned because it is entirely internal to the
14 * library and accessed by client code only in a very well-controlled way:
15 * they may substitute translated strings using a procedure that steps through
16 * all the string pointers.
18 * AutoOpts is free software; you can redistribute it and/or
19 * modify it under the terms of the GNU Lesser General Public
20 * License as published by the Free Software Foundation; either
21 * version 2.1 of the License, or (at your option) any later version.
23 * AutoOpts is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26 * Lesser General Public License for more details.
28 * You should have received a copy of the GNU Lesser General Public
29 * License along with AutoOpts. If not, write to:
30 * The Free Software Foundation, Inc.,
31 * 51 Franklin Street, Fifth Floor
32 * Boston, MA 02110-1301, USA.
34 #ifndef AUTOOPTS_USAGE_TXT_H_GUARD
35 #define AUTOOPTS_USAGE_TXT_H_GUARD
38 #define cch_t char const
41 * One structure to hold all the pointers to all the stringlets.
45 char* utpz_GnuBoolArg
;
47 char* utpz_GnuKeyLArg
;
50 cch_t
* apz_str
[ 108 ];
54 * Declare the global structure with all the pointers to translated
55 * strings. This is then used by the usage generation procedure.
57 extern usage_text_t option_usage_text
;
59 #if defined(AUTOOPTS_INTERNAL) /* DEFINE ALL THE STRINGS = = = = = */
61 * Provide a mapping from a short name to fields in this structure.
63 #define zAO_Bad (option_usage_text.apz_str[ 0])
64 #define zAO_Big (option_usage_text.apz_str[ 1])
65 #define zAO_Err (option_usage_text.apz_str[ 2])
66 #define zAO_Sml (option_usage_text.apz_str[ 3])
67 #define zAll (option_usage_text.apz_str[ 4])
68 #define zAlt (option_usage_text.apz_str[ 5])
69 #define zAmbigKey (option_usage_text.apz_str[ 6])
70 #define zAmbiguous (option_usage_text.apz_str[ 7])
71 #define zArgsMust (option_usage_text.apz_str[ 8])
72 #define zAtMost (option_usage_text.apz_str[ 9])
73 #define zAuto (option_usage_text.apz_str[ 10])
74 #define zBadPipe (option_usage_text.apz_str[ 11])
75 #define zBadVerArg (option_usage_text.apz_str[ 12])
76 #define zCantFmt (option_usage_text.apz_str[ 13])
77 #define zCantSave (option_usage_text.apz_str[ 14])
78 #define zDefaultOpt (option_usage_text.apz_str[ 15])
79 #define zDis (option_usage_text.apz_str[ 16])
80 #define zEnab (option_usage_text.apz_str[ 17])
81 #define zEquiv (option_usage_text.apz_str[ 18])
82 #define zErrOnly (option_usage_text.apz_str[ 19])
83 #define zExamineFmt (option_usage_text.apz_str[ 20])
84 #define zFiveSpaces (option_usage_text.apz_str[ 21])
85 #define zFlagOkay (option_usage_text.apz_str[ 22])
86 #define zFmtFmt (option_usage_text.apz_str[ 23])
87 #define zForkFail (option_usage_text.apz_str[ 24])
88 #define zFSErrOptLoad (option_usage_text.apz_str[ 25])
89 #define zFSErrReadFile (option_usage_text.apz_str[ 26])
90 #define zGenshell (option_usage_text.apz_str[ 27])
91 #define zGnuBoolArg (option_usage_text.utpz_GnuBoolArg)
92 #define zGnuBreak (option_usage_text.apz_str[ 28])
93 #define zGnuKeyArg (option_usage_text.utpz_GnuKeyArg)
94 #define zGnuKeyLArg (option_usage_text.utpz_GnuKeyLArg)
95 #define zGnuNestArg (option_usage_text.apz_str[ 29])
96 #define zGnuNumArg (option_usage_text.utpz_GnuNumArg)
97 #define zGnuOptArg (option_usage_text.apz_str[ 30])
98 #define zGnuOptFmt (option_usage_text.apz_str[ 31])
99 #define zGnuStrArg (option_usage_text.utpz_GnuStrArg)
100 #define zIllOptChr (option_usage_text.apz_str[ 32])
101 #define zIllOptStr (option_usage_text.apz_str[ 33])
102 #define zIllegal (option_usage_text.apz_str[ 34])
103 #define zInvalOptDesc (option_usage_text.apz_str[ 35])
104 #define zKeyWords (option_usage_text.apz_str[ 36])
105 #define zLoadCooked (option_usage_text.apz_str[ 37])
106 #define zLoadKeep (option_usage_text.apz_str[ 38])
107 #define zLoadType (option_usage_text.apz_str[ 39])
108 #define zLoadUncooked (option_usage_text.apz_str[ 40])
109 #define zLtypeInteger (option_usage_text.apz_str[ 41])
110 #define zLtypeNest (option_usage_text.apz_str[ 42])
111 #define zLtypeString (option_usage_text.apz_str[ 43])
112 #define zLtypeBool (option_usage_text.apz_str[ 44])
113 #define zLtypeKeyword (option_usage_text.apz_str[ 45])
114 #define zLtypeSetMembership (option_usage_text.apz_str[ 46])
115 #define zMembers (option_usage_text.apz_str[ 47])
116 #define zMisArg (option_usage_text.apz_str[ 48])
117 #define zMultiEquiv (option_usage_text.apz_str[ 49])
118 #define zMust (option_usage_text.apz_str[ 50])
119 #define zNeedOne (option_usage_text.apz_str[ 51])
120 #define zNoArg (option_usage_text.apz_str[ 52])
121 #define zNoArgs (option_usage_text.apz_str[ 53])
122 #define zNoCreat (option_usage_text.apz_str[ 54])
123 #define zNoFlags (option_usage_text.apz_str[ 55])
124 #define zNoKey (option_usage_text.apz_str[ 56])
125 #define zNoLim (option_usage_text.apz_str[ 57])
126 #define zNoPreset (option_usage_text.apz_str[ 58])
127 #define zNoRq_NoShrtTtl (option_usage_text.apz_str[ 59])
128 #define zNoRq_ShrtTtl (option_usage_text.apz_str[ 60])
129 #define zNoStat (option_usage_text.apz_str[ 61])
130 #define zNoState (option_usage_text.apz_str[ 62])
131 #define zNone (option_usage_text.apz_str[ 63])
132 #define zNotDef (option_usage_text.apz_str[ 64])
133 #define zNotEnough (option_usage_text.apz_str[ 65])
134 #define zNotFile (option_usage_text.apz_str[ 66])
135 #define zNotNumber (option_usage_text.apz_str[ 67])
136 #define zNrmOptFmt (option_usage_text.apz_str[ 68])
137 #define zNumberOpt (option_usage_text.apz_str[ 69])
138 #define zOneSpace (option_usage_text.apz_str[ 70])
139 #define zOnlyOne (option_usage_text.apz_str[ 71])
140 #define zOptsOnly (option_usage_text.apz_str[ 72])
141 #define zPathFmt (option_usage_text.apz_str[ 73])
142 #define zPlsSendBugs (option_usage_text.apz_str[ 74])
143 #define zPreset (option_usage_text.apz_str[ 75])
144 #define zPresetFile (option_usage_text.apz_str[ 76])
145 #define zPresetIntro (option_usage_text.apz_str[ 77])
146 #define zProg (option_usage_text.apz_str[ 78])
147 #define zProhib (option_usage_text.apz_str[ 79])
148 #define zReorder (option_usage_text.apz_str[ 80])
149 #define zReqFmt (option_usage_text.apz_str[ 81])
150 #define zReqOptFmt (option_usage_text.apz_str[ 82])
151 #define zReqThese (option_usage_text.apz_str[ 83])
152 #define zReq_NoShrtTtl (option_usage_text.apz_str[ 84])
153 #define zReq_ShrtTtl (option_usage_text.apz_str[ 85])
154 #define zSepChars (option_usage_text.apz_str[ 86])
155 #define zSetMembers (option_usage_text.apz_str[ 87])
156 #define zSetMemberSettings (option_usage_text.apz_str[ 88])
157 #define zShrtGnuOptFmt (option_usage_text.apz_str[ 89])
158 #define zSixSpaces (option_usage_text.apz_str[ 90])
159 #define zStdBoolArg (option_usage_text.apz_str[ 91])
160 #define zStdBreak (option_usage_text.apz_str[ 92])
161 #define zStdKeyArg (option_usage_text.apz_str[ 93])
162 #define zStdKeyLArg (option_usage_text.apz_str[ 94])
163 #define zStdNestArg (option_usage_text.apz_str[ 95])
164 #define zStdNoArg (option_usage_text.apz_str[ 96])
165 #define zStdNumArg (option_usage_text.apz_str[ 97])
166 #define zStdOptArg (option_usage_text.apz_str[ 98])
167 #define zStdReqArg (option_usage_text.apz_str[ 99])
168 #define zStdStrArg (option_usage_text.apz_str[100])
169 #define zTabHyp (option_usage_text.apz_str[101])
170 #define zTabHypAnd (option_usage_text.apz_str[102])
171 #define zTabout (option_usage_text.apz_str[103])
172 #define zThreeSpaces (option_usage_text.apz_str[104])
173 #define zTwoSpaces (option_usage_text.apz_str[105])
174 #define zUpTo (option_usage_text.apz_str[106])
175 #define zValidKeys (option_usage_text.apz_str[107])
178 * First, set up the strings. Some of these are writable. These are all in
179 * English. This gets compiled into libopts and is distributed here so that
180 * xgettext (or equivalents) can extract these strings for translation.
183 static char eng_zGnuBoolArg
[] = "=T/F";
184 static char eng_zGnuKeyArg
[] = "=KWd";
185 static char eng_zGnuKeyLArg
[] = "=Mbr";
186 static char eng_zGnuNumArg
[] = "=num";
187 static char eng_zGnuStrArg
[] = "=str";
188 static char const usage_txt
[3208] =
189 "AutoOpts function called without option descriptor\n\0"
190 "\tThis exceeds the compiled library version: \0"
191 "Automated Options Processing Error!\n"
192 "\t%s called AutoOpts function with structure version %d:%d:%d.\n\0"
193 "\tThis is less than the minimum library version: \0"
195 "\t\t\t\t- an alternate for %s\n\0"
196 "%s error: the keyword `%s' is ambiguous for %s\n\0"
198 "%s: Command line arguments required\n\0"
199 "%d %s%s options allowed\n\0"
200 "version and help options:\0"
201 "Error %d (%s) from the pipe(2) syscall\n\0"
202 "ERROR: version option argument '%c' invalid. Use:\n"
203 "\t'v' - version only\n"
204 "\t'c' - version and copyright\n"
205 "\t'n' - version and copyright notice\n\0"
206 "ERROR: %s option conflicts with the %s option\n\0"
207 "%s(optionSaveState): error: cannot allocate %d bytes\n\0"
208 "\t\t\t\t- default option for unnamed options\n\0"
209 "\t\t\t\t- disabled as --%s\n\0"
210 "\t\t\t\t- enabled by default\n\0"
213 " - examining environment variables named %s_*\n\0"
215 "Options are specified by doubled hyphens and their name\n"
216 "or by a single hyphen and the flag character.\n\0"
218 "fs error %d (%s) on fork - cannot obtain %s usage\n\0"
219 "File error %d (%s) opening %s for loading options\n\0"
220 "fs error %d (%s) reading file %s\n\0"
222 "= = = = = = = =\n\n"
223 "This incarnation of genshell will produce\n"
224 "a shell script to parse the options for %s:\n\n\0"
230 "%s: illegal option -- %c\n\0"
231 "%s: %s option -- %s\n\0"
233 "AutoOpts ERROR: invalid option descriptor for %s\n\0"
245 "\t\t\t\t- is a set membership option\n\0"
246 "%s: option `%s' requires an argument\n\0"
247 "Equivalenced option '%s' was equivalenced to both\n"
249 "\t\t\t\t- must appear between %d and %d times\n\0"
250 "ERROR: The %s option is required\n\0"
251 "%s: option `%s' cannot have an argument\n\0"
252 "%s: Command line arguments not allowed\n\0"
253 "error %d (%s) creating %s\n\0"
254 "Options are specified by single or double hyphens and their name.\n\0"
255 "%s error: `%s' does not match any %s keywords\n\0"
256 "\t\t\t\t- may appear multiple times\n\0"
257 "\t\t\t\t- may not be preset\n\0"
258 " Arg Option-Name Description\n\0"
259 " Flg Arg Option-Name Description\n\0"
260 "error %d (%s) stat-ing %s\n\0"
261 "%s(optionRestore): error: no saved option state\n\0"
263 "'%s' not defined\n\0"
264 "ERROR: The %s option must appear %d times\n\0"
265 "error: cannot load options from non-regular file %s\n\0"
266 "%s error: `%s' is not a recognizable number\n\0"
268 "The '-#<number>' option may omit the hash char\n\0"
270 "one %s%s option allowed\n\0"
271 "All arguments are named options.\n\0"
272 " - reading file %s\0"
274 "please send bug reports to: %s\n\0"
275 "\t\t\t\t- may NOT appear - preset only\n\0"
276 "# preset/initialization file\n"
279 "The following option preset mechanisms are supported:\n\0"
281 "prohibits these options:\n\0"
282 "Operands and options may be intermixed. They will be reordered.\n\0"
283 "ERROR: %s option requires the %s option\n\0"
285 "requires these options:\n\0"
286 " Arg Option-Name Req? Description\n\0"
287 " Flg Arg Option-Name Req? Description\n\0"
290 "or you may use a numeric representation. Preceding these with a '!' will\n"
291 "clear the bits, specifying 'none' will clear all bits, and 'all' will set them\n"
292 "all. Multiple entries may be passed as an option argument list.\n\0"
312 "\t\t\t\t- may appear up to %d times\n\0"
313 "The valid \"%s\" option keywords are:\n\0";
317 * Now, define (and initialize) the structure that contains
318 * the pointers to all these strings.
319 * Aren't you glad you don't maintain this by hand?
321 usage_text_t option_usage_text
= {
323 eng_zGnuBoolArg
, eng_zGnuKeyArg
, eng_zGnuKeyLArg
, eng_zGnuNumArg
,
326 usage_txt
+ 0, usage_txt
+ 52, usage_txt
+ 98, usage_txt
+ 197,
327 usage_txt
+ 247, usage_txt
+ 251, usage_txt
+ 278, usage_txt
+ 327,
328 usage_txt
+ 337, usage_txt
+ 374, usage_txt
+ 399, usage_txt
+ 425,
329 usage_txt
+ 465, usage_txt
+ 602, usage_txt
+ 650, usage_txt
+ 704,
330 usage_txt
+ 746, usage_txt
+ 770, usage_txt
+ 796, usage_txt
+ 809,
331 usage_txt
+ 823, usage_txt
+ 870, usage_txt
+ 876, usage_txt
+ 979,
332 usage_txt
+ 991, usage_txt
+1042, usage_txt
+1093, usage_txt
+1127,
333 usage_txt
+1233, usage_txt
+1239, usage_txt
+1245, usage_txt
+1252,
334 usage_txt
+1263, usage_txt
+1289, usage_txt
+1310, usage_txt
+1318,
335 usage_txt
+1369, usage_txt
+1376, usage_txt
+1383, usage_txt
+1388,
336 usage_txt
+1394, usage_txt
+1403, usage_txt
+1411, usage_txt
+1418,
337 usage_txt
+1425, usage_txt
+1430, usage_txt
+1438, usage_txt
+1442,
338 usage_txt
+1476, usage_txt
+1514, usage_txt
+1579, usage_txt
+1622,
339 usage_txt
+1657, usage_txt
+1698, usage_txt
+1738, usage_txt
+1765,
340 usage_txt
+1832, usage_txt
+1880, usage_txt
+1913, usage_txt
+1938,
341 usage_txt
+1973, usage_txt
+2011, usage_txt
+2038, usage_txt
+2087,
342 usage_txt
+2092, usage_txt
+2110, usage_txt
+2154, usage_txt
+2208,
343 usage_txt
+2254, usage_txt
+2262, usage_txt
+2310, usage_txt
+2312,
344 usage_txt
+2337, usage_txt
+2371, usage_txt
+2390, usage_txt
+2424,
345 usage_txt
+2460, usage_txt
+2498, usage_txt
+2554, usage_txt
+2562,
346 usage_txt
+2588, usage_txt
+2654, usage_txt
+2696, usage_txt
+2710,
347 usage_txt
+2735, usage_txt
+2775, usage_txt
+2818, usage_txt
+2822,
348 usage_txt
+2831, usage_txt
+3050, usage_txt
+3053, usage_txt
+3060,
349 usage_txt
+3064, usage_txt
+3072, usage_txt
+3076, usage_txt
+3080,
350 usage_txt
+3084, usage_txt
+3088, usage_txt
+3092, usage_txt
+3096,
351 usage_txt
+3100, usage_txt
+3104, usage_txt
+3111, usage_txt
+3123,
352 usage_txt
+3131, usage_txt
+3135, usage_txt
+3138, usage_txt
+3171
356 #endif /* DO_TRANSLATIONS */
357 #endif /* AUTOOPTS_USAGE_TXT_H_GUARD */