Added localization support for template cache. Embedded resource provider fixes.