vendor/engines/adva_cms/app/helpers/base_helper.rb
def pluralize_str(count, singular, plural = nil)
    str = if count.to_i == 1
      singular
    elsif plural
      plural
    elsif Object.const_defined?("Inflector")
      Inflector.pluralize(singular)
    else
      singular + "s"
    end
    str % count.to_i
  end
# same as Rails text helper, but returns only the pluralized string without 
# the number botched into it  
same as Rails text helper, but returns only the pluralized string without
the number botched into it
same as Rails text helper but returns only the pluralized string without the number botched into it
def pluralize_str(count, singular, plural = nil)
    str = if count.to_i == 1
      singular
    elsif plural
      plural
    elsif Object.const_defined?("Inflector")
      Inflector.pluralize(singular)
    else
      singular + "s"
    end
    str % count.to_i
  end
def pluralize_str ( count , singular , plural = nil ) str = if count . to_i == 1 singular elsif plural plural elsif Object . const_defined? ( "Inflector" ) Inflector . pluralize ( singular ) else singular + "s" end str % count . to_i end
same as Rails text helper, but returns only the pluralized string without
the number botched into it
same as Rails text helper but returns only the pluralized string without the number botched into it
count
singular
plural