Localization support. Fix to support template