mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-26 16:52:12 +05:30
Ameba: Fix Naming/PredicateName
This commit is contained in:
parent
205f988491
commit
6506b8dbfc
@ -188,7 +188,7 @@ module I18next::Plurals
|
|||||||
|
|
||||||
# Emulate the `rule.numbers.size == 2 && rule.numbers[0] == 1` check
|
# Emulate the `rule.numbers.size == 2 && rule.numbers[0] == 1` check
|
||||||
# from original i18next code
|
# from original i18next code
|
||||||
private def is_simple_plural(form : PluralForms) : Bool
|
private def simple_plural?(form : PluralForms) : Bool
|
||||||
case form
|
case form
|
||||||
when .single_gt_one? then return true
|
when .single_gt_one? then return true
|
||||||
when .single_not_one? then return true
|
when .single_not_one? then return true
|
||||||
@ -210,7 +210,7 @@ module I18next::Plurals
|
|||||||
idx = SuffixIndex.get_index(plural_form, count)
|
idx = SuffixIndex.get_index(plural_form, count)
|
||||||
|
|
||||||
# Simple plurals are handled differently in all versions (but v4)
|
# Simple plurals are handled differently in all versions (but v4)
|
||||||
if @simplify_plural_suffix && is_simple_plural(plural_form)
|
if @simplify_plural_suffix && simple_plural?(plural_form)
|
||||||
return (idx == 1) ? "_plural" : ""
|
return (idx == 1) ? "_plural" : ""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user