Pomoc API MediaWiki
To jest automatycznie wygenerowana strona dokumentacji API MediaWiki.
Dokumentacja i przykłady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=ttmserver
(main | ttmserver)
- Ten moduł wymaga praw odczytu.
- Źródło: Przetłumacz
- Licencja: GPL-2.0-or-later
Query suggestions from translation memories.
Parametry:
- service
Which of the available translation services to use.
- Jedna z następujących wartości:
- sourcelanguage
Kod języka tekstu źródłowego.
- This parameter is required.
- targetlanguage
The language code of the suggestion.
- This parameter is required.
- text
The text to find suggestions for.
- This parameter is required.
Przykład:
- Get suggestions for translating "Help" from English to Finnish
- api.php?action=ttmserver&sourcelanguage=en&targetlanguage=fi&text=Help [otwórz w brudnopisie]