Added translation function to hard-coded strings.