Skip to content

Commit 71ff8c9

Browse files
authored
Update Readme.md
1 parent 40eb28b commit 71ff8c9

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Readme.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
This Kirby plugin allows you to automatically translate pages using the DeepL API. All field types are supported.
44

55
**If you are using machine translation, you should inform your users of this fact.**\
6-
For example, you could display a message like this (Text available via `t('tobiaswolf.machine-translation.info')`)\
7-
*This page has been machine translated. Despite the high quality of machine translation, the translation may contain errors.*
6+
For example, you could display a message like this (Text available via `t('tobiaswolf.machine-translation.info')`)
7+
8+
```
9+
This page has been machine translated. Despite the high quality of machine translation, the translation may contain errors.
10+
```
811

912
## Installation
1013

@@ -71,6 +74,8 @@ sections:
7174
type: machine-translate
7275
```
7376

77+
<img width="542" alt="Bildschirmfoto 2023-07-27 um 13 09 57" src="https://github.com/tobiasfabian/machine-translation/assets/1524319/58897afa-af3a-4359-82ec-c8df12a37ad1">
78+
7479
After the page is translated an object field `machineTranslated` with `date` and `showInfo` is saved to the translated page content. This can be used to detect machine translated pages and display a notice/warning on the frontend that the text is machine translated. You can add this object field to any fields section (optional).
7580

7681
```yaml
@@ -162,7 +167,7 @@ You can disable the cache via config.
162167
```php
163168
// config/config.php
164169
return [
165-
'cache.tobiaswolf.machine-translation.translate' => false, // default true
170+
'cache.tobiaswolf.machine-translation.translate' => false, // default true
166171
]
167172
```
168173

0 commit comments

Comments
 (0)