Extension:ContentTranslation/pt-br

Category:GPL licensed extensions/pt-br
Manual de extensões do MediaWiki
ContentTranslation
Estado da versão: estávelCategory:Stable extensions/pt-br
Implementação Interface de usuárioCategory:User interface extensions/pt-br, Ações de página Category:Page action extensions/pt-br
Descrição Uma ferramenta que permite aos editores traduzirem um artigo de um idioma para outro com a ajuda de tradutor automático e outros auxiliares de tradução.
Autor(es) Equipe de Idiomas
Política de
compatibilidade
Lançamentos de snapshot junto com o MediaWiki. A master não é retrocompatível.
MediaWiki 1.37+Category:Extensions with manual MediaWiki version/pt-br
PHP 7.2+
Modifica o banco
de dados
Sim
Composer mediawiki/content-translationCategory:Extensions supporting Composer/pt-br
Tabelas cx_translations
cx_translators
cx_lists
cx_suggestions
cx_corpora
cx_notification_log
cx_significant_edits
cx_section_translations
Licença GNU GPL (Licença Pública Geral) 2.0 ou superior
Download Category:Extensions in Wikimedia version control/pt-br
Ajuda Help:Extension:ContentTranslation/pt-br
  • $wgContentTranslationEnableSuggestions
  • $wgContentTranslationVersion
  • $wgContentTranslationContentImportForSectionTranslation
  • $wgContentTranslationDomainCodeMapping
  • $wgContentTranslationCXServerAuth
  • $wgContentTranslationEnableAnonSectionTranslation
  • $wgContentTranslationExcludedNamespaces
  • $wgContentTranslationAsBetaFeature
  • $wgContentTranslationTranslateInTarget
  • $wgContentTranslationDevMode
  • $wgRecommendToolAPIURL
  • $wgDraftMaxAge
  • $wgContentTranslationEnableMT
  • $wgAutomaticTranslationLanguageSearcherEntrypointEnabledLanguages
  • $wgContentTranslationEnableUnifiedDashboard
  • $wgContentTranslationSiteTemplates
  • $wgContentTranslationUnmodifiedMTThresholdForPublish
  • $wgSectionTranslationTargetLanguages
  • $wgContentTranslationPublishRequirements
  • $wgContentTranslationCampaigns
  • $wgContentTranslationTargetNamespace
Para traduzir a extensão ContentTranslation, verifique sua disponibilidade no translatewiki.net
Problemas Tarefas em aberto · Relatar um bug
Category:All extensions/pt-br

A extensão ContentTranslation é uma ferramenta que permite aos editores traduzirem um artigo de um idioma para outro com a ajuda de tradutor automático e outros auxiliares de tradução. Veja Tradutor de conteúdo para contextualização e informações adicionais. A extensão está sendo desenvolvida pela equipe de Engenharia de Idiomas da Wikimedia.

Instalação

This extension requires a CXserver to be setup first. Moreover it has extension dependencies.
  • Baixe e mova a pasta extraída ContentTranslation ao seu diretório extensions/.
    Desenvolvedores e colaboradores de código, por outro lado, deverão instalar a extensão a partir do Git, usando:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ContentTranslation
    
  • Se estiver instalando a partir do Git, execute o Composer para instalar as dependências do PHP através do comando composer install --no-dev no diretório da extensão. (Veja T173141 para possíveis complicações.)Category:Extensions requiring Composer with git/pt-br
  • Adicione o seguinte código ao final do seu arquivo LocalSettings.php :
    wfLoadExtension( 'ContentTranslation' );
    
  • Execute o script de atualização que criará automaticamente as tabelas necessárias a essa extensão no banco de dados.
  • Yes Concluído – Navegue à página Special:Version em sua wiki para verificar se a instalação da extensão foi bem sucedida.


Instalação com o Vagrant:

  • Se estiver usando o Vagrant , instale com vagrant roles enable contenttranslation --provision

Content Translation server

A extensão precisa do servidor de tradução de conteúdo (cxserver) funcionando e em execução. Veja Content_translation/Setup para configurar o servidor de tradução de conteúdo. Ao executar a Tradução de conteúdo localmente, o seguinte pode ser adicionado a LocalSettings.php para usar o cxserver de produção:

$wgContentTranslationSiteTemplates['cx'] = 'https://cxserver.wikimedia.org/v1';

Dependências da extensão

