ส่วนขยาย: การแปลเนื้อหา
ContentTranslation Release status: stable |
|||
---|---|---|---|
Implementation | User interface, Page action | ||
Description | เครื่องมือที่ช่วยให้บรรณาธิการสามารถแปลบทความจากภาษาหนึ่งไปยังอีกภาษาหนึ่งได้โดยใช้เครื่องแปลภาษาและเครื่องมือช่วยแปลอื่น ๆ | ||
Author(s) | Language team | ||
Latest version | 1.0.0 (Continuous updates) | ||
Compatibility policy | release branches | ||
MediaWiki | 1.31+ | ||
PHP | 7.0+ | ||
Database changes | No | ||
License | GNU General Public License 2.0 or later | ||
Download | |||
|
|||
Translate the ContentTranslation extension if it is available at translatewiki.net | |||
Check usage and version matrix. | |||
Issues | Open tasks · Report a bug |
ContentTranslation 'เป็นเครื่องมือที่ช่วยให้บรรณาธิการสามารถแปลบทความจากภาษาหนึ่งไปยังอีกภาษาหนึ่งได้โดยใช้เครื่องแปลภาษาและเครื่องมือช่วยแปลอื่น ๆ โปรดดูข้อมูลพื้นฐานและข้อมูลเพิ่มเติมได้ที่ การแปลเนื้อหา ส่วนขยายนี้ได้รับการพัฒนาโดยทีมวิกิมีเดียวิศวกรรมศาสตร์
Contents
ดาวน์โหลด
The extension can be retrieved directly from Git [?]:
- Browse code
- Some extensions have tags for stable releases.
- Browse tags
- Select the tag
- Click "snapshot"
- Each branch is associated with a past MediaWiki release. There is also a "master" branch containing the latest alpha version (might require an alpha version of MediaWiki).
- Browse branches
- Select a branch name
- Click "Continue"
Extract the snapshot and place it in the extensions/ContentTranslation/ directory of your MediaWiki installation.
If you are familiar with git and have shell access to your server, you can also obtain the extension as follows:
cd extensions/
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/ContentTranslation.git
การติดตั้ง
- Download and place the file(s) in a directory called
ContentTranslation
in yourextensions/
folder.
- Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'ContentTranslation' );
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
ส่วนขยายจำเป็นต้องใช้งานเซิร์ฟเวอร์การแปลเนื้อหา (a.k.a. cxserver) และใช้งานได้ ดู Content_translation/Setup สำหรับการตั้งค่าเซิร์ฟเวอร์การแปลเนื้อหา
ฐานข้อมูลการแปล
ส่วนขยายนี้มีคุณลักษณะแดชบอร์ดตัวเลือกซึ่งช่วยให้ผู้แปลสามารถดูคำแปลทั้งหมดในทุกภาษาได้ ในการติดตั้งส่วนขยายนี้หลายภาษาเช่นในวิกิไฟล์วิกิมีเดียจำเป็นต้องมีฐานข้อมูลส่วนกลางเพื่อใช้คุณลักษณะแดชบอร์ด เมื่อต้องการสร้างฐานข้อมูลให้ดูที่ไฟล์ sql/contentranslation.sql
ในซอร์สโค้ดส่วนขยาย;Content translation/Database มีรายละเอียดเพิ่มเติม เมื่อฐานข้อมูลถูกสร้างขึ้นให้ตั้งค่าตัวแปรการกำหนดค่าสากล $wgContentTranslationDatabase
เป็นชื่อของฐานข้อมูล:
$GLOBALS['wgContentTranslationDatabase'] = 'contenttranslation';
การอ้างอิงที่เพิ่มขึ้น
ContentTranslation ขึ้นอยู่กับส่วนขยายต่อไปนี้:
UniversalLanguageSelector | จำเป็นต้องใช้ | |
VisualEditor | จำเป็นต้องใช้ | จำเป็นสำหรับคอมโพเนนต์ของตัวแก้ไข |
GuidedTour | ให้เลือกได้ | หากติดตั้งไว้จะใช้เพื่อแสดงคำอธิบายเกี่ยวกับการย้ายหน้าออกจากพื้นที่ของผู้ใช้ |
Echo | ให้เลือกได้ | หากติดตั้งไว้จะใช้สำหรับแสดงข้อความแจ้งเตือน "ขอแสดงความยินดี" หลังจากเสร็จสิ้นขั้นตอนการแปล |
Wikibase | ให้เลือกได้ | หากติดตั้งและกำหนดค่าไว้ในวิกิพีเดียจะมีการใช้การเพิ่มการเชื่อมโยงระหว่างภาษาโดยอัตโนมัติ (เป็นไซต์ลิงก์) |
EventLogging | ให้เลือกได้ | หากติดตั้งไว้สามารถใช้เพื่อบันทึกการประกาศข้อผิดพลาดและเหตุการณ์อื่น ๆ |
BetaFeatures | ให้เลือกได้ | หากติดตั้ง ContentTranslation จะปรากฏเป็นคุณลักษณะเบต้าในการกำหนดลักษณะ |
Cite | optional | Required if you want to support references while translating. |
ตัวแปรการกำหนดค่า
![]() | This section is currently a draft. Material may not yet be complete, information may presently be omitted, and certain parts of the content may be subject to radical, rapid alteration. More information pertaining to this may be available on the talk page. |
For the full list and defaults, see extension.json in the source repository.
- ContentTranslationExperimentalFeatures
- Not used at the moment. Was used in the past for testing experimental features.
- 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.
- ContentTranslationDefaultSourceLanguage
- The code of the default source language shown in the language selector. The default is English (en), which is the most common source language for most language. In the English Wikipedia this is set to Spanish (es).
- 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.
- ContentTranslationBrowserBlacklist
- Browser blacklist. Uses the same format as $.client.test().
- 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.
ดูเพิ่ม
![]() | This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page. |
- GPL licensed extensions/th
- Stable extensions/th
- User interface extensions/th
- Page action extensions/th
- Extensions in Wikimedia version control/th
- BeforePageDisplay extensions/th
- GetBetaFeaturePreferences extensions/th
- ResourceLoaderGetConfigVars extensions/th
- EventLoggingRegisterSchemas extensions/th
- SpecialContributionsBeforeMainOutput extensions/th
- ResourceLoaderTestModules extensions/th
- ListDefinedTags extensions/th
- ChangeTagsListActive extensions/th
- UserSaveOptions extensions/th
- EditPage::showEditForm:initial extensions/th
- BeforeCreateEchoEvent extensions/th
- EchoGetDefaultNotifiedUsers extensions/th
- All extensions/th
- Drafts
- Extensions used on Wikimedia/th
- WYSIWYG extensions/th
- Localisation extensions/th
- Language Engineering/th
- Content Translation/th