]> git.evergreen-ils.org Git - working/Evergreen.git/blob - docs/RELEASE_NOTES_NEXT/Administration/idl2js-locale-support.txt
Remove manual TPAC locale applications
[working/Evergreen.git] / docs / RELEASE_NOTES_NEXT / Administration / idl2js-locale-support.txt
1 Upgrade Notes : IDL2js Locale Support
2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3
4 The following Apache configuration changes are required to support the 
5 locale-aware IDL2js module.  
6
7 // note: there's no Apache conf highlighting.  'bash' works well enough.
8 [source, bash]
9 -----------------------------------------------------------------
10 # file: eg_vhost.conf
11
12 # this is the new part
13 # capture locale CGI param for /reports/fm_IDL.xml
14 RewriteCond %{REQUEST_URI} ^/reports/fm_IDL.xml
15 RewriteCond %{QUERY_STRING} locale=([^&;]*)
16 RewriteRule . - [E=locale:%1]
17
18 # it should be placed just above this existing config section
19 <LocationMatch /reports/fm_IDL.xml>
20     IDLChunkStripPI "yes"
21     IDLChunkEscapeScript "no"
22     IDLChunkStripComments "yes"
23     IDLChunkStripDoctype "yes"
24     IDLChunkContentType "application/xml; charset=utf-8"
25     AddOutputFilter INCLUDES;IDLCHUNK .xml
26 </LocationMatch>
27 -----------------------------------------------------------------
28