instance method
sgettext
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
sgettext(msgid, separator = '|')
No documentation comment.
Parameters
-
msgidreq -
separatoropt = '|'
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/gettext/helpers.rb, line 16
def sgettext(msgid, separator = '|')
scope, msgid = I18n::Gettext.extract_scope(msgid, separator)
I18n.t(msgid, :scope => scope, :default => msgid, :separator => separator)
end
Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/gettext/helpers.rb line 16
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n::Gettext::Helpers