Extension:ContentTranslation/nl

From mediawiki.org
This page is a translated version of the page Extension:ContentTranslation and the translation is 100% complete.
MediaWiki Handleiding extensies
ContentTranslation
Release status: stabiel
Implementatie Gebruikersinterface, Pagina actie
Beschrijving Hulpmiddel voor vertalers om een artikel van de ene naar de ander taal te vertalen met behulp van machine-vertaling en andere hulpmiddelen voor het vertalen.
Auteur(s) taalteam
Compatibiliteit beleid Snapshots releases samen met MediaWiki. Master is niet achterwaarts compatibel.
MediaWiki 1.37+
PHP 7.2+
Database wijzigingen Ja
Composer mediawiki/content-translation
Tabellen cx_translations
cx_translators
cx_lists
cx_suggestions
cx_corpora
cx_notification_log
cx_significant_edits
cx_section_translations
Licentie GNU General Public Licentie 2.0 of hoger
Download
Help Help:Extension:ContentTranslation/nl
  • $wgContentTranslationEnableSuggestions
  • $wgContentTranslationTargetNamespace
  • $wgContentTranslationContentImportForSectionTranslation
  • $wgContentTranslationDomainCodeMapping
  • $wgContentTranslationCXServerAuth
  • $wgContentTranslationEnableAnonSectionTranslation
  • $wgContentTranslationExcludedNamespaces
  • $wgContentTranslationCluster
  • $wgContentTranslationAsBetaFeature
  • $wgContentTranslationTranslateInTarget
  • $wgContentTranslationDevMode
  • $wgRecommendToolAPIURL
  • $wgDraftMaxAge
  • $wgContentTranslationEnableUnifiedDashboard
  • $wgContentTranslationEnableMT
  • $wgSectionTranslationTargetLanguages
  • $wgContentTranslationEnableSectionTranslation
  • $wgContentTranslationSiteTemplates
  • $wgContentTranslationUnmodifiedMTThresholdForPublish
  • $wgContentTranslationVersion
  • $wgContentTranslationPublishRequirements
  • $wgContentTranslationCampaigns
  • $wgContentTranslationDatabase
Downloads kwartaal 28 (Ranked 121st)
Vertaal de ContentTranslation extensie indien beschikbaar op translatewiki.net
Problemen Open taken · Rapporteer een bug

De extensie ContentTranslation is een hulpmiddel waarmee een vertaler een artikel kan vertalen naar een andere taal met behulp van machine-vertaling en andere hulpmiddelen. Zie Content translation voor aanvullende informatie en achtergrondinformatie. De extensie is ontworpen door het Wikimedia Language Engineering team.

Installatie

This extension requires a Content Translation server to be setup first. Morover it has three extension dependencies.
  • Download en plaats de bestanden in de map ContentTranslation in de map extensions/.
    Ontwikkelaars en bijdragers van code moeten in plaats daarvan de extensie van Git installeren, met behulp van:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ContentTranslation
  • Alleen bij installeren vanuit Git, run Composer om PHP afhankelijkheden te installeren, door het publiceren van composer install --no-dev in de extensie-map. (Zie taak T173141 voor potentiële problemen.)
  • Voeg de volgende code onderaan het bestand LocalSettings.php toe:
    wfLoadExtension( 'ContentTranslation' );
    
  • Voer het update script uit, dat automatisch de vereiste database-tabellen creëert die nodig zijn voor de extensie.
  • Yes Klaar – Navigeer naar Special:Version op de wiki om te controleren dat de extensie geïnstalleerd is.


Vagrant installatie:

  • Wanneer Vagrant gebruikt wordt, installeer door middel van vagrant roles enable contenttranslation --provision

Content Translation server

De extensie heeft een werkende server Content Translation (ook wel cxserver) nodig. Zie Content translation/cxserver/Setup voor het instellen van de Content Translation server. Als deze server lokaal draait, dan kan het volgende worden toegevoegd aan LocalSettings.php om de productie cxserver te gebruiken:

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

Database met vertalingen

De extensie heeft een optioneel paneelbordfunctie waardoor een vertaler kan zien wat de vertalingen in andere talen zijn. In een meertalige installatie van deze extensie, bijvoorbeeld in de Wikipedia wiki's, wordt een centrale database vereist om de paneelbord functie te kunnen gebruiken. De definities van de tabellen van deze database staan in de map sql in de broncode van de extensie; Content translation/Product Definition/Database bevat meer details. Nadat de database is aangemaakt, stel de globale variabele $wgContentTranslationDatabase in als de naam van de database:

$wgContentTranslationDatabase = 'db_name';

Extensie afhankelijkheden

het is afhankelijk van de volgende extensies:

UniversalLanguageSelector Verplicht
VisualEditor Verplicht Verplicht voor de component 'editor'.
Cite Verplicht Verplicht als u referenties wilt ondersteunen bij het vertalen.
GuidedTour Optioneel Indien geïnstalleerd, het wordt gebruikt voor het tonen van een uitleg over het verplaatsen van een pagina buiten de gebruikersruimte.
Echo Optioneel Indien geïnstalleerd, het wordt gebruikt voor het tonen van meldingen met "felicitaties" na het afronden van een mijlpaal.
Wikibase Optioneel Indien geïnstalleerd en geconfigureerd gelijksoortig als Wikipedia, het wordt gebruikt voor het automatisch toevoegen van meertalige links (als website-links).
EventLogging Optioneel Indien geïnstalleerd, het kan worden gebruikt voor het loggen van publicaties, fouten en andere gebeurtenissen.
BetaFeatures Optioneel Indien geïnstalleerd, ContentTranslation zal worden getoond bij de voorkeuren als een betafunctie.

Configuratie variabelen

Voor de volledige lijst en standaardwaarden, zie extension.json in de bron-repository.

ContentTranslationDomainCodeMapping
Used to map between non-standard language codes and actual domains. The default is the same as in Wikipedia codes and domains.
ContentTranslationRESTBase
Configuration of RESTBase URL and connection parameters. The defaults are for Wikipedia.
ContentTranslationDatabase
The name of the database in which the common tables for managing translations across wikis are stored. The default is null, which means that the default database is used.
ContentTranslationCluster
In a Wikipedia-like database configuration, the name of the cluster on which the database is hosted. The default is null, which means that the default cluster is used.
ContentTranslationEventLogging
Whether EventLogging is enabled. The default is false.
ContentTranslationHighMTCategory
A category to which pages that have a high level of machine translation are added upon publishing. The default is null.
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.

URL parameters

'Content Translation'werkt vooral op de speciale pagina Special:ContentTranslation. De URL-parameters zijn

  • page: titel bron
  • targettitle: titel doel
  • from: taal bron
  • to: taal doel
  • campaign: campagne naam
    • Op Wikimedia wiki's, als de extensie niet ingeschakeld in de gebruikersinstellingen dan werken alleen voorgedefinieerde links. Campagnes worden gedefinieerd in InitialiseSettings.php variabele wmgContentTranslationCampaigns.

Voorbeeld

Zie ook