| Module | Globalize::CoreExtensions::Symbol |
| In: |
vendor/plugins/globalize/lib/globalize/localization/core_ext.rb
|
Translates the symbol into the active language. Underscores are converted to spaces.
If there is no translation available, default will be returned, or if it’s not supplied, the original string will be returned.
# File vendor/plugins/globalize/lib/globalize/localization/core_ext.rb, line 44
44: def translate(default = nil)
45: Locale.translate(self, default)
46: end