modify setTextDomain in subTemplate