lib/fast_gettext/translation.rb in grosser-fast_gettext-0.3.0 vs lib/fast_gettext/translation.rb in grosser-fast_gettext-0.3.1

- old
+ new

@@ -29,9 +29,10 @@ def n_(*msgids) count = msgids.pop translations = FastGettext.current_repository.plural(*msgids) selected = FastGettext.current_repository.pluralisation_rule.call(count) + selected = selected ? 1 : 0 unless selected.is_a? Numeric #convert booleans to numbers translations[selected] || msgids[selected] || msgids.last end #translate, but discard namespace if nothing was found # Car|Tire -> Tire if no translation could be found \ No newline at end of file