fix content error translation when content_name is nested on element
add test for translation error messages when content_name is nested on element