Nextcloud PHP API (master)

ITranslationProviderWithId extends ITranslationProvider

Tags
since
29.0.0

Table of Contents

Methods

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

Methods

getAvailableLanguages()

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

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