Jump to content

Schema:ContentTranslation

PHP logging

EventLogging::logEvent( 'ContentTranslation', 18999884, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"ContentTranslation": 18999884
			}
		}
	}
}

JavaScript logging

mw.track( 'event.ContentTranslation', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 18999884
description"Schema for ContentTranslation extension events. Keeps track of the state of a translation"
properties
version
type"integer"
requiredtrue
description"Version number. This field can be used to track changes in instrumentation that affect the nature of the data collected."
token
type"string"
description"Username for logged in users or session token for anonymous users"
requiredtrue
session
type"string"
description"Session identifier"
requiredfalse
action
type"string"
description"What the user caused or did: * save - Saved the translation. This can be an autosave or manual save. Autosave happens more frequently. But we log only once just to know that it was saved once. * publish - Translation published successfully. * delete - Translation deleted. * continue - Continue a saved translation (in progress). * need-review - Translation needs review, for example because of high MT. * publish-failure - Publishing was a failure."
enum
"save"
"publish"
"delete"
"continue"
"need-review"
"publish-failure"
requiredtrue
sourceLanguage
type"string"
description"Source language"
requiredtrue
targetLanguage
type"string"
description"Target language"
requiredtrue
sourceTitle
type"string"
description"Source title"
requiredtrue
targetTitle
type"string"
description"Target title"
requiredfalse