Class to manage revision tags for translatable bundles. More...
Public Member Functions | |
replaceTag (PageIdentity $identity, string $tag, int $revisionId, ?array $value=null) | |
Add tag for the given revisionId, while deleting it from others. | |
getLatestRevisionWithTag (PageIdentity $identity, string $tag) | |
getLatestRevisionsForTags (PageIdentity $identity, string ... $tags) | |
removeTags (PageIdentity $identity, string ... $tag) | |
Static Public Member Functions | |
static | getTranslatableBundleIds (string ... $revTags) |
Get a list of page ids where the latest revision is either tagged or marked. | |
Public Attributes | |
const | FUZZY_TAG = 'fuzzy' |
Indicates that a translation is fuzzy (outdated or not passing validation). | |
const | TRANSVER_PROP = 'tp:transver' |
Stores the revision id of the source text which was translated. | |
const | TP_MARK_TAG = 'tp:mark' |
Indicates a revision of a page that can be marked for translation. | |
const | TP_READY_TAG = 'tp:tag' |
Indicates a revision of a translatable page that is marked for translation. | |
const | MB_VALID_TAG = 'mb:valid' |
Indicates a revision of a page that is a valid message bundle. | |
Class to manage revision tags for translatable bundles.
Definition at line 16 of file RevTagStore.php.
MediaWiki\Extension\Translate\MessageGroupProcessing\RevTagStore::getLatestRevisionsForTags | ( | PageIdentity | $identity, |
string ... | $tags ) |
Definition at line 70 of file RevTagStore.php.
MediaWiki\Extension\Translate\MessageGroupProcessing\RevTagStore::getLatestRevisionWithTag | ( | PageIdentity | $identity, |
string | $tag ) |
Definition at line 64 of file RevTagStore.php.
|
static |
Get a list of page ids where the latest revision is either tagged or marked.
Definition at line 129 of file RevTagStore.php.
MediaWiki\Extension\Translate\MessageGroupProcessing\RevTagStore::removeTags | ( | PageIdentity | $identity, |
string ... | $tag ) |
Definition at line 111 of file RevTagStore.php.
MediaWiki\Extension\Translate\MessageGroupProcessing\RevTagStore::replaceTag | ( | PageIdentity | $identity, |
string | $tag, | ||
int | $revisionId, | ||
?array | $value = null ) |
Add tag for the given revisionId, while deleting it from others.
Definition at line 35 of file RevTagStore.php.
const MediaWiki\Extension\Translate\MessageGroupProcessing\RevTagStore::FUZZY_TAG = 'fuzzy' |
Indicates that a translation is fuzzy (outdated or not passing validation).
Definition at line 18 of file RevTagStore.php.
const MediaWiki\Extension\Translate\MessageGroupProcessing\RevTagStore::MB_VALID_TAG = 'mb:valid' |
Indicates a revision of a page that is a valid message bundle.
Definition at line 28 of file RevTagStore.php.
const MediaWiki\Extension\Translate\MessageGroupProcessing\RevTagStore::TP_MARK_TAG = 'tp:mark' |
Indicates a revision of a page that can be marked for translation.
Definition at line 24 of file RevTagStore.php.
const MediaWiki\Extension\Translate\MessageGroupProcessing\RevTagStore::TP_READY_TAG = 'tp:tag' |
Indicates a revision of a translatable page that is marked for translation.
Definition at line 26 of file RevTagStore.php.
const MediaWiki\Extension\Translate\MessageGroupProcessing\RevTagStore::TRANSVER_PROP = 'tp:transver' |
Stores the revision id of the source text which was translated.
Used for showing diffs for outdated messages.
Definition at line 22 of file RevTagStore.php.