translations broken when attributes is array

fixes #688, sometimes the attributes object comes over as an array, we
need to check for that
Merge pull request #699 from ebensing/trans_broken

translations broken when attributes is array