Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trimmed to all multilines blocktrans tags #4480

Merged
merged 1 commit into from
Aug 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion readthedocs/gold/templates/gold/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<h3> {% trans "Existing Projects" %} </h3>
<p>
{% blocktrans count projects=gold_user.num_supported_projects %}
{% blocktrans trimmed count projects=gold_user.num_supported_projects %}
You can adopt one project with your subscription.
{% plural %}
You can adopt {{ projects }} projects with your subscription.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<h2>Cancel Gold Subscription</h2>

<p>
{% blocktrans %}
{% blocktrans trimmed %}
Are you sure you want to cancel your subscription?
{% endblocktrans %}
</p>
Expand Down
4 changes: 2 additions & 2 deletions readthedocs/gold/templates/gold/subscription_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<h2>{% trans "Gold Subscription" %}</h2>

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

<h3>{% trans "Projects" %}</h3>
<p class="subscription-projects">
{% blocktrans count projects=golduser.num_supported_projects %}
{% blocktrans trimmed count projects=golduser.num_supported_projects %}
You can adopt one project with your subscription.
{% plural %}
You can adopt {{ projects }} projects with your subscription.
Expand Down
10 changes: 5 additions & 5 deletions readthedocs/gold/templates/gold/subscription_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@
<h2>Read the Docs Gold</h2>

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

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

{% if domains.count %}
<h3>Domains</h2>
<p>
{% blocktrans %}
{% blocktrans trimmed %}
We ask that folks who use custom Domains give Read the Docs $5 per domain they are using.
This is optional, but it really does help us maintain the site going forward.
{% endblocktrans %}
Expand Down
4 changes: 2 additions & 2 deletions readthedocs/templates/account/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

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

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

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

{% url 'account_reset_password' as password_reset_url %}
<p>
<small>{% blocktrans %}If you forgot your password, <a href="{{ password_reset_url }}">reset it.</a>{% endblocktrans %}</small>
<small>{% blocktrans trimmed %}If you forgot your password, <a href="{{ password_reset_url }}">reset it.</a>{% endblocktrans %}</small>
</p>
</form>

Expand Down
6 changes: 3 additions & 3 deletions readthedocs/templates/builds/build_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
</ul>

<div class="build-id">
{% blocktrans with build_id=build.pk %}
{% blocktrans trimmed with build_id=build.pk %}
Build #{{ build_id }}
{% endblocktrans %}
</div>
Expand Down Expand Up @@ -118,7 +118,7 @@
<div class="build-ideas">
<p>
{% url 'wipe_version' build.version.project.slug build.version.slug as wipe_url %}
{% blocktrans %}
{% blocktrans trimmed %}
Having trouble with your build environment?
Try <a href="{{ wipe_url }}">resetting it</a>.
{% endblocktrans %}
Expand All @@ -128,7 +128,7 @@
<div class="build-ideas">
<p>
{% url 'projects_advanced' build.version.project.slug as advanced_url %}
{% blocktrans %}
{% blocktrans trimmed %}
Don't want <em>setup.py install</em> called?
Change the <strong>Install Project</strong> setting in your <a href="{{ advanced_url }}">advanced settings</a>.
{% endblocktrans %}
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/templates/core/project_bar_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1>

{% if project.skip %}
<p class="build-failure">
{% blocktrans %}
{% blocktrans trimmed %}
Your project is currently disabled for abuse of the system.
Please make sure it isn't using unreasonable amounts of resources or triggering lots of builds in a short amount of time.
Please <a href="https://github.com/rtfd/readthedocs.org/issues">file a ticket</a> to get your project re-enabled.
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/templates/core/project_detail_right.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h3>{% trans "Tags" %}</h3>
{% if request.user|is_admin:project %}

{% url 'projects_edit' project.slug as edit_url %}
{% blocktrans %}
{% blocktrans trimmed %}
Add some in your <a href="{{ edit_url }}">project settings</a>.
{% endblocktrans %}
{% endif %}
Expand Down
16 changes: 8 additions & 8 deletions readthedocs/templates/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<section>
<h2>{% trans "Technical documentation lives here" %}</h2>
<p class="lead">
{% blocktrans %}
{% blocktrans trimmed %}
Read the Docs simplifies software documentation by automating building,
versioning, and hosting of your docs for you.
{% endblocktrans %}
Expand All @@ -57,7 +57,7 @@ <h2>{% trans "Technical documentation lives here" %}</h2>
<h3>Free docs hosting</h3>
<p>
{% with projects_count_intcomma=projects_count|intcomma %}
{% blocktrans %}
{% blocktrans trimmed %}
We will host your documentation for free forever.
There are no tricks. We help {{ projects_count_intcomma }} open source projects
share their docs.
Expand All @@ -68,7 +68,7 @@ <h3>Free docs hosting</h3>
<div class="feature">
<h3>Webhooks</h3>
<p>
{% blocktrans %}
{% blocktrans trimmed %}
Whenever you push code to your favorite version control system,
whether that is Git, Mercurial, Bazaar, or Subversion, we will
automatically build your docs so your code and documentation are
Expand All @@ -83,7 +83,7 @@ <h3>Webhooks</h3>
<div class="feature">
<h3>Multiple formats</h3>
<p>
{% blocktrans %}
{% blocktrans trimmed %}
Of course we build and host your docs for the web, but they are
also vieweable as PDFs, as single page HTML, and for eReaders.
No additional configuration is required.
Expand All @@ -93,7 +93,7 @@ <h3>Multiple formats</h3>
<div class="feature">
<h3>Multiple versions</h3>
<p>
{% blocktrans %}
{% blocktrans trimmed %}
We can host and build multiple versions of your docs so having a
1.0 version of your docs and a 2.0 version of your docs is as easy
as having a separate branch or tag in your version control system.
Expand Down Expand Up @@ -139,7 +139,7 @@ <h2>{% trans "Read the Docs is funded by the community" %}</h2>
{% url "donate" as sponsors_url %}
{% url "gold_detail" as gold_detail %}

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

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

