Added helper functions to recursively localize a control and its child elements