Skip to content

Commit 0426858

Browse files
authored
Merge pull request #4480 from rtfd/humitos/translations/blocktrans-trimmed
Add `trimmed` to all multilines `blocktrans` tags
2 parents 31da9c1 + 9e37eca commit 0426858

24 files changed

+70
-70
lines changed

readthedocs/gold/templates/gold/projects.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<h3> {% trans "Existing Projects" %} </h3>
1919
<p>
20-
{% blocktrans count projects=gold_user.num_supported_projects %}
20+
{% blocktrans trimmed count projects=gold_user.num_supported_projects %}
2121
You can adopt one project with your subscription.
2222
{% plural %}
2323
You can adopt {{ projects }} projects with your subscription.

readthedocs/gold/templates/gold/subscription_confirm_delete.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<h2>Cancel Gold Subscription</h2>
1010

1111
<p>
12-
{% blocktrans %}
12+
{% blocktrans trimmed %}
1313
Are you sure you want to cancel your subscription?
1414
{% endblocktrans %}
1515
</p>

readthedocs/gold/templates/gold/subscription_detail.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<h2>{% trans "Gold Subscription" %}</h2>
3232

3333
<p>
34-
{% blocktrans %}
34+
{% blocktrans trimmed %}
3535
Thanks for supporting Read the Docs! It really means a lot to us.
3636
{% endblocktrans %}
3737
</p>
@@ -56,7 +56,7 @@ <h2>{% trans "Gold Subscription" %}</h2>
5656

5757
<h3>{% trans "Projects" %}</h3>
5858
<p class="subscription-projects">
59-
{% blocktrans count projects=golduser.num_supported_projects %}
59+
{% blocktrans trimmed count projects=golduser.num_supported_projects %}
6060
You can adopt one project with your subscription.
6161
{% plural %}
6262
You can adopt {{ projects }} projects with your subscription.

readthedocs/gold/templates/gold/subscription_form.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,20 @@
3737
<h2>Read the Docs Gold</h2>
3838

3939
<p>
40-
{% blocktrans %}
40+
{% blocktrans trimmed %}
4141
Supporting Read the Docs lets us work more on features that people love.
4242
Your money will go directly to maintenance and development of the
4343
product.
4444
{% endblocktrans %}
4545
</p>
4646
<p>
47-
{% blocktrans %}
47+
{% blocktrans trimmed %}
4848
If you are an individual,
4949
feel free to give whatever feels right for the value you get out of Read the Docs.
5050
{% endblocktrans %}
5151
</p>
5252
<p>
53-
{% blocktrans %}
53+
{% blocktrans trimmed %}
5454
If you are a company using Read the Docs,
5555
please consider getting a <a href="https://readthedocs.com/services/#open-source-support">commercial support contract</a>.
5656
This will help us cover our costs,
@@ -63,15 +63,15 @@ <h2>Read the Docs Gold</h2>
6363
<p>{% trans 'Becoming a Gold Member also makes Read the Docs ad-free for as long as you are logged-in.' %}</p>
6464

6565
<p>
66-
{% blocktrans %}
66+
{% blocktrans trimmed %}
6767
You can also make one-time donations on our <a href="https://readthedocs.org/sustainability/">sustainability</a> page.
6868
{% endblocktrans %}
6969
</p>
7070

7171
{% if domains.count %}
7272
<h3>Domains</h2>
7373
<p>
74-
{% blocktrans %}
74+
{% blocktrans trimmed %}
7575
We ask that folks who use custom Domains give Read the Docs $5 per domain they are using.
7676
This is optional, but it really does help us maintain the site going forward.
7777
{% endblocktrans %}

readthedocs/templates/account/login.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<h1>{% trans "Sign In" %}</h1>
1313

14-
<p><small>{% blocktrans %}If you have not created an account yet, then please
14+
<p><small>{% blocktrans trimmed %}If you have not created an account yet, then please
1515
<a href="{{ signup_url }}">sign up</a> first.{% endblocktrans %}</small></p>
1616

1717
<form class="login" method="POST" action="{% url "account_login" %}">
@@ -24,7 +24,7 @@ <h1>{% trans "Sign In" %}</h1>
2424

