diff --git a/docs/administration/back_office/customize_search_sorting.md b/docs/administration/back_office/customize_search_sorting.md index b4502474c5..bc696d0b45 100644 --- a/docs/administration/back_office/customize_search_sorting.md +++ b/docs/administration/back_office/customize_search_sorting.md @@ -26,7 +26,7 @@ services: [[= include_file('code_samples/back_office/search/config/append_to_services.yaml', 29, 32) =]] ``` -You can extract a translation file with the `translation:extract` command, for example, `php bin/console translation:extract en --dir=src --output-dir=translations` to obtain the `translations/ibexa_search.en.xlf` file. +You can extract a translation file with the `jms:translation:extract` command, for example, `php bin/console jms:translation:extract en --dir=src --output-dir=translations` to obtain the `translations/ibexa_search.en.xlf` file. You could also create it manually, as `translations/messages.en.yaml` file with the following contents: ``` yaml diff --git a/docs/administration/recent_activity/recent_activity.md b/docs/administration/recent_activity/recent_activity.md index 1591b9daa2..a1b27df06b 100644 --- a/docs/administration/recent_activity/recent_activity.md +++ b/docs/administration/recent_activity/recent_activity.md @@ -237,7 +237,7 @@ Here is an example of a `ClassNameMapperInterface` associating the class `App\My ``` This mapper also provides a translation for the class name in the **Filters** menu. -This translation can be extracted with `php bin/console translation:extract en --domain=ibexa_activity_log --dir=src --output-dir=translations`. +This translation can be extracted with `php bin/console jms:translation:extract en --domain=ibexa_activity_log --dir=src --output-dir=translations`. To be taken into account, this mapper must be registered as a service: diff --git a/docs/content_management/rich_text/extend_online_editor.md b/docs/content_management/rich_text/extend_online_editor.md index 7b3f328bfe..67ae720957 100644 --- a/docs/content_management/rich_text/extend_online_editor.md +++ b/docs/content_management/rich_text/extend_online_editor.md @@ -343,7 +343,7 @@ Use the example below to add a class choice to the Paragraph element in the `adm For example: ``` bash - php ./bin/console translation:extract --enable-extractor=ez_online_editor_attributes \ + php ./bin/console jms:translation:extract --enable-extractor=ez_online_editor_attributes \ --dir=./templates --output-dir=./translations/ --output-format=yaml ``` diff --git a/docs/permissions/custom_policies.md b/docs/permissions/custom_policies.md index 25481d977b..ac7535f816 100644 --- a/docs/permissions/custom_policies.md +++ b/docs/permissions/custom_policies.md @@ -130,7 +130,7 @@ class MyPolicyProvider implements PolicyProviderInterface, TranslationContainerI Then, extract this translation to generate the English translation file `translations/forms.en.xlf`: ``` bash -php bin/console translation:extract en --domain=forms --dir=src --output-dir=translations +php bin/console jms:translation:extract en --domain=forms --dir=src --output-dir=translations ``` ## `PolicyProvider` integration into `IbexaCoreBundle`