etnt/gettext — pull request #5 by jcomellas (2011-10-12 16:46:36+00:00)
Title: Make the callback module configurable in the application environment

I've modified `gettext.erl` too add the function `callback_mod/0` that tries to get the name of the callback module from the application's environment and defaults to `gettext_server` if the configuration key was not set. I also changed gettext_sup.erl to use this function when initializing the supervisor instead of hardcoding the value of the callback module.

The reason for this change was to be able to set the _gettext_ directory and default language from the `app.config` file of the application that uses _gettext_ instead of having to use environment variables from the OS shell or having to directly instantiate _gettext's_ supervisor from my application.

Please let me know if you need me to make additional changes to accept this patch.