Weblate internals¶
Примечание
This chapter will give you basic overview of Weblate internals.
Weblate derives most of its code structure from, and is based on Django.
Directory structure¶
Quick overview of directory structure of Weblate main repository:
docs
Source code for this documentation, built using Sphinx.
dev-docker
Docker code to run development server, see Running Weblate locally in Docker.
weblate
Source code of Weblate as a Django application, see Weblate internals.
weblate/static
Client files (CSS, Javascript and images), see Weblate frontend.
Модули¶
Weblate consists of several Django applications (some optional, see Дополнительные модули Weblate):
accounts
User account, profiles and notifications.
addons
Addons to tweak Weblate behavior, see Надстройки.
api
API based on Django REST framework.
auth
Authentication and permissions.
billing
Дополнительный модуль Тарифный план.
checks
Модуль Проверки качества строки перевода.
fonts
Модуль проверки отрисовки шрифтов.
formats
File format abstraction layer based on translate-toolkit.
gitexport
Дополнительный модуль Экспортер Git.
lang
Модуль определения языка и моделей множественного числа.
legal
Дополнительный модуль Право.
machinery
Интеграция сервисов машинного перевода.
memory
Встроенная память переводов, смотрите раздел Память переводов.
screenshots
Модуль управления снимками экрана и распознаванием текста.
trans
Основной модуль обработки переводов.
utils
Различные вспомогательные утилиты.
vcs
Абстракция системы контроля версий.
wladmin
Настройка административного интерфейса Django.