Added localizeText method