On 2012.09.17 09:51, Hans de Goede wrote: > may I suggest one modification though: > 1) We make the extra parameter: "const char *lang" (I guess you already > had that in mind just stating it explicitly)
Anything ISO, be it string or int, is fine by me. I have no preference either way, and from what I gather string will be easier for app developers, so I'm fine with const char* > 2) We add a "const char *(*get_default_lang)(struct libusb_context *ctx);" > member to struct usbi_os_backend > > 3) When the lang param is NULL, then the os_backend get_default_lang op gets > called. On Linux + BSD this could do the necessary environment munging, > avoiding > apps having to duplicate this everywhere. On Windows it could get the language > the OS is installed in / configured for, etc. This implies libusb trying to detect the OS/application language, which I'm not really willing to handle, and which I think is fraught to bad guesses (someone may be running on an English OS but have the ability to select language in the app => might as well let the app developer be in charge of both detection of the default language they want and how they should handle what they get). Being smart about localization is hard and time consuming. For 20 messages, I'd rather avoid going there, or at least not in first instance. How about we first provide the one call, see how it's being used, and then decide if we need to add some more? > Sounds good to me, I say go for it! I'll do so after the 1.0.13 release. Since this is issue #14, I have now added a comment and set its target for 1.0.14. See https://github.com/libusbx/libusbx/issues/14 Also (mostly because, I still want to be able to check the mailing list while at work) I have now added libusbx-devel to nabble. See: http://libusbx.1081486.n5.nabble.com/ I requested libusbx-devel to be duplicated on marc.info, but it doesn't seem to have occurred yet. Regards, /Pete Regards ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel