adapt code from multilingual-wp for a simpler post editor interface