Help:Extension:Translate/Getting started with development/ja
<translate> Translators</translate> (<translate> main help page</translate> )
- <translate> How to translate</translate>
- <translate> Best practices</translate>
- <translate> Statistics and reporting</translate>
- <translate> Quality assurance</translate>
- <translate> Message group states</translate>
- <translate> Offline translation</translate>
- <translate> Glossary</translate>
<translate> Translation administrators</translate>
- <translate> How to prepare a page for translation</translate>
- <translate> Page translation administration</translate>
- <translate> Unstructured element translation</translate>
- <translate> Group management</translate>
- <translate> Move translatable page</translate>
- <translate> Import translations via CSV</translate>
- <translate> Working with message bundles</translate>
<translate> Sysadmins and developers</translate>
- <translate> Installation</translate>
- <translate> Configuration</translate>
- <translate> Getting started with development</translate>
- <translate> Developer guide</translate>
- <translate> Extending Translate</translate>
- <translate> Validators</translate>
- <translate> Insertables</translate>
- <translate> Group configuration</translate>
- <translate> Group configuration example</translate>
- <translate> Translation memories</translate>
- <translate> Translation aids</translate>
- <translate> Enabling message bundles</translate>
- <translate> PHP hooks</translate>
Translate 拡張機能 (翻訳拡張機能) に興味を持ってくださり、ありがとうございます。 この文書の目的は、翻訳拡張機能の開発を簡単に始められる様にすることです。
翻訳拡張機能の開発にはJavaScript/jQueryとCSS/LESSの知識が必要です。 選択したタスクによっては MySQL の知識も必要になる場合があります。
コードを使いこなす
以下のページではコードの概要を紹介していますので参考にしてください:
ローカル開発のセットアップ
The easiest way to get started with development on Translate extension is to use the MediaWiki-Docker . こちらの説明書を参照してください。
Translate 拡張機能に特化したコード スニフを実行するには、Translate 拡張機能のディレクトリ内で composer install
を実行します。
以下のコマンドを使用できます:
docker-compose exec mediawiki sh -c "cd extensions/Translate && composer install"
コーディング規約
Translate follows the existing MediaWiki Coding conventions. These differ based on the programming languages, so ensure you go through the appropriate pages.
There are a few other guidelines specific to Translate to keep in mind.
何に取り組むか選択する
Go to the Translate Phabricator Board and look for tasks with the tag: good first tasks.
Because the extension is actively being worked on, before you start work on a task, we recommend leaving a comment about any additional concerns that are not reflected in the task currently.
After you receive the green light, you can go ahead and assign the task to yourself and start working.
パッチ提出チェックリスト
It is important to be familiar with how to work with Gerrit. It is also important to be familiar with the commit message guidelines.
Before submitting the patch, it's recommended to run linting tools and test cases locally to ensure that simple issues can be identified and fixed early. This helps reduce the back and forth during code reviews.
- Run
phpcbf
to fix easily fixable linting issues locally. This can be done using:docker-compose exec mediawiki composer fix extensions/Translate
- Run other linters to identify any issues that could not be fixed automatically. This can be done using:
docker-compose exec mediawiki sh -c "cd extensions/Translate && composer test"
- Run Translate extension test cases:
docker-compose exec mediawiki sh -c "composer phpunit:entrypoint -- extensions/Translate/tests/phpunit/"
他の有用なリンク
- MediaWiki code search - useful to see how certain hooks, or functions are used in other extensions.
- Open patches on Gerrit - you could help review.