resolve/refinerycms — pull request #1153 by phiggins (2011-11-28 04:00:53+00:00)
Title: Add alt text for images.

Included in this pull request:
* Add alt text to the refinery_images table.
* Add a field to the admin images new/edit form for the alt text.
* Change Refinery::Image#title to use the alt text if it is present before falling back to the current behavior (a titleized version of the filename).
* A bit of refactoring for one part of Refinery::Admin::ImagesController#create.

Notes:
* I'm not crazy about the database column name 'alt'. The project where I originally hacked this in I used 'description', but I wasn't too happy with that either.
* As soon as I added anything to the image form, the image request specs failed saying they [were unable to locate the iframe](https://gist.github.com/1399023). Removing the calls to `within_frame` allow the specs to pass and they appear to work the same, they are just a bit less organized.
* I didn't add a translation of "Alt Text" to any of the locale files except English. I believe without that present, other languages will just have "Alt" displayed. I thought that was better than having me spend the time to add badly machine translated versions to all the other locales.
* There is no integration with the translations table for the alt text, which might be a desirable feature. I have no experience with that feature or using Refinery with multiple languages and I wasn't sure what the best approach was or how much more work it would be.

Thoughts?