Fix for localization of nested external templates