modify setTextDomain in subTemplate + add PHP DOC