lib/sproutcore/helpers/static_helper.rb
# Localizes the passed string, using the optional passed options.
Localizes the passed string, using the optional passed options.
Localizes the passed string using the optional passed options .
def loc(string, opts = {})
        string = string.nil? ? '' : string.to_s
        opts[:language] ||= language
        opts[:platform] ||= platform
        bundle.strings_hash(opts)[string] || string
      end
def loc ( string , opts = { } ) string = string . nil? ? '' : string . to_s opts [ :language ] ||= language opts [ :platform ] ||= platform bundle . strings_hash ( opts ) [ string ] || string end
Localizes the passed string, using the optional passed options.
Localizes the passed string using the optional passed options .
string
<not_specific>
opts
<not_specific>