| 278 | */ |
| 279 | |
| 280 | const char * /* O - Status string */ |
| 281 | ppdErrorString(ppd_status_t status) /* I - PPD status */ |
| 282 | { |
| 283 | static const char * const messages[] =/* Status messages */ |
| 284 | { |
| 285 | _("OK"), |
| 286 | _("Unable to open PPD file"), |
| 287 | _("NULL PPD file pointer"), |
| 288 | _("Memory allocation error"), |
| 289 | _("Missing PPD-Adobe-4.x header"), |
| 290 | _("Missing value string"), |
| 291 | _("Internal error"), |
| 292 | _("Bad OpenGroup"), |
| 293 | _("OpenGroup without a CloseGroup first"), |
| 294 | _("Bad OpenUI/JCLOpenUI"), |
| 295 | _("OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first"), |
| 296 | _("Bad OrderDependency"), |
| 297 | _("Bad UIConstraints"), |
| 298 | _("Missing asterisk in column 1"), |
| 299 | _("Line longer than the maximum allowed (255 characters)"), |
| 300 | _("Illegal control character"), |
| 301 | _("Illegal main keyword string"), |
| 302 | _("Illegal option keyword string"), |
| 303 | _("Illegal translation string"), |
| 304 | _("Illegal whitespace character"), |
| 305 | _("Bad custom parameter"), |
| 306 | _("Missing option keyword"), |
| 307 | _("Bad value string"), |
| 308 | _("Missing CloseGroup"), |
| 309 | _("Bad CloseUI/JCLCloseUI"), |
| 310 | _("Missing CloseUI/JCLCloseUI") |
| 311 | }; |
| 312 | |
| 313 | |
| 314 | if (status < PPD_OK || status >= PPD_MAX_STATUS) |
| 315 | return (_cupsLangString(cupsLangDefault(), _("Unknown"))); |
| 316 | else |
| 317 | return (_cupsLangString(cupsLangDefault(), messages[status])); |
| 318 | } |
| 319 | |
| 320 | |
| 321 | /* |