Revision 2397
Added by Jean-Philippe Lang over 16 years ago
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
Implements lwr method using I18n.