2525
{% url 'account_reset_password' as password_reset_url %}
2626
<p>
27-
<small>{% blocktrans %}If you forgot your password, <a href="{{ password_reset_url }}">reset it.</a>{% endblocktrans %}</small>
27+
<small>{% blocktrans trimmed %}If you forgot your password, <a href="{{ password_reset_url }}">reset it.</a>{% endblocktrans %}</small>
2828
</p>
2929
</form>
3030

readthedocs/templates/builds/build_detail.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
</ul>
7373

7474
<div class="build-id">
75-
{% blocktrans with build_id=build.pk %}
75+
{% blocktrans trimmed with build_id=build.pk %}
7676
Build #{{ build_id }}
7777
{% endblocktrans %}
7878
</div>
@@ -118,7 +118,7 @@
118118
<div class="build-ideas">
119119
<p>
120120
{% url 'wipe_version' build.version.project.slug build.version.slug as wipe_url %}
121-
{% blocktrans %}
121+
{% blocktrans trimmed %}
122122
Having trouble with your build environment?
123123
Try <a href="{{ wipe_url }}">resetting it</a>.
124124
{% endblocktrans %}
@@ -128,7 +128,7 @@
128128
<div class="build-ideas">
129129
<p>
130130
{% url 'projects_advanced' build.version.project.slug as advanced_url %}
131-
{% blocktrans %}
131+
{% blocktrans trimmed %}
132132
Don't want <em>setup.py install</em> called?
133133
Change the <strong>Install Project</strong> setting in your <a href="{{ advanced_url }}">advanced settings</a>.
134134
{% endblocktrans %}

readthedocs/templates/core/project_bar_base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1>
2828

2929
{% if project.skip %}
3030
<p class="build-failure">
31-
{% blocktrans %}
31+
{% blocktrans trimmed %}
3232
Your project is currently disabled for abuse of the system.
3333
Please make sure it isn't using unreasonable amounts of resources or triggering lots of builds in a short amount of time.
3434
Please <a href="https://github.com/rtfd/readthedocs.org/issues">file a ticket</a> to get your project re-enabled.

readthedocs/templates/core/project_detail_right.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ <h3>{% trans "Tags" %}</h3>
7979
{% if request.user|is_admin:project %}
8080

8181
{% url 'projects_edit' project.slug as edit_url %}
82-
{% blocktrans %}
82+
{% blocktrans trimmed %}
8383
Add some in your <a href="{{ edit_url }}">project settings</a>.
8484
{% endblocktrans %}
8585
{% endif %}

readthedocs/templates/homepage.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<section>
4646
<h2>{% trans "Technical documentation lives here" %}</h2>
4747
<p class="lead">
48-
{% blocktrans %}
48+
{% blocktrans trimmed %}
4949
Read the Docs simplifies software documentation by automating building,
5050
versioning, and hosting of your docs for you.
5151
{% endblocktrans %}
@@ -58,7 +58,7 @@ <h2>{% trans "Technical documentation lives here" %}</h2>
5858
<h3>Free docs hosting</h3>
5959
<p>
6060
{% with projects_count_intcomma=projects_count|intcomma %}
61-
{% blocktrans %}
61+
{% blocktrans trimmed %}
6262
We will host your documentation for free forever.
6363
There are no tricks. We help {{ projects_count_intcomma }} open source projects
6464
share their docs.
@@ -69,7 +69,7 @@ <h3>Free docs hosting</h3>
6969
<div class="feature">
7070
<h3>Webhooks</h3>
7171
<p>
72-
{% blocktrans %}
72+
{% blocktrans trimmed %}
7373
Whenever you push code to your favorite version control system,
7474
whether that is Git, Mercurial, Bazaar, or Subversion, we will
7575
automatically build your docs so your code and documentation are
@@ -84,7 +84,7 @@ <h3>Webhooks</h3>
8484
<div class="feature">
8585
<h3>Multiple formats</h3>
8686
<p>
87-
{% blocktrans %}
87+
{% blocktrans trimmed %}
8888
Of course we build and host your docs for the web, but they are
8989
also vieweable as PDFs, as single page HTML, and for eReaders.
9090
No additional configuration is required.
@@ -94,7 +94,7 @@ <h3>Multiple formats</h3>
9494
<div class="feature">
9595
<h3>Multiple versions</h3>
9696
<p>
97-
{% blocktrans %}
97+
{% blocktrans trimmed %}
9898
We can host and build multiple versions of your docs so having a
9999
1.0 version of your docs and a 2.0 version of your docs is as easy
100100
as having a separate branch or tag in your version control system.
@@ -142,7 +142,7 @@ <h2>{% trans "Read the Docs is funded by the community" %}</h2>
142142
{% url "donate" as sponsors_url %}
143143
{% url "gold_detail" as gold_detail %}
144144

