2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-03-04 01:15:08 +08:00
discourse/spec/lib/i18n
Sam 2e3d01ae0b
FIX: incorrect Breton plural rule logic operator (#37545)
Technically there appear to also be a two and many... but this at least
removes some of the bug.

```
def wrong(n)
  n != 13 || n != 14
end

def right(n)
  n != 13 && n != 14
end

[13, 14, 15].each do |n|
  puts "#{n}: wrong=#{wrong(n)}, right=#{right(n)}"
end
```

15 is (not 13) OR (not 14)
15 is not (not 13) AND (not 14)

apologies for the headache.
2026-02-05 18:04:59 +11:00
..
breton_plural_rule_spec.rb FIX: incorrect Breton plural rule logic operator (#37545) 2026-02-05 18:04:59 +11:00
discourse_i18n_spec.rb
fallback_locale_list_spec.rb
i18n_interpolation_keys_finder_spec.rb