fixed translation bug related to header and localized variables