sealink/dependent_restrict — pull request #3 by fellix (2014-04-02 22:23:28+00:00)
Title: Added I18n support for exception messages

I am not quit sure if this is something that you want on your project, but I am using it on a Rails 2 project, and i really needed those messages in pt-BR, so I just added I18n support to your project.

It's very simple to customize, there are 4 keys to be defined in order to translate:
```dependent_restrict.basic_message.one``` -> message to be displayed when a single record breaks the validation, needs name variable to be defined, aka: ```Cannot delete record because dependent %{name} exists```
```dependent_restrict.basic_message.others```-> message to be displayed when more than one record breaks the validation, have two variables, name and count, example: ```Cannot delete record because %{count} dependent %{name} exist```

also, for more detailed message
```dependent_restrict.detailed_message.and_more```: and %{count} more
```dependent_restrict.detailed_message.includes```: These include

I also added a compatibility mode, if the Internationalization is not found, it will use the default messages that already is being used by the project.

Let me know if you need something else in it.

Regards