mirror of
https://github.com/discourse/discourse.git
synced 2026-08-05 02:43:08 -05:00
FIX: Use correct plural rules for Russian (#19467)
Previously this didn't work because Transifex didn't support "many".
This commit is contained in:
@@ -171,7 +171,7 @@ RSpec.describe Admin::SiteTextsController do
|
||||
|
||||
context 'with language with different plural keys and missing translations' do
|
||||
let(:locale) { :ru }
|
||||
let(:expected_translations) { { one: '%{count} colour', few: '%{count} colours', other: '%{count} colours' } }
|
||||
let(:expected_translations) { { one: '%{count} colour', few: '%{count} colours', many: '%{count} colours', other: '%{count} colours' } }
|
||||
|
||||
include_examples 'finds correct plural keys'
|
||||
end
|
||||
@@ -182,7 +182,7 @@ RSpec.describe Admin::SiteTextsController do
|
||||
end
|
||||
|
||||
let(:locale) { :ru }
|
||||
let(:expected_translations) { { one: '%{count} colour', few: '%{count} цвета', other: '%{count} colours' } }
|
||||
let(:expected_translations) { { one: '%{count} colour', few: '%{count} цвета', many: '%{count} цветов', other: '%{count} colours' } }
|
||||
|
||||
include_examples 'finds correct plural keys'
|
||||
end
|
||||
@@ -195,7 +195,7 @@ RSpec.describe Admin::SiteTextsController do
|
||||
end
|
||||
|
||||
let(:locale) { :ru }
|
||||
let(:expected_translations) { { one: 'ONE', few: 'FEW', other: '%{count} colours' } }
|
||||
let(:expected_translations) { { one: 'ONE', few: 'FEW', many: '%{count} цветов', other: '%{count} colours' } }
|
||||
let(:expected_overridden) { { one: true, few: true } }
|
||||
|
||||
include_examples 'finds correct plural keys'
|
||||
|
||||
Reference in New Issue
Block a user