Title language selection implemented

solved bug preventing metadata gathering, array with languages wasn't defined following new code