turquoiseowl / i18n

Smart internationalization for ASP.NET
Other
556 stars 156 forks source link

AJAX POSTBACK's not processed when using Telerik RadCompression #343

Open dbonnell opened 7 years ago

dbonnell commented 7 years ago

When the Telerik.Web.UI.RadCompression module is installed to compress AJAX POSTBACKs, nugget translation is not applied even if the i18n.LocalizingModule is installed before the RadCompression module.

What I found is that LocalizedApplication.InstallResponseFilter is not installing the ResponseFilter because the RadCompression module has set the Content-Encoding to gzip at some earlier stage in the pipeline. As ResponseFilter.Write detects a gzip compressed stream and passes through the data unmodified, that is a performance optimization only so I commented it out and nugget translation of AJAX POSTBACK's was then done before the RadCompression module compressed the results.