Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/administration/recent_activity/recent_activity.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion docs/content_management/rich_text/extend_online_editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion docs/permissions/custom_policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
Loading