| 434 | */ |
| 435 | |
| 436 | const char * /* O - Value or @code NULL@ if not found */ |
| 437 | ppdLocalizeMarkerName( |
| 438 | ppd_file_t *ppd, /* I - PPD file */ |
| 439 | const char *name) /* I - Marker name to look up */ |
| 440 | { |
| 441 | ppd_attr_t *locattr; /* Localized attribute */ |
| 442 | char ll_CC[6]; /* Language + country locale */ |
| 443 | |
| 444 | |
| 445 | /* |
| 446 | * Range check input... |
| 447 | */ |
| 448 | |
| 449 | if (!ppd || !name) |
| 450 | return (NULL); |
| 451 | |
| 452 | /* |
| 453 | * Get the default language... |
| 454 | */ |
| 455 | |
| 456 | ppd_ll_CC(ll_CC, sizeof(ll_CC)); |
| 457 | |
| 458 | /* |
| 459 | * Find the localized attribute... |
| 460 | */ |
| 461 | |
| 462 | if ((locattr = _ppdLocalizedAttr(ppd, "cupsMarkerName", name, |
| 463 | ll_CC)) == NULL) |
| 464 | locattr = ppdFindAttr(ppd, "cupsMarkerName", name); |
| 465 | |
| 466 | return (locattr ? locattr->text : NULL); |
| 467 | } |
| 468 | |
| 469 | |
| 470 | /* |