2011/5/29 Amos Jeffries <squid3@xxxxxxxxxxxxx>: > On 29/05/11 23:29, E.S. Rosenberg wrote: >> >> Hi all, >> We would like to create a few cutom errors and have them exist in the >> most common languages on our campus, I added the custom page to the >> templates folder, and I added a custom page to one of the languages, >> however when I browse with auto negotiate set to the language I still >> just get the English message instead of the language's message (and >> the localized version is 100% different since we translated it >> completely). >> Is there some other step that I missed here? > > * Squid version must be 3.1 or later. Check: 3.1.6 > * error_directory directive MUST be absent from squid.conf. Check > * your new template(s) must be readable by the squid user account. Check > permissions match the files around them. Check > * browser must be advertising the test language first in the > Accept-Language header. (Squid processes it left-to-right looking for the > first available template) Afaik it is, with other (builtin like ERR_ACCESS_DENIED) pages I get the translated page just not with the custom page. > > You can see what Squid is doing with "debug_options 4,6" Ok, it showed me the following: errorpage.cc(1044) BuildContent: No existing error page language negotiated for ERR_WORKTIME_ACCESS_DENIED. Using default error file . Which suggests that the somehow the browser is not sending the language header with this block page.... BTW. the "float: right" makes the hebrew error messages very unreadable, direction: rtl; seems to be sufficient (only tested on IE8-9, FF3.6 and FF4) Thanks and regards, Eli > > Amos > -- > Please be using > Current Stable Squid 2.7.STABLE9 or 3.1.12 > Beta testers wanted for 3.2.0.7 and 3.1.12.1 >