ContentTranslation depende das seguintes extensões:

UniversalLanguageSelector Required
VisualEditor Required Necessária pelo componente de edição.
Cite Required Necessário se você quiser apoiar referências enquanto estiver traduzindo
WikimediaMessage Required
GuidedTour Optional Se instalada, será usada para explicar sobre mover uma página para fora do espaço do usuário.
Echo Optional Se instalada, será usada para mostrar notificações parabenizando por completar marcos de tradução.
Wikibase Optional Se instalada e configurada como na Wikipédia, será usada para adicionar automaticamente ligações interlinguísticas.
EventLogging Optional Se instalada, pode ser usada para registrar publicações, erros e outros eventos.
BetaFeatures Optional Se instalada, essa extensão aparecerá como recurso Beta nas preferências.


Variáveis de configuração

Category:Drafts

Para obter a lista completa e os padrões, consulte extension.json no repositório de código-fonte.

ContentTranslationDomainCodeMapping
Used to map between non-standard language codes and actual domains. The default is the same as in Wikipedia codes and domains.
ContentTranslationSiteTemplates
Templates for essential URLs. The defaults assume Wikipedia, so this variable must be configured differently for other sites. Where relevant, $1 is replaced by the language code, and $2 is replaced by the page title.
ContentTranslationTranslateInTarget
Whether to open Special:ContentTranslation in the target wiki when clicking the button in the entry point. The domain will be based on $wgContentTranslationSiteTemplates. The default is to open Special:ContentTranslation on the same wiki. (For Wikipedia this is set to true.)
ContentTranslationAsBetaFeature
Whether ContentTranslation is a beta feature.
ContentTranslationTargetNamespace
The default target namespace for published articles. The default is Main.
ContentTranslationCampaigns
Campaigns that are available in the URL as valid values for the campaign parameter in the URL. This allows automatic enabling of the beta feature and event logging.
ContentTranslationCXServerAuth
CXServer connection configuration.
ContentTranslationEnableSuggestions
Whether to use the suggestions tab and automatic suggestions. This needs the GapFinder API. This is false by default, but true in Wikipedia.
RecommendToolAPIURL
The URL for the GapFinder API, needed if ContentTranslationEnableSuggestions is true.


Parâmetros de Url

A tradução de conteúdo funciona principalmente na página especial Special:ContentTranslation. Os parâmetros da URL são

  • page: source title
  • targettitle: target title
  • from: source language
  • to: target language
  • campaign: campaign name
    • In Wikimedia wikis, if content translation is not enabled in the user settings then only links to pre-defined campaign will work. Campaigns are defined in InitialiseSettings.php wmgContentTranslationCampaigns variable.

Exemplo

Ver também

Category:Extensions used on Wikimedia/pt-br#ContentTranslation/pt-br Category:WYSIWYG extensions/pt-br Category:Localisation extensions/pt-br Category:Language Engineering/pt-br Category:Content Translation/pt-br
Category:All extensions/pt-br Category:BeforeCreateEchoEvent extensions/pt-br Category:BeforePageDisplay extensions/pt-br Category:ChangeTagsListActive extensions/pt-br Category:Content Translation/pt-br Category:ContributeCards extensions/pt-br Category:Drafts Category:EchoGetBundleRules extensions/pt-br Category:EditPage::showEditForm:initial extensions/pt-br Category:Extensions in Wikimedia version control/pt-br Category:Extensions requiring Composer with git/pt-br Category:Extensions supporting Composer/pt-br Category:Extensions used on Wikimedia/pt-br Category:Extensions with manual MediaWiki version/pt-br Category:GPL licensed extensions/pt-br Category:GetBetaFeaturePreferences extensions/pt-br Category:GetPreferences extensions/pt-br Category:Language Engineering/pt-br Category:ListDefinedTags extensions/pt-br Category:LoadExtensionSchemaUpdates extensions/pt-br Category:Localisation extensions/pt-br Category:Page action extensions/pt-br Category:ResourceLoaderRegisterModules extensions/pt-br Category:SaveUserOptions extensions/pt-br Category:SectionTranslationBeforePublish extensions/pt-br Category:SkinAfterContent extensions/pt-br Category:SpecialContributionsBeforeMainOutput extensions/pt-br Category:Stable extensions/pt-br Category:User interface extensions/pt-br Category:WYSIWYG extensions/pt-br