Skip to content

Commit 72e99f7

Browse files
committed
minor symfony#13950 Update best_practices.rst (elghailani)
This PR was submitted for the 5.0 branch but it was merged into the 4.4 branch instead. Discussion ---------- Update best_practices.rst Improving `Validation Constraints` & `Internationalization` Commits ------- ad74f8b Update best_practices.rst
2 parents 6679092 + ad74f8b commit 72e99f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

best_practices.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ Define Validation Constraints on the Underlying Object
307307
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
308308

309309
Attaching :doc:`validation constraints </reference/constraints>` to form fields
310-
instead of to the mapped object prevents the validation from being reused in
310+
instead of to the mapped object prevents the validation from being checked in
311311
other forms or other places where the object is used.
312312

313313
.. _best-practice-handle-form:
@@ -318,7 +318,7 @@ Use a Single Action to Render and Process the Form
318318
:ref:`Rendering forms <rendering-forms>` and :ref:`processing forms <processing-forms>`
319319
are two of the main tasks when handling forms. Both are too similar (most of the
320320
times, almost identical), so it's much simpler to let a single controller action
321-
handle everything.
321+
handle both.
322322

323323
Internationalization
324324
--------------------
@@ -327,8 +327,8 @@ Use the XLIFF Format for Your Translation Files
327327
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
328328

329329
Of all the translation formats supported by Symfony (PHP, Qt, ``.po``, ``.mo``,
330-
JSON, CSV, INI, etc.) XLIFF and gettext have the best support in the tools used
331-
by professional translators. And since it's based on XML, you can validate XLIFF
330+
JSON, CSV, INI, etc.), ``XLIFF`` and ``gettext`` have the best support in the tools used
331+
by professional translators. And since it's based on XML, you can validate ``XLIFF``
332332
file contents as you write them.
333333

334334
Symfony also supports notes in XLIFF files, making them more user-friendly for

0 commit comments

Comments
 (0)