{ "name": "Translate", "type": "specialpage", "author": [ "Niklas Laxström", "Siebrand Mazeland", "Santhosh Thottingal", "Amir E. Aharoni", "Abijeet Patro", "..." ], "version": "2021-12-02 [https://www.mediawiki.org/wiki/MLEB MLEB 2021.12]", "url": "https://www.mediawiki.org/wiki/Extension:Translate", "descriptionmsg": "translate-desc", "namemsg": "translate-extensionname", "license-name": "GPL-2.0-or-later", "requires": { "MediaWiki": ">= 1.35.3", "extensions": { "UniversalLanguageSelector": "*" } }, "callback": "TranslateHooks::setupTranslate", "load_composer_autoloader": true, "ServiceWiringFiles": [ "src/ServiceWiring.php" ], "manifest_version": 2, "namespaces": [ { "id": 1198, "constant": "NS_TRANSLATIONS", "name": "Translations" }, { "id": 1199, "constant": "NS_TRANSLATIONS_TALK", "name": "Translations_talk" } ], "ExtensionMessagesFiles": { "TranslateAlias": "Translate.alias.php", "TranslateMagic": "Translate.i18n.magic.php" }, "MessagesDirs": { "PageTranslation": [ "i18n/pagetranslation" ], "Translate": [ "i18n/core" ], "TranslateApi": [ "i18n/api" ], "TranslateSandbox": [ "i18n/sandbox" ], "TranslateSearch": [ "i18n/search" ] }, "ContentHandlers": { "translate-messagebundle": "\\MediaWiki\\Extension\\Translate\\MessageBundleTranslation\\MessageBundleContentHandler" }, "AutoloadClasses": { "AggregateMessageGroup": "messagegroups/AggregateMessageGroup.php", "AggregateMessageGroupLoader": "messagegroups/loaders/AggregateMessageGroupLoader.php", "AmdFFS": "ffs/AmdFFS.php", "AndroidXmlFFS": "ffs/AndroidXmlFFS.php", "AnotherMockTranslateValidator": "tests/phpunit/mocks/MockValidators.php", "ApertiumWebService": "webservices/ApertiumWebService.php", "ApiAggregateGroups": "api/ApiAggregateGroups.php", "ApiGroupReview": "api/ApiGroupReview.php", "ApiManageMessageGroups": "api/ApiManageMessageGroups.php", "ApiQueryLanguageStats": "api/ApiQueryLanguageStats.php", "ApiQueryManageMessageGroups": "api/ApiQueryManageMessageGroups.php", "ApiQueryMessageCollection": "api/ApiQueryMessageCollection.php", "ApiQueryMessageGroups": "api/ApiQueryMessageGroups.php", "ApiQueryMessageGroupStats": "api/ApiQueryMessageGroupStats.php", "ApiQueryMessageTranslations": "api/ApiQueryMessageTranslations.php", "ApiSearchTranslations": "api/ApiSearchTranslations.php", "ApiStatsQuery": "api/ApiStatsQuery.php", "ApiTranslateSandbox": "api/ApiTranslateSandbox.php", "ApiTranslationCheck": "api/ApiTranslationCheck.php", "ApiTranslationReview": "api/ApiTranslationReview.php", "ApiTranslationStash": "api/ApiTranslationStash.php", "ApiTTMServer": "api/ApiTTMServer.php", "AppleFFS": "ffs/AppleFFS.php", "AppleInfoPlistFfs": "ffs/AppleInfoPlistFfs.php", "ArrayFlattener": "utils/ArrayFlattener.php", "BaseValidatorTestCase": "tests/phpunit/unit/Validation/Validators/BaseValidatorTestCase.php", "CachedMessageGroupLoader": "messagegroups/loaders/CachedMessageGroupLoader.php", "CachedMessageIndex": "utils/MessageIndex.php", "CaighdeanWebService": "webservices/CaighdeanWebService.php", "CDBMessageIndex": "utils/MessageIndex.php", "CrossLanguageTranslationSearchQuery": "ttmserver/CrossLanguageTranslationSearchQuery.php", "CxserverWebService": "webservices/CxserverWebService.php", "DatabaseMessageIndex": "utils/MessageIndex.php", "DatabaseTTMServer": "ttmserver/DatabaseTTMServer.php", "DtdFFS": "ffs/DtdFFS.php", "ElasticSearchTTMServer": "ttmserver/ElasticSearchTTMServer.php", "ExternalMessageSourceStateComparator": "utils/ExternalMessageSourceStateComparator.php", "FakeTTMServer": "ttmserver/FakeTTMServer.php", "FatMessage": "Message.php", "FFS": "ffs/FFS.php", "FileBasedMessageGroup": "messagegroups/FileBasedMessageGroup.php", "FileBasedMessageGroupLoader": "messagegroups/loaders/FileBasedMessageGroupLoader.php", "FlatPhpFFS": "ffs/FlatPhpFFS.php", "FuzzyLikeThis": "ttmserver/FuzzyLikeThis.php", "GettextFFS": "ffs/GettextFFS.php", "GettextParseException": "ffs/GettextParseException.php", "GettextPluralException": "ffs/GettextPluralException.php", "GoogleTranslateWebService": "webservices/GoogleTranslateWebService.php", "HashMessageIndex": "utils/MessageIndex.php", "HTMLJsSelectToInputField": "utils/HTMLJsSelectToInputField.php", "IniFFS": "ffs/IniFFS.php", "JavaFFS": "ffs/JavaFFS.php", "JavaScriptFFS": "ffs/JavaScriptFFS.php", "JsonFFS": "ffs/JsonFFS.php", "JsSelectToInput": "utils/JsSelectToInput.php", "MediaWikiExtensionMessageGroup": "messagegroups/MediaWikiExtensionMessageGroup.php", "MessageChangeStorage": "utils/MessageChangeStorage.php", "MessageCollection": "MessageCollection.php", "MessageDefinitions": "MessageCollection.php", "MessageGroup": "messagegroups/MessageGroup.php", "MessageGroupBase": "messagegroups/MessageGroupBase.php", "MessageGroupCache": "utils/MessageGroupCache.php", "MessageGroupConfigurationParser": "MessageGroupConfigurationParser.php", "MessageGroupLoader": "messagegroups/loaders/MessageGroupLoader.php", "MessageGroupOld": "messagegroups/MessageGroupOld.php", "MessageGroups": "MessageGroups.php", "MessageGroupStates": "utils/MessageGroupStates.php", "MessageGroupStatesUpdaterJob": "utils/MessageGroupStatesUpdaterJob.php", "MessageGroupStats": "utils/MessageGroupStats.php", "MessageGroupStatsRebuildJob": "utils/MessageGroupStatsRebuildJob.php", "MessageGroupWANCache": "utils/MessageGroupWANCache.php", "MessageHandle": "utils/MessageHandle.php", "MessageIndex": "utils/MessageIndex.php", "MessageIndexException": "utils/MessageIndexException.php", "MessageIndexRebuildJob": "utils/MessageIndexRebuildJob.php", "MessageUpdateJob": "utils/MessageUpdateJob.php", "MessageWebImporter": "utils/MessageWebImporter.php", "MetaYamlSchemaExtender": "MetaYamlSchemaExtender.php", "MicrosoftWebService": "webservices/MicrosoftWebService.php", "MockCacheMessageGroupLoader": "tests/phpunit/mocks/MockCacheMessageGroupLoader.php", "MockFileBasedMessageGroup": "tests/phpunit/mocks/MockFileBasedMessageGroup.php", "MockMessageCollectionForExport": "tests/phpunit/mocks/MockMessageCollectionForExport.php", "MockTranslateValidator": "tests/phpunit/mocks/MockValidators.php", "MockWikiMessageGroup": "tests/phpunit/mocks/MockWikiMessageGroup.php", "MockWikiValidationMessageGroup": "tests/phpunit/mocks/MockWikiMessageGroup.php", "PageTranslationHooks": "tag/PageTranslationHooks.php", "PageTranslationLogFormatter": "tag/PageTranslationLogFormatter.php", "PHPVariableLoader": "utils/PHPVariableLoader.php", "PremadeIntuitionTextdomains": "ffs/PremadeIntuitionTextdomains.php", "PremadeMediawikiExtensionGroups": "ffs/PremadeMediawikiExtensionGroups.php", "QueryAggregator": "webservices/QueryAggregator.php", "QueryAggregatorAware": "webservices/QueryAggregatorAware.php", "ReadableTTMServer": "ttmserver/Interfaces.php", "RecentAdditionsMessageGroup": "messagegroups/RecentAdditionsMessageGroup.php", "RecentMessageGroup": "messagegroups/RecentMessageGroup.php", "RemoteTTMServer": "ttmserver/RemoteTTMServer.php", "RemoteTTMServerWebService": "webservices/RemoteTTMServerWebService.php", "RESTBaseWebService": "webservices/RESTBaseWebService.php", "RevTag": "utils/RevTag.php", "SandboxMessageGroup": "messagegroups/SandboxMessageGroup.php", "SearchableTTMServer": "ttmserver/Interfaces.php", "SerializedMessageIndex": "utils/MessageIndex.php", "SimpleFFS": "ffs/SimpleFFS.php", "SpecialExportTranslations": "specials/SpecialExportTranslations.php", "SpecialImportTranslations": "specials/SpecialImportTranslations.php", "SpecialLanguageStats": "specials/SpecialLanguageStats.php", "SpecialManageGroups": "specials/SpecialManageGroups.php", "SpecialMessageGroupStats": "specials/SpecialMessageGroupStats.php", "SpecialPageMigration": "tag/SpecialPageMigration.php", "SpecialPagePreparation": "tag/SpecialPagePreparation.php", "SpecialPageTranslationDeletePage": "tag/SpecialPageTranslationDeletePage.php", "SpecialSearchTranslations": "specials/SpecialSearchTranslations.php", "SpecialTranslate": "specials/SpecialTranslate.php", "SpecialTranslations": "specials/SpecialTranslations.php", "StatsBar": "utils/StatsBar.php", "StatsTable": "utils/StatsTable.php", "StringMangler": "stringmangler/StringMangler.php", "StringMatcher": "stringmangler/StringMatcher.php", "ThinMessage": "Message.php", "TMessage": "Message.php", "TPException": "tag/TPException.php", "TranslatablePage": "tag/TranslatablePage.php", "TranslatablePageMessageGroupStore": "messagegroups/loaders/TranslatablePageMessageGroupStore.php", "TranslatablePageMoveJob": "tag/TranslatablePageMoveJob.php", "TranslatablePageTestTrait": "tests/phpunit/helpers/TranslatablePageTestTrait.php", "TranslateCliLogger": "scripts/TranslateCliLogger.php", "TranslateDeleteJob": "tag/TranslateDeleteJob.php", "TranslateEditAddons": "TranslateEditAddons.php", "TranslateHooks": "TranslateHooks.php", "TranslateLogFormatter": "utils/TranslateLogFormatter.php", "TranslateMetadata": "utils/TranslateMetadata.php", "TranslatePreferences": "utils/TranslatePreferences.php", "TranslateRcFilter": "utils/TranslateRcFilter.php", "TranslateRenderJob": "tag/TranslateRenderJob.php", "TranslateSandbox": "utils/TranslateSandbox.php", "TranslateSandboxEmailJob": "utils/TranslateSandboxEmailJob.php", "TranslateStatsOutput": "scripts/TranslateStatsOutput.php", "TranslateToolbox": "utils/TranslateToolbox.php", "TranslateUtils": "TranslateUtils.php", "TranslateYaml": "utils/TranslateYaml.php", "TranslationQuery": "webservices/TranslationQuery.php", "TranslationQueryResponse": "webservices/TranslationQueryResponse.php", "TranslationStats": "utils/TranslationStats.php", "TranslationsUpdateJob": "tag/TranslationsUpdateJob.php", "TranslationWebService": "webservices/TranslationWebService.php", "TranslationWebServiceConfigurationException": "webservices/TranslationWebServiceConfigurationException.php", "TranslationWebServiceException": "webservices/TranslationWebServiceException.php", "TranslationWebServiceInvalidInputException": "webservices/TranslationWebServiceInvalidInputException.php", "TTMServer": "ttmserver/TTMServer.php", "TTMServerException": "ttmserver/Exceptions.php", "TTMServerMessageUpdateJob": "ttmserver/TTMServerMessageUpdateJob.php", "TuxMessageTable": "utils/TuxMessageTable.php", "WikiMessageGroup": "messagegroups/WikiMessageGroup.php", "WikiPageMessageGroup": "messagegroups/WikiPageMessageGroup.php", "WorkflowStatesMessageGroup": "messagegroups/WorkflowStatesMessageGroup.php", "WorkflowStatesMessageGroupLoader": "messagegroups/loaders/WorkflowStatesMessageGroupLoader.php", "WritableTTMServer": "ttmserver/Interfaces.php", "XliffFFS": "ffs/XliffFFS.php", "YamlFFS": "ffs/YamlFFS.php", "YandexWebService": "webservices/YandexWebService.php" }, "AutoloadNamespaces": { "MediaWiki\\Extension\\Translate\\": "src/" }, "TestAutoloadClasses": { "MockCustomInsertableSuggester": "tests/phpunit/mocks/MockCustomInsertableSuggester.php", "MockJsonUnserializableSubClass": "tests/phpunit/mocks/json/MockJsonUnserializableSubClass.php", "MockJsonUnserializableSuperClass": "tests/phpunit/mocks/json/MockJsonUnserializableSuperClass.php" }, "TestAutoloadNamespaces": { "MediaWiki\\Extension\\Translate\\": "tests/phpunit/unit/" }, "Hooks": { "LoadExtensionSchemaUpdates": "TranslateHooks::schemaUpdates", "ParserTestTables": "TranslateHooks::parserTestTables", "PageContentLanguage": "TranslateHooks::onPageContentLanguage", "EditPage::showEditForm:initial": "legacyInterface", "AlternateEdit": "legacyInterface", "getUserPermissionsErrorsExpensive": "TranslateEditAddons::disallowLangTranslations", "LanguageGetTranslatedLanguageNames": "TranslateHooks::translateMessageDocumentationLanguage", "TranslateSupportedLanguages": "TranslateHooks::translateMessageDocumentationLanguage", "ArticlePrepareTextForEdit": "TranslateEditAddons::disablePreSaveTransform", "ParserFirstCallInit": "TranslateHooks::setupTranslateParserFunction", "UserGetReservedNames": "TranslateHooks::onUserGetReservedNames", "LinksUpdate": "TranslateHooks::preventCategorization", "Translate:newTranslation": "TranslateEditAddons::updateTransverTag", "SkinTemplateNavigation::SpecialPage": [ "SpecialTranslate::tabify", "SpecialManageGroups::tabify" ], "GetPreferences": "TranslatePreferences::translationAssistLanguages", "ChangesListSpecialPageQuery": "TranslateRcFilter::translationFilter", "SpecialRecentChangesPanel": "TranslateRcFilter::translationFilterForm", "ChangesListSpecialPageStructuredFilters": "TranslateRcFilter::onChangesListSpecialPageStructuredFilters", "AbortEmailNotification": "TranslateHooks::onAbortEmailNotificationReview", "ArticleDeleteComplete": "TTMServer::onDelete", "TranslateEventMessageMembershipChange": "TTMServer::onGroupChange", "ArticleContentOnDiff": "legacyInterface", "SpecialSearchProfiles": "TranslateHooks::searchProfile", "SpecialSearchProfileForm": "TranslateHooks::searchProfileForm", "SpecialSearchSetupEngine": "TranslateHooks::searchProfileSetupEngine", "TitleIsAlwaysKnown": "TranslateHooks::onTitleIsAlwaysKnown", "MakeGlobalVariablesScript": "TranslateHooks::addConfig", "TranslateEventTranslationReview": [ "MessageGroupStats::clear", "MessageGroupStatesUpdaterJob::onChange" ], "TranslateInitGroupLoaders": [ "TranslatablePageMessageGroupStore::registerLoader", "WorkflowStatesMessageGroupLoader::registerLoader", "AggregateMessageGroupLoader::registerLoader", "FileBasedMessageGroupLoader::registerLoader" ], "AdminLinks": "TranslateHooks::onAdminLinks", "MergeAccountFromTo": "TranslateHooks::onMergeAccountFromTo", "DeleteAccount": "TranslateHooks::onDeleteAccount", "AbuseFilterAlterVariables": "TranslateHooks::onAbuseFilterAlterVariables", "AbuseFilter-computeVariable": "TranslateHooks::onAbuseFilterComputeVariable", "AbuseFilter-builder": "TranslateHooks::onAbuseFilterBuilder", "EditFilterMergedContent": [ "TranslateHooks::validateMessage", "messageBundle" ], "PageSaveComplete": "messageBundle", "RevisionRecordInserted": "main" }, "HookHandlers": { "main": { "class": "TranslateHooks", "services": [ "RevisionLookup", "DBLoadBalancer" ] }, "legacyInterface": { "class": "MediaWiki\\Extension\\Translate\\TranslatorInterface\\LegacyInterfaceHookHandler", "services": [ "LanguageFactory" ] }, "messageBundle": { "factory": "MediaWiki\\Extension\\Translate\\MessageBundleTranslation\\Hooks::getInstance" } }, "SpecialPages": { "Translate": "SpecialTranslate", "Translations": "SpecialTranslations", "TranslationStats": { "class": "\\MediaWiki\\Extension\\Translate\\Statistics\\TranslationStatsSpecialPage", "services": [ "Translate:TranslationStatsDataProvider" ] }, "LanguageStats": { "class": "SpecialLanguageStats", "services": [ "LinkBatchFactory" ] }, "MessageGroupStats": "SpecialMessageGroupStats", "ImportTranslations": "SpecialImportTranslations", "ExportTranslations": "SpecialExportTranslations", "ManageMessageGroups": { "class": "SpecialManageGroups", "services": [ "ContentLanguage", "NamespaceInfo", "RevisionLookup", "Translate:GroupSynchronizationCache" ] }, "SupportedLanguages": { "class": "\\MediaWiki\\Extension\\Translate\\Statistics\\ActiveLanguagesSpecialPage", "services": [ "MainConfig", "Translate:TranslatorActivity", "LanguageNameUtils", "DBLoadBalancer", "Translate:ConfigHelper", "ContentLanguage" ] }, "AggregateGroups": { "class": "\\MediaWiki\\Extension\\Translate\\MessageGroupProcessing\\AggregateGroupsSpecialPage", "services": [ "LinkBatchFactory" ] }, "SearchTranslations": "SpecialSearchTranslations" }, "APIListModules": { "messagecollection": { "class": "ApiQueryMessageCollection", "services": [ "Translate:ConfigHelper" ] } }, "APIMetaModules": { "languagestats": "ApiQueryLanguageStats", "managemessagegroups": "ApiQueryManageMessageGroups", "messagegroups": "ApiQueryMessageGroups", "messagegroupstats": "ApiQueryMessageGroupStats", "messagetranslations": "ApiQueryMessageTranslations" }, "APIModules": { "aggregategroups": "ApiAggregateGroups", "groupreview": "ApiGroupReview", "managemessagegroups": "ApiManageMessageGroups", "translationaids": "\\MediaWiki\\Extension\\Translate\\TranslatorInterface\\Aid\\TranslationAidsActionApi", "translationentitysearch": { "class": "\\MediaWiki\\Extension\\Translate\\TranslatorInterface\\TranslationEntitySearchActionApi", "services": [ "Translate:EntitySearch" ] }, "translationreview": "ApiTranslationReview", "translationcheck": "ApiTranslationCheck", "translationstats": "\\MediaWiki\\Extension\\Translate\\Statistics\\QueryTranslationStatsActionApi", "managegroupsynchronizationcache": { "class": "\\MediaWiki\\Extension\\Translate\\Synchronization\\ManageGroupSynchronizationCacheActionApi", "services": [ "Translate:GroupSynchronizationCache" ] }, "ttmserver": "ApiTTMServer", "searchtranslations": "ApiSearchTranslations" }, "JobClasses": { "MessageGroupStatesUpdaterJob": "MessageGroupStatesUpdaterJob", "MessageGroupStatsRebuildJob": "MessageGroupStatsRebuildJob", "MessageIndexRebuildJob": "MessageIndexRebuildJob", "MessageUpdateJob": "MessageUpdateJob", "TTMServerMessageUpdateJob": "TTMServerMessageUpdateJob", "UpdateTranslatorActivity": "\\MediaWiki\\Extension\\Translate\\Statistics\\UpdateTranslatorActivityJob" }, "LogTypes": [ "translationreview" ], "LogActionsHandlers": { "translationreview/message": "TranslateLogFormatter", "translationreview/group": "TranslateLogFormatter" }, "ResourceFileModulePaths": { "localBasePath": "", "remoteExtPath": "Translate" }, "ResourceModules": { "ext.translate": { "styles": "resources/css/ext.translate.css", "targets": [ "desktop", "mobile" ] }, "ext.translate.base": { "scripts": "resources/js/ext.translate.base.js", "dependencies": [ "mediawiki.api", "mediawiki.util" ], "messages": [ "translate-js-support-unsaved-warning" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.dropdownmenu": { "styles": "resources/css/ext.translate.dropdownmenu.css", "scripts": "resources/js/ext.translate.dropdownmenu.js", "targets": [ "desktop", "mobile" ] }, "ext.translate.specialpages.styles": { "styles": [ "resources/css/ext.translate.special.aggregategroups.css", "resources/css/ext.translate.special.managegroups.css", "resources/css/ext.translate.special.pagemigration.css", "resources/css/ext.translate.special.pagepreparation.css", "resources/css/ext.translate.special.pagetranslation.css", "resources/css/ext.translate.special.searchtranslations.css", "resources/css/ext.translate.special.supportedlanguages.css", "resources/css/ext.translate.special.translations.css" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.loader": { "styles": "resources/css/ext.translate.loader.css", "targets": [ "desktop", "mobile" ] }, "ext.translate.messagetable": { "scripts": "resources/js/ext.translate.messagetable.js", "styles": "resources/css/ext.translate.messagetable.less", "dependencies": [ "ext.translate.base", "ext.translate.loader", "ext.translate.parsers", "jquery.throttle-debounce", "mediawiki.Uri", "mediawiki.jqueryMsg", "mediawiki.util" ], "messages": [ "api-error-badtoken", "api-error-emptypage", "api-error-unknownerror", "tpt-unknown-page", "translate-edit-title", "tux-edit", "tux-empty-list-all", "tux-empty-list-all-guide", "tux-empty-list-other", "tux-empty-list-other-action", "tux-empty-list-other-guide", "tux-empty-list-other-link", "tux-empty-list-translated", "tux-empty-list-translated-action", "tux-empty-list-translated-guide", "tux-empty-no-messages-to-display", "tux-empty-no-outdated-messages", "tux-empty-nothing-new-to-proofread", "tux-empty-nothing-to-proofread", "tux-empty-show-optional-messages", "tux-empty-there-are-optional", "tux-empty-you-can-help-providing", "tux-empty-you-can-review-already-proofread", "tux-message-filter-advanced-button", "tux-message-filter-placeholder", "tux-message-filter-result", "tux-messagetable-loading-messages", "tux-messagetable-more-messages", "tux-status-fuzzy", "tux-status-optional", "tux-status-proofread", "tux-status-translated" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.pagetranslation.uls": { "scripts": "resources/js/ext.translate.pagetranslation.uls.js", "dependencies": [ "ext.uls.mediawiki", "mediawiki.util" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.edit.documentation": { "dependencies": [ "oojs-ui-core", "oojs-ui-widgets", "oojs-ui-windows" ], "messages": [ "tps-edit-sourcepage-ve-warning-title", "tps-edit-sourcepage-ve-warning-text", "tps-edit-sourcepage-ve-warning-button" ], "scripts": [ "resources/js/ext.translate.edit.documentation.js" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.edit.documentation.styles": { "styles": [ "resources/css/ext.translate.edit.documentation.less" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.parsers": { "scripts": "resources/js/ext.translate.parsers.js", "dependencies": [ "mediawiki.util" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.quickedit": { "styles": "resources/css/ext.translate.quickedit.css", "targets": [ "desktop", "mobile" ] }, "ext.translate.selecttoinput": { "scripts": "resources/js/ext.translate.selecttoinput.js", "targets": [ "desktop", "mobile" ] }, "ext.translate.special.languagestats": { "scripts": "resources/js/ext.translate.special.languagestats.js", "messages": [ "translate-langstats-collapse", "translate-langstats-collapseall", "translate-langstats-expand", "translate-langstats-expandall" ], "dependencies": "jquery.tablesorter", "targets": [ "desktop" ] }, "ext.translate.messagerenamedialog": { "dependencies": [ "oojs-ui-core", "oojs-ui-widgets", "oojs-ui-windows" ], "messages": [ "translate-smg-rename-select", "translate-smg-rename-cancel", "translate-smg-rename-search", "translate-smg-rename-select-err", "translate-smg-rename-no-msg" ], "scripts": [ "resources/js/ext.translate.messagerenamedialog.js" ], "styles": [ "resources/css/ext.translate.messagerenamedialog.less" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.groupselector": { "styles": "resources/css/ext.translate.groupselector.less", "scripts": "resources/js/ext.translate.groupselector.js", "dependencies": [ "ext.translate.base", "ext.translate.loader", "ext.translate.statsbar", "jquery.ui", "mediawiki.jqueryMsg" ], "messages": [ "translate-msggroupselector-search-all", "translate-msggroupselector-search-placeholder", "translate-msggroupselector-search-recent", "translate-msggroupselector-view-subprojects" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.editor": { "scripts": [ "resources/js/ext.translate.storage.js", "resources/lib/jquery.autosize.js", "resources/js/ext.translate.editor.helpers.js", "resources/js/ext.translate.editor.js", "resources/js/ext.translate.editor.shortcuts.js", "resources/js/ext.translate.pagemode.js", "resources/js/ext.translate.proofread.js" ], "styles": [ "resources/css/ext.translate.editor.css", "resources/css/ext.translate.pagemode.css", "resources/css/ext.translate.proofread.css" ], "dependencies": [ "ext.translate.base", "ext.translate.dropdownmenu", "jquery.makeCollapsible", "jquery.textSelection", "mediawiki.Uri", "mediawiki.api", "mediawiki.jqueryMsg", "mediawiki.language", "mediawiki.user", "mediawiki.util", "mediawiki.editfont.styles", "user.options" ], "messages": [ "translate-edit-askpermission", "translate-edit-nopermission", "tux-editor-add-desc", "tux-editor-ask-help", "tux-editor-cancel-button-label", "tux-editor-close-tooltip", "tux-editor-collapse-tooltip", "tux-editor-confirm-button-label", "tux-editor-discard-changes-button-label", "tux-editor-doc-editor-cancel", "tux-editor-doc-editor-placeholder", "tux-editor-doc-editor-save", "tux-editor-edit-desc", "tux-editor-expand-tooltip", "tux-editor-in-other-languages", "tux-editor-loading", "tux-editor-loading-failed", "tux-editor-message-desc-less", "tux-editor-message-desc-more", "tux-editor-message-tools-show-editor", "tux-editor-message-tools-delete", "tux-editor-message-tools-history", "tux-editor-message-tools-translations", "tux-editor-message-tools-linktothis", "tux-editor-n-uses", "tux-editor-need-more-help", "tux-editor-outdated-notice", "tux-editor-outdated-notice-diff-link", "tux-editor-paste-original-button-label", "tux-editor-placeholder", "tux-editor-editsummary-placeholder", "tux-editor-proofread-button-label", "tux-editor-save-button-label", "tux-editor-save-failed", "tux-editor-shortcut-info", "tux-editor-skip-button-label", "tux-editor-suggestions-title", "tux-editor-tm-match", "tux-proofread-action-tooltip", "tux-proofread-edit-label", "tux-proofread-translated-by-self", "tux-session-expired", "tux-status-saving", "tux-status-translated", "tux-status-unsaved", "tux-save-unknown-error", "tux-notices-hide", "tux-notices-more", "spamprotectiontext" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.special.managetranslatorsandbox.styles": { "styles": "resources/css/ext.translate.special.managetranslatorsandbox.css", "targets": [ "desktop", "mobile" ] }, "ext.translate.special.pagemigration": { "scripts": [ "resources/js/jquery.ajaxdispatcher.js", "resources/js/ext.translate.special.pagemigration.js" ], "dependencies": [ "mediawiki.api", "mediawiki.Title", "mediawiki.ui", "mediawiki.ui.button" ], "messages": [ "pm-add-icon-hover-text", "pm-delete-icon-hover-text", "pm-extra-units-warning", "pm-langcode-missing", "pm-old-translations-missing", "pm-page-does-not-exist", "pm-pagename-missing", "pm-pagetitle-invalid", "pm-pagetitle-missing", "pm-swap-icon-hover-text", "pm-on-import-message-text", "pm-on-save-message-text", "pm-savepages-button-label", "pm-cancel-button-label", "tpt-unknown-page" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.special.pagepreparation": { "scripts": "resources/js/ext.translate.special.pagepreparation.js", "dependencies": [ "mediawiki.util", "mediawiki.Title", "mediawiki.diff.styles", "mediawiki.api", "mediawiki.jqueryMsg", "mediawiki.ui" ], "messages": [ "pp-already-prepared-message", "pp-diff-error", "pp-pagename-missing", "pp-prepare-message", "pp-save-button-label", "pp-save-message" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.special.searchtranslations": { "scripts": "resources/js/ext.translate.special.searchtranslations.js", "dependencies": [ "ext.translate.editor", "ext.translate.groupselector", "ext.uls.mediawiki", "mediawiki.Uri", "mediawiki.language" ], "messages": [ "translate-search-more-groups-info", "translate-search-more-languages-info" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.special.translate": { "scripts": [ "resources/js/ext.translate.recentgroups.js", "resources/js/ext.translate.workflowselector.js", "resources/js/ext.translate.special.translate.js" ], "styles": "resources/css/ext.translate.workflowselector.css", "skinScripts": { "vector": "resources/js/ext.translate.navitoggle.js" }, "skinStyles": { "vector": "resources/css/ext.translate.navitoggle.css" }, "dependencies": [ "ext.translate.base", "ext.translate.dropdownmenu", "ext.translate.editor", "ext.translate.groupselector", "ext.translate.messagetable", "jquery.uls.data", "mediawiki.Uri", "mediawiki.api", "mediawiki.jqueryMsg", "mediawiki.storage" ], "messages": [ "tpt-discouraged-language-content", "tpt-discouraged-language-force-content", "tpt-discouraged-language-force-header", "tpt-discouraged-language-header", "tpt-discouraged-translation-header", "tpt-discouraged-translation-content", "tux-editor-proofreading-hide-own-translations", "tux-editor-proofreading-show-own-translations", "translate-workflow-set-doing", "translate-workflow-state-", "translate-workflowstatus" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.special.translate.styles": { "styles": "resources/css/ext.translate.special.translate.css", "targets": [ "desktop", "mobile" ] }, "ext.translate.specialTranslationStash": { "packageFiles": [ "resources/src/ext.translate.specialTranslationStash/index.js", "resources/src/ext.translate.specialTranslationStash/storage.js" ], "styles": "resources/src/ext.translate.specialTranslationStash/index.css", "dependencies": [ "ext.translate.editor", "ext.translate.messagetable", "ext.uls.mediawiki", "mediawiki.api", "mediawiki.language" ], "messages": [ "translate-translationstash-skip-button-label", "translate-translationstash-translations", "tsb-limit-reached-body", "tsb-limit-reached-title" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.special.translationstats": { "packageFiles": [ "resources/js/ext.translate.special.translationstats.js" ], "dependencies": [ "ext.translate.translationstats.graphbuilder.js", "mediawiki.widgets.datetime" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.translationstats.embedded": { "packageFiles": [ "resources/js/ext.translate.translationstats.embedded.js" ], "dependencies": [ "ext.translate.translationstats.graphbuilder.js" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.translationstats.graphbuilder.js": { "scripts": [ "resources/js/ext.translate.translationstats.graphbuilder.js", "resources/lib/Chart.js/Chart.js" ], "dependencies": [ "mediawiki.api", "mediawiki.language" ], "styles": [ "resources/lib/Chart.js/Chart.css", "resources/css/ext.translate.translationstats.graphbuilder.less" ], "messages": [ "translate-statsf-count-edits", "translate-statsf-count-users", "translate-statsf-count-registrations", "translate-statsf-count-reviews", "translate-statsf-count-reviewers", "translate-statsf-scale-years", "translate-statsf-scale-months", "translate-statsf-scale-weeks", "translate-statsf-scale-days", "translate-statsf-scale-hours", "translate-statsf-unknown-error", "translate-statsf-error-message", "translate-statsf-graph-alt-text-info", "translate-statsf-alt-text" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.statsbar": { "styles": "resources/css/ext.translate.statsbar.css", "scripts": "resources/js/ext.translate.statsbar.js", "messages": [ "translate-statsbar-tooltip", "translate-statsbar-tooltip-with-fuzzy" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.statstable": { "styles": "resources/css/ext.translate.statstable.less", "targets": [ "desktop", "mobile" ] }, "ext.translate.tag.languages": { "class": "ResourceLoaderLessVarFileModule", "styles": "resources/css/ext.translate.tag.languages.less", "targets": [ "desktop", "mobile" ], "lessMessages": [ "tpt-languages-separator" ] }, "ext.translate.special.aggregategroups": { "scripts": "resources/js/ext.translate.special.aggregategroups.js", "dependencies": [ "jquery.ui", "mediawiki.api", "mediawiki.util" ], "messages": [ "tpt-aggregategroup-add", "tpt-aggregategroup-edit-description", "tpt-aggregategroup-edit-name", "tpt-aggregategroup-remove-confirm", "tpt-aggregategroup-update", "tpt-aggregategroup-update-cancel", "tpt-invalid-group" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.special.importtranslations": { "scripts": "resources/js/ext.translate.special.importtranslations.js", "dependencies": [ "jquery.ui" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.special.managetranslatorsandbox": { "scripts": "resources/js/ext.translate.special.managetranslatorsandbox.js", "dependencies": [ "ext.translate.loader", "ext.uls.mediawiki", "jquery.ui", "mediawiki.api", "mediawiki.jqueryMsg", "mediawiki.language" ], "messages": [ "tsb-accept-all-button-label", "tsb-accept-button-label", "tsb-reject-confirmation", "tsb-accept-confirmation", "tsb-all-languages-button-label", "tsb-didnt-make-any-translations", "tsb-no-requests-from-new-users", "tsb-older-requests", "tsb-reject-all-button-label", "tsb-reject-button-label", "tsb-reminder-failed", "tsb-reminder-link-text", "tsb-reminder-sending", "tsb-reminder-sent", "tsb-reminder-sent-new", "tsb-request-count", "tsb-selected-count", "tsb-translations-current", "tsb-translations-source", "tsb-translations-user", "tsb-user-posted-a-comment" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.special.searchtranslations.operatorsuggest": { "scripts": "resources/js/ext.translate.special.operatorsuggest.js", "dependencies": [ "jquery.ui" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.special.pagetranslation": { "packageFiles": [ "resources/js/ext.translate.special.pagetranslation.js", "resources/js/LanguagesMultiselectWidget.js" ], "dependencies": [ "mediawiki.Uri", "mediawiki.api", "mediawiki.ui.button", "mediawiki.widgets", "oojs-ui-widgets", "user.options" ], "targets": [ "desktop" ] }, "ext.translate.special.managegroups": { "dependencies": [ "ext.translate.messagerenamedialog" ], "messages": [ "translate-smg-rename-new", "translate-smg-rename-rename", "translate-smg-rename-dialog-title", "translate-smg-loading", "translate-smg-group-action-resolve", "translate-smg-unknown-error", "percent" ], "scripts": [ "resources/js/ext.translate.special.managegroups.js" ], "targets": [ "desktop", "mobile" ] }, "ext.translate.ve": { "messages": [ "visualeditor-annotations-translate-start", "visualeditor-annotations-translate-end", "visualeditor-annotations-translate-description", "visualeditor-annotations-tvar-start", "visualeditor-annotations-tvar-end", "visualeditor-annotations-tvar-description" ], "scripts": [ "resources/src/ve-translate/ve.ce.MWTranslateAnnotationNode.js", "resources/src/ve-translate/ve.dm.MWTranslateAnnotationNode.js", "resources/src/ve-translate/ve.ui.MWTranslateAnnotationContextItem.js" ], "dependencies": [ "ext.visualEditor.mwcore" ], "targets": [ "desktop", "mobile" ] } }, "QUnitTestModule": { "localBasePath": "", "remoteExtPath": "Translate", "scripts": [ "tests/qunit/ext.translate.parsers.test.js", "tests/qunit/ext.translate.special.pagemigration.test.js" ], "dependencies": [ "ext.translate.parsers", "ext.translate.special.pagemigration" ] }, "config": { "PageTranslationLanguageList": { "value": "tag-only", "description": "How language list for translatable pages is shown. Allowed values:\n * tag-only: Only display languages with the tag.\n * sidebar-only: Display languages as interlanguage links only and ignore the tag even if present on the page.\n * sidebar-fallback: Display languages as interlanguage links if no tag is on the page.\n * sidebar-always: Display languages as interlanguage links and also in tag if it is present on the page.\n @since 2018.07", "public": true }, "TranslateDocumentationLanguageCode": { "value": false, "description": "Language code for message documentation. Suggested values are qqq or info. If set to false (default), message documentation feature is disabled.", "public": true }, "TranslateUserManagerName": { "value": "TranslateUserManager", "description": "Name of the system user that will be used to create the sandbox users in the system.", "public": true }, "TranslateFuzzyBotName": { "value": "FuzzyBot", "description": "Name of the bot which will invalidate translations and do maintenance for page translation feature. Also used for importing messages from external sources.", "public": true }, "TranslateLanguageFallbacks": { "value": [], "description": "Default values for list of languages to show translators as an aid when translating. Each user can override this setting in their preferences.\n\nExample: LanguageFallbacks['fi'] = 'sv' or LanguageFallbacks['sv'] = [ 'da', 'no', 'nn' ].", "public": true }, "TranslateSupportUrl": { "value": false, "description": "Experimental support since 2011-03-11 for an 'Ask' help button. Might change into a hook later on. This is an array with keys page, url and params: page is a title of a local wiki page; url is an URL to use as is (e.g. an issue tracker submission form) which will override the page if set; params is an array of key-value pairs of request params -- each param value can contain the variable %MESSAGE% which will be replaced with the full page name.", "public": true }, "TranslateSupportUrlNamespace": { "value": [], "description": "Like $wgTranslateSupportUrl, but for a specific namespace. Each $wgTranslateSupportUrl-like array needs to be the value assigned to the numerical ID of a namespace of the wiki. Since 2015-09.", "public": true, "merge_strategy": "array_plus" }, "TranslatePermissionUrl": { "value": "Project:Translator", "description": "When unprivileged users open a translation editor, they will see a message stating that a special permission is needed for translating messages. If this variable is defined, there is a button which will take the user to that page to ask for permission. The target needs to be reiterated with the second variable to have the same result with sandbox enabled where users can't enter the sandbox.", "public": true }, "TranslateSecondaryPermissionUrl": { "value": "Project:Translator", "description": "…", "public": true }, "EnablePageTranslation": { "value": true, "description": "Enable page translation feature.\n\nPage translation feature allows structured translation of wiki pages with simple markup and automatic tracking of changes. See https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_administration", "public": true }, "TranslatePageTranslationULS": { "value": false, "description": "If set to true, when a user selects an interface language via ULS (Universal Language Selector), if the current page is a translatable page or a translation page then the user is also redirected to the corresponding translation page in the selected language.\n\n The language of the translation pages visited afterwards will still depend on the links followed (it will be the interface language only if the links use the Special:MyLanguage syntax).\n\nSince 2013-03-10.", "public": true }, "TranslateKeepOutdatedTranslations": { "value": true, "description": "If set to true, when a translated page has some units marked as outdated, the outdated translation will be shown. If set to false, the original updated unit in the original language will be shown.\n\nChanging this setting requires the following script to be run to take effect on existing changes: scripts/refresh-translatable-pages.php\n\n Since 2016.12.", "public": true }, "TranslateDisabledTargetLanguages": { "value": [], "description": "Two-dimensional array of languages that cannot be translated. Input can be exact group name, first part before '-' or '*' for all. Second dimension should be language code mapped to reason for disabling. Reason is parsed as wikitext.\n\nExample:\n'TranslateDisabledTargetLanguages': { '*': { 'en': 'English is the source language.' }, 'core': { 'mul': 'Not a real language.' }, 'ext': { 'mul': 'Not a real language.'} }", "public": true }, "TranslateValidationExclusionFile": { "value": false, "description": "File containing validations that are to be skipped. See https://gerrit.wikimedia.org/g/translatewiki/+/master/groups/validation-exclusion-list.php for example.", "public": true }, "TranslateAuthorExclusionList": { "value": [], "description": "Two-dimensional array of rules that exclude certain authors from appearing in the exports. This is useful for keeping bots and people doing maintenance work in translations not to appear besides real translators everywhere.\n\nRules are arrays, where first element is type: included or excluded. The inclusion list always overrules the exclusion list. Second element should be a valid pattern that can be given a preg_match(). It will be matched against string of format 'group-id;language;author name', without quotes.\n\nAs an example, this rule would ignore all authors whose name ends in a bot for all languages and all groups:\n'TranslateAuthorExclusionList': [ [ 'black', '/^.*;.*;.*Bot$/Ui' ] ]", "public": true }, "TranslateMessageNamespaces": { "value": [], "description": "List of namespace that contain messages. No talk namespaces. See https://www.mediawiki.org/wiki/Help:Extension:Translate/Group_configuration", "public": true }, "TranslateGroupRoot": { "value": "/var/www/externals", "description": "Location in the filesystem to which paths are relative in custom groups.", "public": true }, "TranslateGroupFiles": { "value": [], "description": "The newest and recommended way of adding custom groups is YAML files.", "public": true }, "TranslateWorkflowStates": { "value": false, "description": "List of possible message group review workflow states and properties for each state. The currently supported properties are 'color', the color that is used for displaying the state in the tables, and 'right', the additional right that is needed to set the state. Users who have the translate-groupreview right can set this in Special:Translate. The state is visible in Special:Translate, Special:MessageGroupStats and Special:LanguageStats. If the value is false, the workflow states feature is disabled. State name can be up to 32 characters maximum.\n\nExample:\n'TranslateWorkflowStates': {\n\n'new': { 'color': 'FF0000' },\n'needs_proofreading': { 'color': '0000FF' },\n'ready': { 'color': 'FFFF00'},\n'published': { 'color': '00FF00', 'right': 'centralnotice-admin' }\n}", "public": true }, "TranslateGroupAliases": { "value": [], "description": "Map from deprecated group IDs to their current ID. Example value: { 'core': 'mediawiki-core' }", "public": true }, "TranslateCacheDirectory": { "value": false, "description": "Set location of cache files. Defaults to $wgCacheDirectory.", "public": true }, "TranslateMessageIndex": { "value": "DatabaseMessageIndex", "description": "Configures how the message index is stored. Possible values are 'DatabaseMessageIndex', 'SerializedMessageIndex', and 'CDBMessageIndex'. The last two backends need $wgCacheDirectory to be functional.", "public": true }, "TranslateUseSandbox": { "value": false, "description": "Whether to allow users to sign up via a sandbox. Sandboxed users cannot do much until approved and thus they can be get rid of easily. This only works with MediaWiki 1.27 and newer, and only if registration is configured to not use account creation providers which give REDIRECT or UI responses or require any other field than the default username/password/email.", "public": true }, "TranslateSandboxPromotedGroup": { "value": false, "description": "To which group the translators are promoted. If left at false, they will just be removed from sandbox and become normal users.", "public": true }, "TranslateSandboxLimit": { "value": 20, "description": "Maximum number of translations a user can make in the sandbox.", "public": true }, "TranslateUsePreSaveTransform": { "value": false, "description": "Pre-save transform for message pages. MediaWiki does this by default (including for pages in the MediaWiki-namespace). By setting this to false it allows users to put untransformed syntax such as '~~~~' into a page without having them be transformed upon save.", "public": true }, "TranslateRcFilterDefault": { "value": "filter", "description": "Default action for the RecentChanges filter, which makes it possible to filter translations away or show them only. Possible values: 'noaction', 'only', 'filter', 'site'.", "public": true }, "TranslateYamlLibrary": { "value": null, "description": "Currently supported YAML drivers are phpyaml, spyc and syck.\n\nFor phpyaml see https://secure.php.net/manual/en/book.yaml.php.\nFor syck we're shelling out to perl. So you need at least perl 5.8 (find out what you have by running `perl -v`), and to install these modules from CPAN: YAML::Syck, PHP::Serialization, and File::Slurp.\n\nYou should be able to do this with: `for module in 'YAML::Syck' 'PHP::Serialization' 'File::Slurp'; do cpanp -i $module; done`\n\nFor the shell to work, you also need an en.UTF-8 locale installed on your system. add a line `en.UTF-8` to your /etc/locale.gen or uncomment an existing one and run locale-gen if you do not have it already.\n\nphpyaml is the fastest and based on libyaml so the output should be most compatible. spyc output format is least compatible. syck is slowest but almost as good as phpyaml. spyc needs to be installed using composer. See https://www.mediawiki.org/wiki/Composer", "public": true }, "TranslateTranslationDefaultService": { "value": true, "description": "Name of the default translation memory service. This service must accept updates.\n\nIf left as the default `true`, the extension will fallback to TTMServer. If `$wgTranslateTranslationServices` is also unconfigured, built-in values will be used to configure the TTMServer.\n\nIf set to `false`, no translation memory will be used.", "public": true }, "TranslateTranslationServices": { "value": [], "description": "Define various web services that provide translation suggestions.\n\nTranslation memories are documented in our main documentation. See https://www.mediawiki.org/wiki/Help:Extension:Translate/Translation_memories\n\nFor Apertium, you should get an API key. See http://wiki.apertium.org/wiki/Apertium_web_service\n\nYandex translation helper also provides langlimit option to limit total number of suggestions (set to 0 to get all possible translations) and langorder array to sort languages. Yandex translate engine is based on wordnet, generated from search index, so number of indexed websites should be a good heuristic to define the default language order.\n\nThe machine translation services are provided with the following information: server ip address; versions of MediaWiki and Translate extension; source text to translate; private API key if provided", "public": true }, "TranslateStatsProviders": { "value": { "edits": "MediaWiki\\Extension\\Translate\\Statistics\\TranslatePerLanguageStats", "users": "MediaWiki\\Extension\\Translate\\Statistics\\TranslatePerLanguageStats", "reviews": "MediaWiki\\Extension\\Translate\\Statistics\\ReviewPerLanguageStats", "reviewers": "MediaWiki\\Extension\\Translate\\Statistics\\ReviewPerLanguageStats", "registrations": "MediaWiki\\Extension\\Translate\\Statistics\\TranslateRegistrationStats" }, "description": "Add, disable or overwrite default stats type providers.", "public": true }, "TranslateGroupSynchronizationCache": { "value": false, "description": "If true, enables the group synchronization cache that keeps track of FileBasedMessageGroups messages currently being processed via MessageUpdateJob", "public": true }, "TranslatePageMoveLimit": { "value": 500, "description": "If set, displays a warning and does not allow user to move translatable pages having more subpages than this value", "public": true } }, "DefaultUserOptions": { "translate": 0, "translate-editlangs": "default", "translate-recent-groups": "" }, "AvailableRights": [ "translate", "translate-import", "translate-manage", "translate-messagereview", "translate-groupreview" ], "GrantPermissions": { "editpage": { "translate": true } } }