More languages / use profile text as fallback

This commit is contained in:
Michael 2023-10-02 20:37:16 +00:00
parent 3c20ffc22b
commit 008c8dbf36
5 changed files with 90 additions and 19 deletions

View file

@ -227,6 +227,7 @@ Called after the language detection. This can be used for alternative language d
- **text**: The text that is analyzed.
- **detected**: (input/output) Array of language codes detected in the related text.
- **uri-id**: The Uri-Id of the item.
### addon_settings
Called when generating the HTML for the addon settings page.

View file

@ -109,6 +109,7 @@ Dieser Hook kann dafür verwendet werden, alternative Erkennungsfunktionen einzu
`$data` ist ein Array:
'text' => Der analysierte Text.
'detected' => (Eingabe/Ausgabe) Das Array mit den erkannten Sprachen.
'uri-id' => Die Uri-Id des Beitrags
**'addon_settings'** - wird aufgerufen, wenn die HTML-Ausgabe der Addon-Einstellungsseite generiert wird.
$b ist die HTML-Ausgabe (String) der Addon-Einstellungsseite vor dem finalen "</form>"-Tag.