Refactor Ransack::Translate, esp. the attribute_name

class method, hopefully for better readability and
maintainability.

All these class methods make me wonder if `attribute_name`
shouldn’t be in a separate class with instance methods
instead.