145-
{% blocktrans %}
145+
{% blocktrans trimmed %}
146146
Read the Docs is a huge resource that millions of developers rely on
147147
for software documentation. It would not be possible without the
148148
support of our
@@ -153,7 +153,7 @@ <h2>{% trans "Read the Docs is funded by the community" %}</h2>
153153
</p>
154154

155155
<p>
156-
{% blocktrans %}
156+
{% blocktrans trimmed %}
157157
Read the Docs is <strong>community supported</strong>.
158158
It depends on users like you to contribute to development, support, and operations.
159159
You can learn more about how to <a href="https://docs.readthedocs.io/en/latest/contribute.html">contribute</a> in our docs.
@@ -163,7 +163,7 @@ <h2>{% trans "Read the Docs is funded by the community" %}</h2>
163163
</p>
164164

165165
<p>
166-
{% blocktrans %}
166+
{% blocktrans trimmed %}
167167
Hosting for the project is graciously provided by <a href="http://www.rackspace.com/cloud/">Rackspace</a>.
168168
{% endblocktrans %}
169169
</p>

readthedocs/templates/notifications/send_notification_form.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<h3>{% trans 'Send Email' %}</h3>
77

88
<p>
9-
{% blocktrans %}
9+
{% blocktrans trimmed %}
1010
An email message will be sent to the following email addresses:
1111
{% endblocktrans %}
1212
</p>
@@ -18,7 +18,7 @@ <h3>{% trans 'Send Email' %}</h3>
1818
{% with extra_recipients=recipients|slice:"20:" %}
1919
{% if extra_recipients|length > 0 %}
2020
<li>
21-
{% blocktrans count counter=extra_recipients|length %}
21+
{% blocktrans trimmed count counter=extra_recipients|length %}
2222
And 1 other recipient.
2323
{% plural %}
2424
And {{ counter }} other recipients...
@@ -29,7 +29,7 @@ <h3>{% trans 'Send Email' %}</h3>
2929
</ul>
3030

3131
<p>
32-
{% blocktrans %}
32+
{% blocktrans trimmed %}
3333
Specify the email content you wish to send:
3434
{% endblocktrans %}
3535
</p>

readthedocs/templates/profiles/private/advertising_profile.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@
1212

1313
{% if request.user.gold.exists or request.user.goldonce.exists %}
1414
<p>
15-
{% blocktrans %}
15+
{% blocktrans trimmed %}
1616
Since you are a Gold Member or Supporter, you are <strong>ad-free</strong> for as long as you are logged-in.
1717
Thank you for supporting Read the Docs.
1818
{% endblocktrans%}
1919
</p>
2020
{% else %}
2121
<p>
22-
{% blocktrans %}
22+
{% blocktrans trimmed %}
2323
Read the Docs is an open source project.
2424
In order to maintain service, we rely on both the
2525
support of our users, and from sponsor support.
2626
{% endblocktrans %}
2727
</p>
2828

2929
<p>
30-
{% blocktrans %}
30+
{% blocktrans trimmed %}
3131
For more details on advertising on Read the Docs
3232
including the privacy protections we have in place for users
3333
and community advertising we run on behalf of the open source community,
@@ -38,7 +38,7 @@
3838
<p>
3939
{% url "gold_detail" as gold_detail %}
4040
{% url "donate" as donate_url %}
41-
{% blocktrans %}
41+
{% blocktrans trimmed %}
4242
You can <strong>go ad-free</strong> by becoming a <a href="{{ gold_detail }}">Gold Member</a> or <a href="{{ donate_url }}">Supporter</a> of Read the Docs</a>.
4343
{% endblocktrans %}
4444
</p>

readthedocs/templates/projects/import_basics.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<h3>{% trans "Project Details" %}</h3>
66

77
<p class="info">
8-
{% blocktrans %}
8+
{% blocktrans trimmed %}
99
To import a project,
1010
start by entering a few details about your repository.
1111
More advanced project options can be configured

readthedocs/templates/projects/import_extra.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<h3>{% trans "Project Extra Details" %}</h3>
66

77
<p class="info">
8-
{% blocktrans %}
8+
{% blocktrans trimmed %}
99
Here are a few more project options that you may need to configure.
1010
{% endblocktrans %}
1111
</p>