<p>
{% blocktrans %}
{% blocktrans trimmed %}
Hosting for the project is graciously provided by <a href="http://www.rackspace.com/cloud/">Rackspace</a>.
{% endblocktrans %}
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<h3>{% trans 'Send Email' %}</h3>

<p>
{% blocktrans %}
{% blocktrans trimmed %}
An email message will be sent to the following email addresses:
{% endblocktrans %}
</p>
Expand All @@ -18,7 +18,7 @@ <h3>{% trans 'Send Email' %}</h3>
{% with extra_recipients=recipients|slice:"20:" %}
{% if extra_recipients|length > 0 %}
<li>
{% blocktrans count counter=extra_recipients|length %}
{% blocktrans trimmed count counter=extra_recipients|length %}
And 1 other recipient.
{% plural %}
And {{ counter }} other recipients...
Expand All @@ -29,7 +29,7 @@ <h3>{% trans 'Send Email' %}</h3>
</ul>

<p>
{% blocktrans %}
{% blocktrans trimmed %}
Specify the email content you wish to send:
{% endblocktrans %}
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@

{% if request.user.gold.exists or request.user.goldonce.exists %}
<p>
{% blocktrans %}
{% blocktrans trimmed %}
Since you are a Gold Member or Supporter, you are <strong>ad-free</strong> for as long as you are logged-in.
Thank you for supporting Read the Docs.
{% endblocktrans%}
</p>
{% else %}
<p>
{% blocktrans %}
{% blocktrans trimmed %}
Read the Docs is an open source project.
In order to maintain service, we rely on both the
support of our users, and from sponsor support.
{% endblocktrans %}
</p>

<p>
{% blocktrans %}
{% blocktrans trimmed %}
For more details on advertising on Read the Docs
including the privacy protections we have in place for users
and community advertising we run on behalf of the open source community,
Expand All @@ -38,7 +38,7 @@
<p>
{% url "gold_detail" as gold_detail %}
{% url "donate" as donate_url %}
{% blocktrans %}
{% blocktrans trimmed %}
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>.
{% endblocktrans %}
</p>
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/templates/projects/import_basics.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<h3>{% trans "Project Details" %}</h3>

<p class="info">
{% blocktrans %}
{% blocktrans trimmed %}
To import a project,
start by entering a few details about your repository.
More advanced project options can be configured
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/templates/projects/import_extra.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<h3>{% trans "Project Extra Details" %}</h3>

<p class="info">
{% blocktrans %}
{% blocktrans trimmed %}
Here are a few more project options that you may need to configure.
{% endblocktrans %}
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{% block integration_details %}
<p>
{% blocktrans %}
{% blocktrans trimmed %}
The following parameters are configured for this integration:
{% endblocktrans %}
</p>
Expand Down
12 changes: 6 additions & 6 deletions readthedocs/templates/projects/integration_webhook_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@

{% block project-integrations-active %}active{% endblock %}
{% block project_edit_content_header %}
{% blocktrans with type=integration.get_integration_type_display %}
{% blocktrans trimmed with type=integration.get_integration_type_display %}
Integration - {{ type }}
{% endblocktrans %}
{% endblock %}

{% block project_edit_content %}
{% if integration.has_sync and integration.can_sync %}
<p>
{% blocktrans %}
{% blocktrans trimmed %}
This webhook was configured when this project was imported. If this
integration is not functioning correctly, try resyncing the webhook:
{% endblocktrans %}
Expand All @@ -39,7 +39,7 @@
{% endcomment %}
{% if integration.has_sync and not integration.can_sync %}
<p>
{% blocktrans %}
{% blocktrans trimmed %}
This integration was created automatically from an existing webhook
configured on your repository. To make any changes to this webhook,
you'll need to update the configuration there. You can use the
Expand All @@ -48,7 +48,7 @@
</p>
{% else %}
<p>
{% blocktrans %}
{% blocktrans trimmed %}
To manually configure this webhook with your provider, use the
following address:
{% endblocktrans %}
Expand All @@ -63,7 +63,7 @@
{% block integration_details %}{% endblock %}

<p>
{% blocktrans %}
{% blocktrans trimmed %}
For more information on manually configuring a webhook, refer to
<a href="https://docs.readthedocs.io/en/latest/webhooks.html">
our webhook documentation
Expand All @@ -80,7 +80,7 @@ <h3>{% trans "Recent Activity" %}</h3>
<li class="module-item">
<span class="status status-{% if exchange.failed %}fail{% else %}pass{% endif %}">{{ exchange.status_code }}</span>
<a href="{% url 'projects_integrations_exchanges_detail' project_slug=project.slug integration_pk=integration.pk exchange_pk=exchange.pk %}">
{% blocktrans with date=exchange.date|timesince %}
{% blocktrans trimmed with date=exchange.date|timesince %}
{{ date }} ago
{% endblocktrans %}
</a>
Expand Down
8 changes: 4 additions & 4 deletions readthedocs/templates/projects/onboard_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{% if not onboard.build %}
<h2>{% trans "Start building your documentation" %}</h2>
<p>
{% blocktrans %}
{% blocktrans trimmed %}
This project has not been built yet.
Try building the latest version now,
or if you would like to build a specific version,
Expand All @@ -30,7 +30,7 @@ <h2>{% trans "Your documentation is ready to use" %}</h2>

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

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

<p>
{% blocktrans %}
{% blocktrans trimmed %}
You'll be able to view your documentation in a minute or two,
once your project is done building.
{% endblocktrans %}
Expand Down
Loading