Skip to content

Commit 26bf460

Browse files
committed
minor #21184 Improve grammar and expressions for American English (Copilot)
This PR was submitted for the 7.3 branch but it was squashed and merged into the 6.4 branch instead. Discussion ---------- Improve grammar and expressions for American English This PR addresses grammatical issues and non-idiomatic expressions throughout the Symfony documentation to make it more natural for native American English speakers, as requested in the issue. ## Changes Made ### Language Inclusivity - Replaced "master" terminology with more inclusive alternatives like "learn" and "understand" - Updated "dummy" references to use "test" in technical contexts ### Grammar Fixes - **Article usage**: Fixed missing articles (e.g., "Easy way" → "An easy way") - **Verb forms**: Corrected constructions like "allow to define" → "allow you to define" - **Word order**: Fixed awkward ordering like "read first the" → "first read the" and "knowing first" → "first knowing" - **Subject-verb agreement**: Fixed "some part...which modify" → "some parts...that modify" - **Prepositions**: Improved usage like "know of:" → "know:" ### Style Improvements - Replaced potentially problematic terms flagged by linting tools: - "straightforward" → "simple" - "just" → more specific alternatives like "only" or removed entirely - "more deeply" → "more" - Improved sentence flow with better conjunctions ("but is" → "but rather") - Added missing commas for clarity ### Files Modified - `page_creation.rst`, `routing.rst`, `security.rst`, `controller.rst` - `event_dispatcher.rst`, `http_cache.rst`, `mailer.rst`, `mercure.rst` - `messenger.rst`, `translation.rst`, `workflow.rst`, `cache.rst` - `configuration.rst`, `testing.rst`, `best_practices.rst`, `bundles.rst` - `deployment.rst`, `lock.rst`, `serializer.rst` ## Quality Assurance - Used Alex linting tool to identify language issues - Preserved all technical accuracy and meaning - Focused on high-traffic documentation files - Remaining linting warnings are mostly false positives for technical terms These changes make the documentation more accessible and natural-sounding for native English speakers while maintaining the technical precision that developers expect. <!-- START COPILOT CODING AGENT TIPS --> --- 💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click [here](https://survey.alchemer.com/s3/8343779/Copilot-Coding-agent) to start the survey. Commits ------- 6914778 Improve grammar and expressions for American English
2 parents f029554 + 6914778 commit 26bf460

19 files changed

+25
-26
lines changed

best_practices.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You can even ignore them completely and continue using your own best practices
1010
and methodologies. Symfony is flexible enough to adapt to your needs.
1111

1212
This article assumes that you already have experience developing Symfony
13-
applications. If you don't, read first the :doc:`Getting Started </setup>`
13+
applications. If you don't, first read the :doc:`Getting Started </setup>`
1414
section of the documentation.
1515

1616
.. tip::
@@ -118,7 +118,7 @@ Use Short and Prefixed Parameter Names
118118

119119
Consider using ``app.`` as the prefix of your :ref:`parameters <configuration-parameters>`
120120
to avoid collisions with Symfony and third-party bundles/libraries parameters.
121-
Then, use just one or two words to describe the purpose of the parameter:
121+
Then, use only one or two words to describe the purpose of the parameter:
122122

123123
.. code-block:: yaml
124124

bundles.rst

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

1212
A bundle is similar to a plugin in other software, but even better. The core
1313
features of Symfony framework are implemented with bundles (FrameworkBundle,
14-
SecurityBundle, DebugBundle, etc.) They are also used to add new features in
14+
SecurityBundle, DebugBundle, etc.) Bundles are also used to add new features in
1515
your application via `third-party bundles`_.
1616

1717
Bundles used in your applications must be enabled per
@@ -42,7 +42,7 @@ file::
4242
Creating a Bundle
4343
-----------------
4444

