Skip to content

Commit b6f62e1

Browse files
committed
Translate untranslated string with consistency and pluralization
1 parent b2ccb3b commit b6f62e1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

readthedocs/gold/templates/gold/projects.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626

2727
<h3> {% trans "Existing Projects" %} </h3>
2828
<p>
29-
You can adopt {{ gold_user.num_supported_projects }} projects with your subscription.
29+
{% blocktrans count projects=gold_user.num_supported_projects %}
30+
You can adopt one project with your subscription.
31+
{% plural %}
32+
You can adopt {{ projects }} projects with your subscription.
33+
{% endblocktrans %}
3034
</p>
3135

3236
<ul>

readthedocs/gold/templates/gold/subscription_detail.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ <h2>{% trans "Gold Subscription" %}</h2>
5656

5757
<h3>{% trans "Projects" %}</h3>
5858
<p class="subscription-projects">
59-
{% blocktrans with projects=golduser.num_supported_projects %}
59+
{% blocktrans count projects=golduser.num_supported_projects %}
60+
You can adopt one project with your subscription.
61+
{% plural %}
6062
You can adopt {{ projects }} projects with your subscription.
6163
{% endblocktrans %}
6264
</p>

0 commit comments

Comments
 (0)