lib/papla/backend.rb in papla-0.1.1 vs lib/papla/backend.rb in papla-0.1.2
- old
+ new
@@ -21,10 +21,10 @@
end
def rank(index, number)
rule = pluralization_rule(number)
rules = translate(:ranks)[index]
- rules[rule.to_s]
+ rules[rule] || rules[rule.to_s]
end
def cents(basic_phrase, cents)
cents = "%02d" % cents
translate(:cents, basic_phrase: basic_phrase, cents: cents)