lib/fast_gettext/translation.rb
# translate, but discard namespace if nothing was found
# Car|Tire -> Tire if no translation could be found
translate, but discard namespace if nothing was found
Car|Tire -> Tire if no translation could be found
translate but discard namespace if nothing was found Car|Tire - > Tire if no translation could be found
def s_(key, separator = nil)
      translation = FastGettext.cached_find(key)
      return translation if translation
      block_given? ? yield : key.split(separator || NAMESPACE_SEPARATOR).last
    end
def s_ ( key , separator = nil ) translation = FastGettext . cached_find ( key ) return translation if translation block_given? ? yield : key . split ( separator || NAMESPACE_SEPARATOR ) . last end
translate, but discard namespace if nothing was found
Car|Tire -> Tire if no translation could be found
translate but discard namespace if nothing was found Car|Tire - > Tire if no translation could be found
key
<not_specific>
separator
<not_specific>