define class variables
fix undefined $search
make search strings translation-ready