readthedocs/templates/projects/integration_generic_webhook_detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
{% block integration_details %}
66
<p>
7-
{% blocktrans %}
7+
{% blocktrans trimmed %}
88
The following parameters are configured for this integration:
99
{% endblocktrans %}
1010
</p>

readthedocs/templates/projects/integration_webhook_detail.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010

1111
{% block project-integrations-active %}active{% endblock %}
1212
{% block project_edit_content_header %}
13-
{% blocktrans with type=integration.get_integration_type_display %}
13+
{% blocktrans trimmed with type=integration.get_integration_type_display %}
1414
Integration - {{ type }}
1515
{% endblocktrans %}
1616
{% endblock %}
1717

1818
{% block project_edit_content %}
1919
{% if integration.has_sync and integration.can_sync %}
2020
<p>
21-
{% blocktrans %}
21+
{% blocktrans trimmed %}
2222
This webhook was configured when this project was imported. If this
2323
integration is not functioning correctly, try resyncing the webhook:
2424
{% endblocktrans %}
@@ -39,7 +39,7 @@
3939
{% endcomment %}
4040
{% if integration.has_sync and not integration.can_sync %}
4141
<p>
42-
{% blocktrans %}
42+
{% blocktrans trimmed %}
4343
This integration was created automatically from an existing webhook
4444
configured on your repository. To make any changes to this webhook,
4545
you'll need to update the configuration there. You can use the
@@ -48,7 +48,7 @@
4848
</p>
4949
{% else %}
5050
<p>
51-
{% blocktrans %}
51+
{% blocktrans trimmed %}
5252
To manually configure this webhook with your provider, use the
5353
following address:
5454
{% endblocktrans %}
@@ -63,7 +63,7 @@
6363
{% block integration_details %}{% endblock %}
6464

6565
<p>
66-
{% blocktrans %}
66+
{% blocktrans trimmed %}
6767
For more information on manually configuring a webhook, refer to
6868
<a href="https://docs.readthedocs.io/en/latest/webhooks.html">
6969
our webhook documentation
@@ -80,7 +80,7 @@ <h3>{% trans "Recent Activity" %}</h3>
8080
<li class="module-item">
8181
<span class="status status-{% if exchange.failed %}fail{% else %}pass{% endif %}">{{ exchange.status_code }}</span>
8282
<a href="{% url 'projects_integrations_exchanges_detail' project_slug=project.slug integration_pk=integration.pk exchange_pk=exchange.pk %}">
83-
{% blocktrans with date=exchange.date|timesince %}
83+
{% blocktrans trimmed with date=exchange.date|timesince %}
8484
{{ date }} ago
8585
{% endblocktrans %}
8686
</a>

readthedocs/templates/projects/onboard_detail.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{% if not onboard.build %}
99
<h2>{% trans "Start building your documentation" %}</h2>
1010
<p>
11-
{% blocktrans %}
11+
{% blocktrans trimmed %}
1212
This project has not been built yet.
1313
Try building the latest version now,
1414
or if you would like to build a specific version,
@@ -30,7 +30,7 @@ <h2>{% trans "Your documentation is ready to use" %}</h2>
3030

3131
<form method="get" action="{{ project.get_docs_url }}">
3232
<p>
33-
{% blocktrans %}
33+
{% blocktrans trimmed %}
3434
Your documentation has been built.
3535
Ensure your documentation is kept up to date with every commit to
3636
your repository, by
@@ -46,7 +46,7 @@ <h2>{% trans "Your documentation failed to build" %}</h2>
4646

4747
<form method="get" action="{% url "builds_detail" project_slug=project.slug build_pk=onboard.build.pk %}">
4848
<p>
49-
{% blocktrans %}
49+
{% blocktrans trimmed %}
5050
There was a problem building your documentation,
5151
you can see what went wrong in the build output.
5252
If you need more help, check out some of the
@@ -62,7 +62,7 @@ <h2>{% trans "Your documentation failed to build" %}</h2>
6262
<h2>{% trans "Your documentation is building" %}</h2>
6363

6464
<p>
65-
{% blocktrans %}
65+
{% blocktrans trimmed %}
6666
You'll be able to view your documentation in a minute or two,
6767
once your project is done building.
6868
{% endblocktrans %}

0 commit comments

Comments
 (0)