Set locale properly in Apache configuration
authorDan Scott <dscott@laurentian.ca>
Tue, 18 Dec 2012 12:39:18 +0000 (07:39 -0500)
committerDan Scott <dscott@laurentian.ca>
Wed, 19 Dec 2012 14:55:59 +0000 (09:55 -0500)
commitdfe7598493edd0348045ed2a6cb26d10e95be99a
tree90db781f9d94f56f76946ea1a6c27052172ae243
parent25e1b57aa03518edf86c2de9c15a1ab8b6d8c1d7
Set locale properly in Apache configuration

A RewriteCond only applies to the next RewriteRule, while our config was
attempting to apply multiple rules for a single condition. Fix that up
by using skip (S) rules to apply blocks of rules for the condition in
question.

Also, use the HTTP:Accept-Language value directly, rather than relying
on a backreference (which did not seem to be working as desired).

These fixes enable screens like the Register Patron interface to present
field labels from the IDL in the correct locale, whereas previously they
would always default to en-US.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
Open-ILS/examples/apache/eg_vhost.conf