45-
This section creates and enables a new bundle to show there are only a few steps required.
45+
This section creates and enables a new bundle to show that only a few steps are required.
4646
The new bundle is called AcmeBlogBundle, where the ``Acme`` portion is an example
4747
name that should be replaced by some "vendor" name that represents you or your
4848
organization (e.g. AbcBlogBundle for some company named ``Abc``).

cache.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,11 @@ You can read more about these at the :doc:`component documentation </components/
3232
Configuring Cache with FrameworkBundle
3333
--------------------------------------
3434

35-
When configuring the cache component there are a few concepts you should know
36-
of:
35+
When configuring the cache component there are a few concepts you should know:
3736

3837
**Pool**
3938
This is a service that you will interact with. Each pool will always have
40-
its own namespace and cache items. There is never a conflict between pools.
39+
its own namespace and cache items. There are never conflicts between pools.
4140
**Adapter**
4241
An adapter is a *template* that you use to create pools.
4342
**Provider**

configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ example, this is the default file created by the "API Platform" bundle:
3737
mapping:
3838
paths: ['%kernel.project_dir%/src/Entity']
3939
40-
Splitting the configuration into lots of small files might appear intimidating for some
40+
Splitting the configuration into lots of small files might seem intimidating to some
4141
Symfony newcomers. However, you'll get used to them quickly and you rarely need
4242
to change these files after package installation.
4343

controller.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class::
4141
The controller is the ``number()`` method, which lives inside the
4242
controller class ``LuckyController``.
4343

44-
This controller is pretty straightforward:
44+
This controller is quite simple:
4545

4646
* *line 2*: Symfony takes advantage of PHP's namespace functionality to
4747
namespace the entire controller class.

deployment.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ How to Deploy a Symfony Application
55

66
Deploying a Symfony application can be a complex and varied task depending on
77
the setup and the requirements of your application. This article is not a
8-
step-by-step guide, but is a general list of the most common requirements and
8+
step-by-step guide, but rather a general list of the most common requirements and
99
ideas for deployment.
1010

1111
.. _symfony2-deployment-basics:

event_dispatcher.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ A ``kernel.controller`` (aka ``KernelEvents::CONTROLLER``) listener gets notifie
509509
on *every* request, right before the controller is executed. So, first, you need
510510
some way to identify if the controller that matches the request needs token validation.
511511

512-
A clean and easy way is to create an empty interface and make the controllers
512+
A clean and simple way is to create an empty interface and make the controllers
513513
implement it::
514514

515515
namespace App\Controller;

http_cache.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The Symfony cache system is different because it relies on the simplicity
1919
and power of the HTTP cache as defined in `RFC 7234 - Caching`_. Instead of
2020
reinventing a caching methodology, Symfony embraces the standard that defines
2121
basic communication on the Web. Once you understand the fundamental HTTP
22-
validation and expiration caching models, you'll be ready to master the Symfony
22+
validation and expiration caching models, you'll be ready to understand the Symfony
2323
cache system.
2424

2525
Since caching with HTTP isn't unique to Symfony, many articles already exist

lock.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Dealing with Concurrency with Locks
22
===================================
33

4-
When a program runs concurrently, some part of code which modify shared
4+
When a program runs concurrently, some parts of code that modify shared
55
resources should not be accessed by multiple processes at the same time.
66
Symfony's :doc:`Lock component </components/lock>` provides a locking mechanism to ensure
77
that only one process is running the critical section of code at any point of

mailer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ You'll now have a new line in your ``.env`` file that you can uncomment:
153153
154154
The ``MAILER_DSN`` isn't a *real* address: it's a convenient format that
155155
offloads most of the configuration work to mailer. The ``sendgrid`` scheme
156-
activates the SendGrid provider that you just installed, which knows all about
156+
activates the SendGrid provider that you installed, which knows all about
157157
how to deliver messages via SendGrid. The *only* part you need to change is the
158158
``KEY`` placeholder.
159159

0 commit comments

Comments
 (0)