Clean up Mozl10n API in FTU #1058985

change from setting attribute to comparing getattribute to a value in the whole file