Nextcloud PHP API (master)

ITranslationProviderWithUserId extends ITranslationProvider

Tags
since
29.0.0

Table of Contents

Methods

getAvailableLanguages()  : array<string|int, mixed>
getName()  : string
setUserId()  : mixed
translate()  : string

Methods

getAvailableLanguages()

public getAvailableLanguages() : array<string|int, mixed>
Tags
since
26.0.0
Return values
array<string|int, mixed>

setUserId()

public setUserId(string|null $userId) : mixed
Parameters
$userId : string|null

The userId of the user requesting the current task

Tags
since
29.0.0

translate()

public translate(string|null $fromLanguage, string $toLanguage, string $text) : string
Parameters
$fromLanguage : string|null
$toLanguage : string
$text : string
Tags
since
26.0.0
throws
RuntimeException

If the text could not be translated

Return values
string

        
On this page

Search results