[cups-devel] The cups API - Localizing options and values

Michael Sweet msweet at apple.com
Thu Jun 29 08:15:54 PDT 2017


Localization in this context means to get a text string that matches the current user's locale.  So rather than getting "na_letter_8.5x11in" for a media size you'd get "US Letter" (or the equivalent in your locale).


> On Jun 29, 2017, at 2:12 AM, Nilanjana Lodh <nilanjanalodh at gmail.com> wrote:
> 
> Hi everyone,
> 
> I was going through the new CUPS Programming manual, and I see a few
> functions regarding 'localization' of options and values:
> However, I am not able to clearly understand what 'localization' means in
> this context. DIdn't find any example, too. Would be great if someone could
> help me out in understanding this!
> 
> const char *cupsLocalizeDestOption (
>    http_t <https://www.cups.org/doc/cupspm.html#http_t> *http,
>    cups_dest_t <https://www.cups.org/doc/cupspm.html#cups_dest_t> *dest,
>    cups_dinfo_t <https://www.cups.org/doc/cupspm.html#cups_dinfo_t> *dinfo,
>    const char *option
> );
> 
> 
> 
> Thanks and regards,
> 
> Nilanjana Lodh
> _______________________________________________
> cups-devel mailing list
> cups-devel at cups.org
> https://lists.cups.org/mailman/listinfo/cups-devel

_________________________________________________________
Michael Sweet, Senior Printing System Engineer



More information about the cups-devel mailing list