Optional Weblate modules

Weblate comes with several optional modules which might be useful for your setup.

Git exporter

Добавлено в версии 2.10.

The Git exporter provides you read only access to the underlaying Git repository using http.

Installation

To install, simply add weblate.gitexport to installed applications in settings.py:

INSTALLED_APPS += (
    'weblate.gitexport',
)

After installing, you need to migrate your database so that existing repositories are properly exported:

./manage.py migrate

Usage

The module automatically hooks into Weblate and sets exported repository URL in the Component configuration. The repositories are accessible under /git/ path of the Weblate, for example https://example.org/git/weblate/master/:

git clone 'https://example.org/git/weblate/master/'

Repositories are available anonymously unless Per project access control is enabled. In that case you need to authenticate using your API token (you can obtain it in your User profile):

git clone 'https://user:KEY@example.org/git/weblate/master/'

Billing

Добавлено в версии 2.4.

Billing module is used on Hosted Weblate and is used to define billing plans, track invoices and usage limits.

Installation

To install, simply add weblate.billing to installed applications in settings.py:

INSTALLED_APPS += (
    'weblate.billing',
)

This module includes additional database structures, to have them installed you should run the database migration:

./manage.py migrate

Usage

After installation you can control billing in the admin interface. Users with billing enabled will get new Billing tab in their User profile.

Avatars

Weblate comes with built in support for showing user avatars based on emails. This can be disabled using ENABLE_AVATARS. The avatars are downloaded and cached server side to reduce information leaks to the sites serving them.

Weblate currently supports two backends:

  • Libravatar, what is federated avatar service with fallback to Gravatar. Libravatar is used automatically when pyLibravatar is installed.
  • Gravatar can be also used directly by Weblate and is used if the pyLibravatar library is not found.

См.также

Avatar caching, ENABLE_AVATARS

Spam protection

Optionally Weblate can be protected against suggestion spamming by unauthenticated users through akismet.com service.

To enable this, you need to install akismet Python module and configure Akismet API key.

См.также

AKISMET_API_KEY