Dojo IDL: Set the "Accept-Language" header user/dbs/lp1078596_fmidl_i18n
authorDan Scott <dscott@laurentian.ca>
Tue, 18 Dec 2012 13:52:55 +0000 (08:52 -0500)
committerDan Scott <dscott@laurentian.ca>
Tue, 18 Dec 2012 13:52:55 +0000 (08:52 -0500)
commitf0f84d782fe5a0333745f6edd50b6b2b4dbace2c
tree66fd96cc6de1dbf339015f64f77a89d24e5a2d89
parenteb6da39d7746ac6525d1b53302244e0a2cf6f76b
Dojo IDL: Set the "Accept-Language" header

The internationalization support for /reports/fm_IDL.xml keys off of the
Accept-Language header - which, if not set to ^[a-z]{2}-[A-Z]{2}$, falls
back to en-US. Setting the header in the dojo.xhrGet() request makes
Apache able to serve up the right flavour of /reports/fm_IDL.xml

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/web/js/dojo/fieldmapper/IDL.js