Make text 'There is one match' more translation-friendly

For languages that have more than 2 plural forms (e.g. Belarussian)
it's important for all the translation to have counter variable
included. Otherwise transifex won't let translators include a variable
like that to the forms that need it (e.g. we can't use counter for 2,
3 or 4 in Belarussian).
This commit is contained in:
Stas Rudakou 2018-10-28 12:00:49 +03:00 committed by Mikalai Radchuk
parent a5416d8604
commit 3a678a4e32
11 changed files with 12 additions and 12 deletions

View file

@ -2,7 +2,7 @@
<h2>
{% blocktrans count counter=pages.paginator.count %}
There is one match
There is {{ counter }} match
{% plural %}
There are {{ counter }} matches
{% endblocktrans %}

View file

@ -255,7 +255,7 @@ class TestChooserSearch(TestCase, WagtailTestUtils):
response = self.get({'q': "foobarbaz"})
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'wagtailadmin/chooser/_search_results.html')
self.assertContains(response, "There is one match")
self.assertContains(response, "There is 1 match")
self.assertContains(response, "foobarbaz")
def test_result_uses_custom_admin_display_title(self):
@ -307,7 +307,7 @@ class TestChooserSearch(TestCase, WagtailTestUtils):
response = self.get({'q': "foobarbaz", 'page_type': ''})
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'wagtailadmin/chooser/_search_results.html')
self.assertContains(response, "There is one match")
self.assertContains(response, "There is 1 match")
self.assertContains(response, "foobarbaz")
def test_with_multiple_page_types(self):

View file

@ -3,7 +3,7 @@
{% if query_string %}
<h2>
{% blocktrans count counter=redirects.paginator.count %}
There is one match
There is {{ counter }} match
{% plural %}
There are {{ counter }} matches
{% endblocktrans %}

View file

@ -3,7 +3,7 @@
{% if is_searching %}
<h2>
{% blocktrans count counter=queries|length %}
There is one match
There is {{ counter }} match
{% plural %}
There are {{ counter }} matches
{% endblocktrans %}

View file

@ -3,7 +3,7 @@
{% if is_searching %}
<h2>
{% blocktrans count counter=documents.paginator.count %}
There is one match
There is {{ counter }} match
{% plural %}
There are {{ counter }} matches
{% endblocktrans %}

View file

@ -3,7 +3,7 @@
{% if is_searching %}
<h2>
{% blocktrans count counter=documents|length %}
There is one match
There is {{ counter }} match
{% plural %}
There are {{ counter }} matches
{% endblocktrans %}

View file

@ -4,7 +4,7 @@
{% if is_searching %}
<h2>
{% blocktrans count counter=images.paginator.count %}
There is one match
There is {{ counter }} match
{% plural %}
There are {{ counter }} matches
{% endblocktrans %}

View file

@ -4,7 +4,7 @@
{% if is_searching %}
<h2>
{% blocktrans count counter=images.paginator.count %}
There is one match
There is {{ counter }} match
{% plural %}
There are {{ counter }} matches
{% endblocktrans %}

View file

@ -3,7 +3,7 @@
{% if is_searching %}
<h2>
{% blocktrans count counter=items.paginator.count %}
There is one match
There is {{ counter }} match
{% plural %}
There are {{ counter }} matches
{% endblocktrans %}

View file

@ -3,7 +3,7 @@
{% if is_searching %}
<h2>
{% blocktrans count counter=items.paginator.count %}
There is one match
There is {{ counter }} match
{% plural %}
There are {{ counter }} matches
{% endblocktrans %}

View file

@ -3,7 +3,7 @@
{% if is_searching %}
<h2>
{% blocktrans count counter=users|length %}
There is one match
There is {{ counter }} match
{% plural %}
There are {{ counter }} matches
{% endblocktrans %}