Trợ giúp về API MediaWiki
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=searchtranslations
(main | searchtranslations)
- Mô đun này cần quyền đọc.
- Source: Biên dịch
- License: GPL-2.0-or-later
Search translations.
Các tham số:
Other general parameters are available.
- service
Which of the available translation services to use.
- Một trong các giá trị:
- query
The string to search for.
- This parameter is required.
- sourcelanguage
The language code of the source text.
- Default: vi
- language
The language code to search string for.
- Mặc định: (trống)
- group
The group ID to search string in. See action=query&meta=messagegroups.
- Mặc định: (trống)
- filter
Message translation status filter.
- Một trong các giá trị: Can be empty, or fuzzy, translated, untranslated
- Mặc định: (trống)
- match
Match any/all search words.
- Mặc định: (trống)
- 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
Các ví dụ:
- Show translations for the language.
- api.php?action=searchtranslations&language=fr&query=aide [open in sandbox]
- Show untranslated messages matching the query in the source language.
- api.php?action=searchtranslations&language=fr&query=edit&filter=untranslated [open in sandbox]