Skip to content

[Form] Minor #17431

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

Merged
merged 1 commit into from
Nov 18, 2022
Merged

[Form] Minor #17431

merged 1 commit into from
Nov 18, 2022

Conversation

ThomasLandauer
Copy link
Contributor

Removing "starting"

Removing "starting"
@carsonbot carsonbot added this to the 5.4 milestone Nov 12, 2022
@@ -8,8 +8,8 @@ Data transformers are used to translate the data for a field into a format that
be displayed in a form (and back on submit). They're already used internally for
many field types. For example, the :doc:`DateType </reference/forms/types/date>` field
can be rendered as a ``yyyy-MM-dd``-formatted input text box. Internally, a data transformer
converts the starting ``DateTime`` value of the field into the ``yyyy-MM-dd`` string
to render the form, and then back into a ``DateTime`` object on submit.
converts the ``DateTime`` value of the field to the ``yyyy-MM-dd`` string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Into is correct, isn’t it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like "to" and "into" are both common in general, but Symfony docs seem to prefer "to" usually.
=> @javiereguiluz please decide.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked on Symfony Slack about this to native English speakers. They agreed on using "convert to", but suggested other tweak: dfc2982

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Use “into” to describe where something is: going inside something else" -> Please use to

@javiereguiluz
Copy link
Member

Thanks!

@ThomasLandauer ThomasLandauer deleted the patch-15 branch November 18, 2022 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants