Extension:ContentTranslation

This page is a translated version of the page Extension:ContentTranslation and the translation is 97% complete.
मीडियाविकि एक्सटेंशन मैन्युअल
ContentTranslation
प्रकाशन की स्थिति: स्थिर
कार्यान्वयन सदस्य इंटरफ़ेस, पृष्ठ कार्य
विवरण उपकरण जिसकी मदद से संपादक मशीन अनुवाद और दूसरे अनुवाद सहायताओं की मदद से किसी लेख को एक भाषा से दूसरी भाषा में अनुवादित कर सकते हैं।
लेखक भाषा दल
संगतता नीति मीडियाविकि के साथ प्रकाशित स्नैपशॉट्स। Master में पीछे की तरफ से संगतता नहीं है।
MediaWiki 1.37+
PHP 7.2+
डेटाबेस बदलता है हाँ
Composer mediawiki/content-translation
टेबल cx_translations
cx_translators
cx_lists
cx_suggestions
cx_corpora
cx_notification_log
cx_significant_edits
cx_section_translations
लाइसेंस GNU साधारण सार्वजनिक लाइसेंस 2.0 या उसके बाद
डाउनलोड करें
सहायता Help:Extension:ContentTranslation/hi
  • $wgContentTranslationEnableSuggestions
  • $wgContentTranslationTargetNamespace
  • $wgContentTranslationContentImportForSectionTranslation
  • $wgContentTranslationDomainCodeMapping
  • $wgContentTranslationCXServerAuth
  • $wgContentTranslationEnableAnonSectionTranslation
  • $wgContentTranslationExcludedNamespaces
  • $wgContentTranslationCluster
  • $wgContentTranslationAsBetaFeature
  • $wgContentTranslationTranslateInTarget
  • $wgContentTranslationDevMode
  • $wgRecommendToolAPIURL
  • $wgDraftMaxAge
  • $wgContentTranslationEnableUnifiedDashboard
  • $wgContentTranslationEnableMT
  • $wgSectionTranslationTargetLanguages
  • $wgContentTranslationEnableSectionTranslation
  • $wgContentTranslationSiteTemplates
  • $wgContentTranslationUnmodifiedMTThresholdForPublish
  • $wgContentTranslationVersion
  • $wgContentTranslationPublishRequirements
  • $wgContentTranslationCampaigns
  • $wgContentTranslationDatabase
Quarterly downloads 26 (Ranked 123rd)
ContentTranslation एक्सटेंशन को अनुवादित करें अगर यह translatewiki.net पर उपलब्ध है
मुद्दे अधूरे कार्य · बग की रिपोर्ट करें

ContentTranslation (सामग्री अनुवाद) एक उपकरण है जिसकी मदद से संपादक मशीन अनुवाद और दूसरे अनुवाद सहायताओं की मदद से किसी लेख को एक भाषा से दूसरी भाषा में अनुवादित कर सकते हैं। पीछे की और अधिक जानकारी के लिए सामग्री अनुवाद देखें। यह उपकरण विकिमीडिया भाषा अभियांत्रिकी दल द्वारा विकसित किया जा रहा है।

स्थापना

This extension requires a Content Translation server to be setup first. Morover it has three extension dependencies.
  • फ़ाइलों को डाउनलोड करें और अपने extensions/ फ़ोल्डर के ContentTranslation नामक डिरेक्ट्री में डालें।
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ContentTranslation
  • सिर्फ गिट से डाउनलोड करते समय एक्सटेंशन डिरेक्ट्री से composer install --no-dev प्रकाशित करके PHP निर्भरताएँ स्थापित करने के लिए Composer चलाएँ। (संभावित जटिलताओं के लिए टास्क T173141 देखें।)
  • अपने LocalSettings.php फ़ाइल के अंत में निम्न कोड जोड़ें:
    wfLoadExtension( 'ContentTranslation' );
    
  • अपडेट स्क्रिप्ट चलाएँ जो स्वचालित रूप से आवश्यक डेटाबेस टेबल्स का निर्माण करेगा जिसकी इस एक्सटेंशन को आवश्यकता है।
  •   पूर्ण – अपने विकि पर Special:Version पर जाकर देखें कि एक्सटेंशन को सफलतापूर्वक स्थापित किया गया है कि नहीं।


Vagrant स्थापना:

  • अगर आप Vagrant का इस्तेमाल कर रहे हैं, तो vagrant roles enable contenttranslation --provision से स्थापित करें

Content Translation server

इस एक्सटेंशन को एक चलने वाला सामग्री अनुवाद सर्वर (यानी CX सर्वर) चाहिए। अनुवाद सामग्री सर्वर को सेटअप करने की विधि के लिए Content translation/cxserver/Setup देखें। सामग्री अनुवाद को लोकल रूप से चलाते समय सृष्टि CX सर्वर पर यह जोड़ा जा सकता है:

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

अनुवाद डेटाबेस

इस एक्सटेंशन में एक वैकल्पिक डैशबोर्ड सुविधा है जिससे अनुवादक सभी भाषाओं में सभी अनुवाद देख सकते हैं। इस एक्सटेंशन के एक बहुभाषी स्थापना, जैसे विकिमीडिया विकियों में डैशबोर्ड सुविधा को चलाने के लिए एक केंद्रीय डेटाबेस की ज़रूरत है। उस डेटाबेस के टेबल परिभाषाएँ एक्सटेंशन के स्रोत कोड के sql डिरेक्ट्री में हैं; Content translation/Product Definition/Database पर अधिक जानकारी है। जब डेटाबेस बना लिया जाए, $wgContentTranslationDatabase ग्लोबल कॉन्फ़िगरेशन वेरिएबल को डेटाबेस के नाम पर सेट करें:

$wgContentTranslationDatabase = 'db_name';

एक्सटेंशन की निर्भरताएँ

ContentTranslation इन एक्सटेंशनों पर निर्भर है:

UniversalLanguageSelector Required
VisualEditor Required एडिटर के अवयव के लिए ज़रूरी है।
Cite Required अगर आप अनुवादित करते समय सन्दर्भों की अनुमति देना चाहते हैं, यह काम आ सकता है।
GuidedTour Optional अगर इसे स्थापित किया जाता है, इससे किसी पृष्ठ को सदस्य नामस्थान से बाहर स्थानांतरित करने के बारे में एक व्याख्या दिखाई जाएगी।
Echo Optional अगर इसे स्थापित किया जाता है, इसकी मदद से किसी अनुवाद उपलब्धि को प्राप्त करने के बाद शाबाशी का एक संदेश दिखाया जाएगा।
Wikibase Optional अगर इसे विकिपीडिया की तरह स्थापित और कॉन्फ़िगर किया जाता है, इससे अंतरभाषा कड़ियों को अपने आप (साइटकड़ियों के रूप में) जोड़ा जाएगा।
EventLogging Optional अगर इसे स्थापित किया जाता है, इससे प्रकाशन, त्रुटियाँ, और दूसरी घटनाएँ लॉग की जा सकती हैं।
BetaFeatures Optional अगर इसे स्थापित किया जाता है, ContentTranslation वरीयताओं में एक बीटा सुविधा के रूप में उपलब्ध होगी।

कॉन्फ़िगरेशन के वेरिएबल

For the full list and defaults, see extension.json in the source 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 पैरामीटर

सामग्री अनुवाद मुख्यतः Special:ContentTranslation विशेष पृष्ठ पर काम करता है। URL पैरामीटर्स हैं:

  • page: स्रोत का शीर्षक
  • targettitle: लक्ष्य का शीर्षक
  • from: स्रोत भाषा
  • to: लक्ष्य भाषा
  • campaign: अभियान का नाम
    • विकिमीडिया विकियों पर, अगर सदस्य की सेटिंग्स पर सामग्री अनुवाद को सक्षम न किया जाता है, सिर्फ पूर्व-परिभाषित अभियानों की कड़ियाँ ही काम करेंगी। अभियानों को InitialiseSettings.php wmgContentTranslationCampaigns वेरिएबल में परिभाषित किया जाता है।

उदाहरण

ये भी देखें