mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-04-28 01:55:27 +08:00
50 lines
799 B
ReStructuredText
50 lines
799 B
ReStructuredText
Developing add-ons
|
|
==================
|
|
|
|
:ref:`addons` are way to customize localization workflow in Weblate.
|
|
|
|
.. currentmodule:: weblate.addons.base
|
|
|
|
.. autoclass:: BaseAddon
|
|
:members:
|
|
|
|
.. currentmodule:: weblate.addons.models
|
|
|
|
.. class:: Addon
|
|
|
|
ORM object for an add-on.
|
|
|
|
.. currentmodule:: weblate.trans.models
|
|
|
|
.. class:: Component
|
|
|
|
ORM object for a component.
|
|
|
|
.. class:: Translation
|
|
|
|
ORM object for a translation.
|
|
|
|
.. class:: Project
|
|
|
|
ORM object for a project.
|
|
|
|
.. class:: Unit
|
|
|
|
ORM object for an unit.
|
|
|
|
.. class:: User
|
|
|
|
ORM object for an user.
|
|
|
|
.. class:: TranslationFormat
|
|
|
|
Translation file wrapper.
|
|
|
|
.. class:: BaseAddonForm
|
|
|
|
Base form for configuring add-ons.
|
|
|
|
Here is an example add-on:
|
|
|
|
.. literalinclude:: ../../weblate/addons/example.py
|
|
:language: python
|