You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/multisite/languages/automated_translations.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,7 @@ The following field types are supported out of the box:
14
14
-[TextLine](textlinefield.md)
15
15
-[TextBlock](textblockfield.md)
16
16
-[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)
19
18
20
19
See [adding a custom field or block attribute encoder](##add-a-custom-field-encoder) for more information how you can extend this list.
21
20
@@ -131,10 +130,10 @@ The following example adds support for automatically translating alternative tex
131
130
```
132
131
In this example, the methods are responsible for:
133
132
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
138
137
139
138
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.
0 commit comments