Manual:Pywikibot/i18n/ja

This page is dedicated to help you understand system in pywikibot.

利用者向け
I18n submodule is vital for running bots. It doesn't matter if you want to run pywikibot in an English-based wiki or not. If you want to install it you can run the following commands:

With SVN submodule must be always configured and updated separately using:

I18n files are json files in scripts/i18n folder separated by language and script e.g. Persian i18n phrases related to category.py exist in:

scripts --> i18n --> category --> fa.json

国際化の変更や追加
If you wish to change or add i18n for certain script in your language, use and update your i18n submodule after one week or two. In order to update i18n submodule run the following commands:

or in root run:

If you can't wait, change it manually, but we don't recommend this since it may cause failure in next updates.

開発者向け
I18n class is in i18n.py in pywikibot folder, the related documents can be found in the documentation. As an easy example:

You can give a site object instead of language code: