Escape single quotes in Catalan and fix array closure in Spanish