Dojo IDL: Set the "Accept-Language" header user/paxed/lp1078596_fmidl_i18n
authorDan Scott <dscott@laurentian.ca>
Tue, 18 Dec 2012 13:52:55 +0000 (08:52 -0500)
committerPasi Kallinen <pasi.kallinen@pttk.fi>
Wed, 19 Dec 2012 08:25:40 +0000 (10:25 +0200)
commit6dbfc2440cf689e68fb27bc401b335ced8c8cbbd
tree56bc6ec764cf252215f53371dc3092e1c02a1219
parentd1cc85e1d2ab627eae089c710275d0b39cf72126
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>
Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
Open-ILS/web/js/dojo/fieldmapper/IDL.js