Nápověda k MediaWiki API
Toto je automaticky generovaná dokumentační stránka k MediaWiki API.
Dokumentace a příklady: https://www.mediawiki.org/wiki/API
action=searchtranslations
(main | searchtranslations)
- Tento modul vyžaduje oprávnění ke čtení.
- Zdroj: Preložiť
- Licence: GPL-2.0-or-later
Search translations.
Parametry:
- service
- Which of the available translation services to use. 
- Jedna z následujících hodnot:
- query
- The string to search for. 
- This parameter is required.
- sourcelanguage
- The language code of the source text. 
- Default: cs
- language
- The language code to search string for. 
- Implicitní hodnota: (prázdné)
- group
- The group ID to search string in. 
- Implicitní hodnota: (prázdné)
- filter
- Message translation status filter. 
- Jedna z následujících hodnot: Can be empty, or fuzzy, translated, untranslated
- Implicitní hodnota: (prázdné)
- match
- Match any/all search words. 
- Implicitní hodnota: (prázdné)
- case
- Case (in)sensitive search. 
- Default: 0
- offset
- Offset for the translations. 
- Type: integer
- Default: 0
- limit
- Size of the result. 
- Type: integer or max
- The value must be between 1 and 50.
- Default: 25
Příklady:
- Show translations for the language.
- api.php?action=searchtranslations&language=fr&query=aide [otevřít v pískovišti]
- Show untranslated messages matching the query in the source language.
- api.php?action=searchtranslations&language=fr&query=edit&filter=untranslated [otevřít v pískovišti]