lib/gettext/textdomain_manager.rb
# Translates msgid, but if there are no localized text, 
# it returns a last part of msgid separeted "div" or whole of the msgid with no "div".
#
# * msgid: the message id.
# * div: separator or nil.
# * Returns: the localized text by msgid. If there are no localized text, 
#   it returns a last part of msgid separeted "div".
Translates msgid, but if there are no localized text,
it returns a last part of msgid separeted "div" or whole of the msgid with no "div".

the message id.
div: separator or nil.
Returns: the localized text by msgid. If there are no localized text,
it returns a last part of msgid separeted "div".
Translates msgid but if there are no localized text it returns a last part of msgid separeted " div " or whole of the msgid with no " div " . the message id . div : separator or nil . Returns : the localized text by msgid . If there are no localized text it returns a last part of msgid separeted " div " .
def translate_singluar_message(klass, msgid, div = '|')
      lang = Locale.candidates(:supported_language_tags => @supported_language_tags, 
                               :type => :posix)[0]
      translate_singluar_message_to(lang, klass, msgid, div)
    end
def translate_singluar_message ( klass , msgid , div = '|' ) lang = Locale . candidates ( :supported_language_tags => @supported_language_tags , :type => :posix ) [ 0 ] translate_singluar_message_to ( lang , klass , msgid , div ) end
Translates msgid, but if there are no localized text,
it returns a last part of msgid separeted "div" or whole of the msgid with no "div".
Translates msgid but if there are no localized text it returns a last part of msgid separeted " div " or whole of the msgid with no " div " .
klass
<not_specific>
msgid
<not_specific>
div
<not_specific>