Extension:Translate/Namespaces
Appearance
This is a plan for moving Translate to PSR-4. All code except entry points will be moved to src/
and will be under a namespace tree starting from \MediaWiki\Extension\Translate
. Command line script entry points will be kept under maintenance/scripts, but the classes would be moved under src/
for consistency.
Classes are grouped by features, not by functionality.
For consistency, I have done these changes
- Use type-suffixes instead of prefixes (e.g. SpecialTranslate -> TranslateSpecialPage)
- Suffixes: SpecialPage, ActionApi, MaintenanceScript, Job...
- For special pages, action apis, jobs and maintenance scripts, place verb first (if any)
- Changed all upper case acronyms to camel case
- Avoid abbreviations (exception: stats)
Classes to deprecate or remove
[edit]- !DEPRECATE: RevTag
- HTMLJsSelectToInputField (used by TranslatePreferences)
- TranslateToolbox (integrate with Hooks?)
\MediaWiki\Extension\Translate
[edit]Classes that do not belong to anywhere else. They integrate with MediaWiki core.
- Hooks <- TranslateHooks
- LogFormatter <- TranslateLogFormatter
- RecentChangesTranslationFilter <- TranslateRcFilter
Diagnostics
[edit]- ComparePluralImplementationsMaintenanceScript <- PluralCompare
- CompareYamlImplementationsMaintenanceScript <- YamlTests
- CreateLanguageFallbackGraphMaintenanceScript <- FallbacksCompare
- MigrateRevisionTagTableSchemaMaintenanceScript <- TSchema2
- PopulateFuzzyRevisionTagMaintenenanceScript <- PopulateFuzzy
- RemoveOrphanedActorsMaintenanceScript <- RemoveOrphanedActors
- TestWebServiceMaintenanceScript <- TestMT
- ValidateTranslationsMaintenanceScript <- CreateCheckIndex
FileFormatSupport
[edit]This requires moving to id-based loaders in message group configurarion.
- AmdFfs <- AmdFFS
- AndroidFfs <- AndroidXmlFFS
- AppleFfs <- AppleFFS
- AppleInfoPlistFfs
- BaseFfs <- SimpleFFS
- DtdFfs <- DtdFFS
- GettextFfs <- GettextFFS
- IniFfs <- IniFFS
- JavaPropertiesFfs <- JavaFFS
- JsonFfs <- JsonFFS
- MalformedPlural <- GettextPluralException
- PhpVariablesFfs <- FlatPhpFFS
- XliffFfs <- XliffFFS
- YamlFfs <- YamlFFS
- interface FileFormatHandler <- interface FFS
MessageGroup
[edit]- AggregateMessageGroup
- FileBasedMessageGroup
- MediaWikiExtensionMessageGroup
- RecentAdditionsMessageGroup
- RecentMessageGroup
- SandboxMessageGroup
- WikiMessageGroup
- WorkflowStatesMessageGroup
- interface MessageGroup
MessageGroupProcessing
[edit]- AggregateGroupsActionApi <- ApiAggregateGroups
- AggregateGroupsSpecialPage <- SpecialAggregateGroups
- AggregateMessageGroupLoader
- FileBasedMessageGroupLoader
- GroupReviewActionApi <- ApiGroupReview
- ManageMessageGroupsActionApi <- ApiManageMessageGroups
- MessageGroupCache
- MessageGroupStates
- MessageGroupStatesUpdaterJob
- MessageGroupWANCache
- MessageGroups
- QueryManageMessageGroupsActionApi <- ApiQueryManageMessageGroups
- QueryMessageGroupsActionApi <- ApiQueryMessageGroups
- TranslateMetadata
- WorkflowStatesMessageGroupLoader
- interface CachedMessageGroupLoader
MessageGroupConfiguration
[edit]- MessageGroupConfigurationParser
- PremadeIntuitionTextdomains
- PremadeMediawikiExtensionGroups
- interface MetaYamlSchemaExtender
MessageLoading
[edit]- QueryMessageCollectionActionApi <- ApiQueryMessageCollection
- QueryMessageTranslationsActionApi <- ApiQueryMessageTranslations
- CdbMessageIndex <- CDBMessageIndex
- CachedMessageIndex
- CreateMessageIndexMaintenanceScript <- CreateMessageIndex
- DatabaseMessageIndex
- FatMessage
- HashMessageIndex
- MessageCollection
- MessageDefinitions
- MessageHandle
- RebuildMessageIndexJob <- MessageIndexRebuildJob
- SerializedMessageIndex
- ThinMessage
- Message <- TMessage
MessageProcessing
[edit]- ArrayFlattener
- GettextPlural
- SimpleStringComparator <- StringComparators\
- SmartFormatPlural
- StringMatcher
- UnicodePlural
- interface StringComparator <- StringComparators\
- interface StringMangler
PageTranslation
[edit]- DeleteTranslatablePageJob <- TranslateDeleteJob
- DeleteTranslatablePageSpecialPage <- SpecialPageTranslationDeletePage
- Hooks <- PageTranslationHooks
- LogFormatter <- PageTranslationLogFormatter
- MigrateTranslatablePageSpecialPage <- SpecialPageMigration
- MoveTranslatablePageJob <- TranslatablePageMoveJob
- MoveTranslatablePageSpecialPage <- SpecialPageTranslationMovePage
- PageTranslationSpecialPage <- SpecialPageTranslation
- PrepareTranslatablePageSpecialPage <- SpecialPagePreparation
- RefreshTranslatablePagesMaintenanceScript <- RefreshTranslatablePages
- RenderTranslationPageJob <- TranslateRenderJob
- TranslatablePage
- TranslatablePageException <- TPException (XXX: needs refactoring in the future)
- TranslatablePageInsertablesSuggester
- TranslatablePageMessageGroup <- WikiPageMessageGroup
- TranslatablePageMessageGroupStore
- TranslatablePageParse <- TPParse
- TranslatablePageSection <- TPSection
- UpdateTranslationsJob <- TranslationsUpdateJob
Statistics
[edit]- CharacterEditStatsMaintenanceScript <- CharacterEditStats
- LanguageEditStatsMaintenanceScript <- Languageeditstats
- LanguageStatsSpecialPage <- SpecialLanguageStats
- MessageGroupStats
- MessageGroupStatsMaintenanceScript <- GroupStatistics
- MessageGroupStatsSpecialPage <- SpecialMessageGroupStats
- QueryLanguageStatsActionApi <- ApiQueryLanguageStats
- QueryMessageGroupStatsActionApi <- ApiQueryMessageGroupStats
- RebuildMessageGroupStatsJob <- MessageGroupStatsRebuildJob
- ReviewPerLanguageStats
- StatsTable
- SupportedLanguageSpecialPage <- SpecialSupportedLanguages
- TranslatePerLanguageStats
- TranslateRegistrationStats
- TranslateStatsOutput
- TranslationStats
- TranslationStatsSpecialPage <- SpecialTranslationStats
- interface TranslationStatsInterface
Synchronization
[edit]- ChangeSyncer
- ExpandGroupSpecificationMaintenanceScript <- TranslateExpandGroupSpec
- ExportTranslationsMaintenanceScript <- CommandlineExport
- ExportTranslationsSpecialPage <- SpecialExportTranslations
- ExternalMessageSourceStateComparator
- ExternalMessageSourceStateImporter
- ImportExternalTranslationsMaintenanceScript <- ProcessMessageChanges
- ImportOfflineTranslationsMaintenanceScript <- Poimport
- ImportTranslationsSpecialPage <- SpecialImportTranslations
- ManageGroupsSpecialPage <- SpecialManageGroups
- MessageChangeStorage
- MessageSourceChange <- MessageSync\MessageSourceChange
- MessageWebImporter
- OfflineTranslationsImporter <- WikiWriter
- OfflineTranslationsParser <- PoImporter
- RenameExternalLanguageMaintenanceScript <- ExportRenameLanguage
- UpdateMessageJob <- MessageUpdateJob
TranslatorInterface
[edit]- AssistantLanguagesPreference <- TranslatePreferences
- MessageTable <- TuxMessageTable
- ReviewTranslationActiveApi <- ApiTranslationReview
- StatsBar
- TranslateEditAddons
- TranslateSpecialPage <- SpecialTranslate
- TranslationHelperException
- TranslationHelpers
- TranslationsSpecialPage <- SpecialTranslations
Aid
[edit]- CurrentTranslationAid
- DocumentationAid
- GettextDocumentationAid
- InOtherLanguagesAid
- InsertablesAid
- MachineTranslationAid
- MessageDefinitionAid
- SupportAid
- TTMServerAid
- TranslationAidDataProvider
- TranslationAidsActionApi <- ApiTranslationAids
- UnsupportedTranslationAid
- UpdatedDefinitionAid
Insertable
[edit]- CombinedInsertablesSuggester
- HtmlTagInsertablesSuggester
- Insertable
- MediaWikiInsertablesSuggester
- NumericalParameterInsertablesSuggester
- RegexInsertablesSuggester
- interface InsertablesSuggester
TranslatorSandbox
[edit]User visible api and special page names would not change.
- ManageTranslatorSandboxSpecialPage <- SpecialManageTranslatorSandbox
- TranslationStashActionApi <- ApiTranslationStash
- TranslationStashSpecialPage <- SpecialTranslationStash
- StashedTranslation
- StatisticsCollectionMaintenanceScript <- TS
- StatisticsProcessingMaintenanceScript <- TSP
- TranslateSandbox
- TranslateSandboxEmailJob
- TranslationStashStorage
- TranslatorSandboxActionApi <- ApiTranslateSandbox
TtmServer
[edit]- BootstrapTtmServerMaintenanceScript <- TTMServerBootstrap
- CrossLanguageTranslationSearchQuery
- DatabaseTtmServer <- DatabaseTTMServer
- ElasticSearchTtmServer <- ElasticSearchTTMServer
- FakeTtmServer <- FakeTTMServer
- FuzzyLikeThis
- RemoteTtmserver <- RemoteTTMServer
- SearchTranslationsActionApi <- ApiSearchTranslations
- SearchTranslationsSpecialPage <- SpecialSearchTranslations
- TtmServer <- TTMServer
- TtmServerActionApi <- ApiTTMServer
- TtmServerException <- TTMServerException
- TtmServerMessageUpdateJob <- TTMServerMessageUpdateJob
- interface ReadableTtmServer <- ReadableTTMServer
- interface SearchableTtmServer <- SearchableTTMServer
- interface WritableTtmServer <- WritableTTMServer
Utilities
[edit]- CommandLineLogger <- TranslateCliLogger
- FCFontFinder
- FuzzyTranslationsMaintenanceScript <- Fuzzy
- JsSelectToInput
- PHPVariableLoader
- SystemUsers <- SystemUsers\TranslateUserManager
- TranslateReplaceTitle
- TranslationFuzzer <- FuzzyScript
- Utilities <- TranslateUtils (should be split)
- Yaml <- TranslateYaml
Validation
[edit]- CheckTranslationActionApi <- ApiTranslationCheck
- MessageValidator
- ValidationResult
- ValidatorFactory
- interface Validator
Validator
[edit]- BraceBalanceValidator
- EscapeCharacterValidator
- GettextNewlineValidator
- GettextPluralValidator
- InsertableRegexValidator
- InsertableRubyVariableValidator
- IosVariableValidator
- MatchSetValidator
- MediaWikiMiscValidator
- MediaWikiPageNameValidator
- MediaWikiPluralValidator
- NewlineValidator
- NumericalParameterValidator
- PrintfValidator
- PythonInterpolationValidator
- SmartFormatPluralValidator
- UnicodePluralValidator
- WikiLinkValidator
- WikiParameterValidator
WebService
[edit]- ApertiumWebService
- CaighdeanWebService
- CxserverWebService
- MicrosoftWebService
- QueryAggregator
- RESTBaseWebService
- RemoteTTMServerWebService
- TranslationQuery
- TranslationQueryResponse
- TranslationWebServiceConfigurationException
- TranslationWebServiceException
- TranslationWebServiceInvalidInputException
- YandexWebService
- interface QueryAggregatorAware