From: msweet Date: Fri, 26 Jul 2013 11:50:02 +0000 (+0000) Subject: Error messages from the scheduler were not localized using the language X-Git-Tag: release-1.7.0~23 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fcups.git;a=commitdiff_plain;h=1523f10d8173f73006ee3cc416046f6aee0a80b5 Error messages from the scheduler were not localized using the language specified in the client's IPP request () git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11195 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/CHANGES.txt b/CHANGES.txt index 48f32de70..aaba117b1 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,10 +1,13 @@ -CHANGES.txt - 1.7.0 - 2013-07-25 +CHANGES.txt - 1.7.0 - 2013-07-26 -------------------------------- CHANGES IN CUPS V1.7.0 - Fax queues did not work when shared via Bonjour () + - Error messages from the scheduler were not localized using the + language specified in the client's IPP request + () - Added an Italian localization () - Fixed a couple memory leaks in ippfind that were reported by Clang. - Fixed a compile issue on 64-bit Linux with Clang - need to use the diff --git a/doc/help/man-cupsaddsmb.html b/doc/help/man-cupsaddsmb.html index cc4e46e6c..0bb0ddcd9 100644 --- a/doc/help/man-cupsaddsmb.html +++ b/doc/help/man-cupsaddsmb.html @@ -162,6 +162,8 @@ Getting the full set of Windows driver files should be easier.

See Also

smbd(8), smb.conf(5), http://localhost:631/help +
+http://www.cups.org/windows/

Copyright

Copyright 2007-2013 by Apple Inc. diff --git a/scheduler/ipp.c b/scheduler/ipp.c index 906f6922e..d04f8c4ff 100644 --- a/scheduler/ipp.c +++ b/scheduler/ipp.c @@ -353,7 +353,20 @@ cupsdProcessIPPRequest( if (attr && attr->name && !strcmp(attr->name, "attributes-natural-language") && (attr->value_tag & IPP_TAG_MASK) == IPP_TAG_LANGUAGE) + { language = attr; + + /* + * Reset language for this request if different from Accept-Language. + */ + + if (!con->language || + strcmp(attr->values[0].string.text, con->language->language)) + { + cupsLangFree(con->language); + con->language = cupsLangGet(attr->values[0].string.text); + } + } else language = NULL;