fix qtranslate function and try to fix tutorial domdoc function