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

Michael Sweet <[email protected]> Thu, 29 Jun 2017 11:15:54 -0400
Newsgroups gmane.comp.printing.cups.devel
Message-ID <[email protected]>
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 <[email protected]> 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
> [email protected]
> https://lists.cups.org/mailman/listinfo/cups-devel

_________________________________________________________
Michael Sweet, Senior Printing System Engineer