Project

General

Profile

« Previous | Next » 

Revision 2397

Implements lwr method using I18n.

View differences:

sandbox/rails-2.2/lib/redmine/i18n.rb
22 22
      ::I18n.t(k, :default => s.to_s.humanize)
23 23
    end
24 24
    
25
    def lwr(*args)
26
      GLoc.lwr(*args)
25
    def lwr(str, count)
26
      count > 1 ? ::I18n.t("#{str}_plural", :count => count) : ::I18n.t(str, :count => count)
27 27
    end
28 28
    
29 29
    def ll(lang, str)

Also available in: Unified diff