Skip to content

Commit 0b8d7d7

Browse files
Applied suggestions from code review
Co-authored-by: julitafalcondusza <[email protected]>
1 parent 3cdf047 commit 0b8d7d7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/multisite/languages/automated_translations.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ The following field types are supported out of the box:
1414
- [TextLine](textlinefield.md)
1515
- [TextBlock](textblockfield.md)
1616
- [RichText](richtextfield.md)
17-
- [Page](pagefield.md):
18-
- The content of `text` and `richtext` [block attributes](page_block_attributes.md#block-attribute-types)
17+
- [Page](pagefield.md): the content of `text` and `richtext` [block attributes](page_block_attributes.md#block-attribute-types)
1918

2019
See [adding a custom field or block attribute encoder](##add-a-custom-field-encoder) for more information how you can extend this list.
2120

@@ -131,10 +130,10 @@ The following example adds support for automatically translating alternative tex
131130
```
132131
In this example, the methods are responsible for:
133132

134-
- `canEncode` - deciding if the field to be encoded is an [Image](imagefield.md) field.
135-
- `canDecode` - deciding if the field to be decoded is an [Image](imagefield.md) field.
136-
- `encode` - extracting the alternative text from the field type.
137-
- `decode` - saving the translated alternative text in the field type's value object.
133+
- `canEncode` - deciding if the field to be encoded is an [Image](imagefield.md) field
134+
- `canDecode` - deciding if the field to be decoded is an [Image](imagefield.md) field
135+
- `encode` - extracting the alternative text from the field type
136+
- `decode` - saving the translated alternative text in the field type's value object
138137

139138
2\. Register it as a service. If you're not using [Symfony's autoconfiguration]([[= symfony_doc =]]/service_container.html#the-autoconfigure-option), use the `ibexa.automated_translation.field_encoder` service tag.
140139

0 commit comments

Comments
 (0)