Skip to content

Commit f471f5d

Browse files
committed
Merge branch '4.1' into 4.2
* 4.1: [Docs] use php bin/console instead of bin/console
2 parents c19f279 + 0f94f96 commit f471f5d

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

translation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,10 @@ with these tasks:
354354
.. code-block:: terminal
355355
356356
# updates the French translation file with the missing strings found in app/Resources/ templates
357-
$ ./bin/console translation:update --dump-messages --force fr
357+
$ php bin/console translation:update --dump-messages --force fr
358358
359359
# updates the English translation file with the missing strings found in AppBundle
360-
$ ./bin/console translation:update --dump-messages --force en AppBundle
360+
$ php bin/console translation:update --dump-messages --force en AppBundle
361361
362362
.. note::
363363

translation/lint.rst

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,24 @@ translation file using the ``lint:yaml`` and ``lint:xliff`` commands:
1515
.. code-block:: terminal
1616
1717
# lint a single file
18-
$ ./bin/console lint:yaml translations/messages.en.yaml
19-
$ ./bin/console lint:xliff translations/messages.en.xlf
18+
$ php bin/console lint:yaml translations/messages.en.yaml
19+
$ php bin/console lint:xliff translations/messages.en.xlf
2020
2121
# lint a whole directory
22-
$ ./bin/console lint:yaml translations
23-
$ ./bin/console lint:xliff translations
24-
22+
$ php bin/console lint:yaml translations
23+
$ php bin/console lint:xliff translations
24+
2525
# lint multiple files or directories
26-
$ ./bin/console lint:yaml translations path/to/trans
27-
$ ./bin/console lint:xliff translations/messages.en.xlf translations/messages.es.xlf
26+
$ php bin/console lint:yaml translations path/to/trans
27+
$ php bin/console lint:xliff translations/messages.en.xlf translations/messages.es.xlf
2828
2929
.. versionadded:: 4.2
30+
3031
The feature to lint multiple files and directories was introduced in Symfony 4.2.
3132

3233
The linter results can be exported to JSON using the ``--format`` option:
3334

3435
.. code-block:: terminal
3536
36-
$ ./bin/console lint:yaml translations/ --format=json
37-
$ ./bin/console lint:xliff translations/ --format=json
37+
$ php bin/console lint:yaml translations/ --format=json
38+
$ php bin/console lint:xliff translations/ --format=json

0 commit comments

Comments
 (0)