Manual:Pywikibot/i18n/uk

Ця сторінка призначена для того, щоб допомогти вам зрозуміти систему у pywikibot.

Для користувачів
Підмодуль I18n життєво важливий для запуску ботів. Неважливо, чи хочете ви запускати pywikibot в англомовній вікі, чи ні. 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

Changing or adding i18n
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.

For developers
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: