Moved yaml error message into locales.