### Install Add-on for All Components Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/management.rst Installs a specified add-on for all existing components in Weblate. This example installs the 'weblate.gettext.mo' add-on with a configuration for fuzzy translations and updates existing configurations. ```shell weblate install_addon --addon weblate.gettext.mo --configuration '{"fuzzy": true}' --update --all ``` -------------------------------- ### Example Add-on Configuration Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/config.rst Include a custom add-on by adding its Python path to the WEBLATE_ADDONS list. Ensure the add-on is installed before removing it from this list to prevent crashes. ```python WEBLATE_ADDONS = ( "weblate.addons.flags.BulkEditAddon", "weblate.addons.generate.GenerateFileAddon", "weblate.addons.properties.PropertiesSortAddon", "weblate.addons.git.GitSquashAddon", "weblate.addons.removal.RemoveComments", "weblate.addons.removal.RemoveSuggestions", "weblate.addons.resx.ResxUpdateAddon", "weblate.addons.autotranslate.AutoTranslateAddon", "weblate.addons.cdn.CDNJSAddon", # Add-on you want to include "weblate.addons.example.ExampleAddon", ) ``` -------------------------------- ### Configure Default Add-ons for Components Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/config.rst Defines the default add-ons to be installed for newly created components. This example shows how to configure add-ons with and without parameters. ```python DEFAULT_ADDONS = { # Add-on with no parameters "weblate.flags.target_edit": {}, # Add-on with parameters "weblate.autotranslate.autotranslate": { "mode": "suggest", "filter_type": "todo", "auto_source": "mt", "component": "", "engines": ["weblate-translation-memory"], "threshold": "80", }, } ``` -------------------------------- ### Example Add-on Implementation Source: https://github.com/weblateorg/weblate/blob/main/docs/contributing/addons.rst This is a basic example of an add-on implementation in Python. It serves as a starting point for creating custom add-ons. ```python from weblate.addons.base import BaseAddon class ExampleAddon(BaseAddon): """Example add-on.""" def pre_save_translation(self, request, instance, changelog): """Example hook.""" return True ``` -------------------------------- ### Install Weblate with All Optional Dependencies Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/install/steps/install-python.rst Install Weblate and all its optional dependencies using 'uv pip install "weblate[all]"'. Refer to documentation for fine-tuning optional dependencies. ```sh # Install Weblate with all optional dependencies uv pip install "weblate[all]" ``` -------------------------------- ### Generic API Request Example Source: https://github.com/weblateorg/weblate/blob/main/docs/api.rst This example shows a typical GET request to the API root, including the necessary Host and Accept headers, and the Authorization header for authentication. ```http GET /api/ HTTP/1.1 Host: example.com Accept: application/json, text/javascript Authorization: Token YOUR-TOKEN ``` -------------------------------- ### Install Site-wide Automatic Suggestion Service Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/management.rst Installs a site-wide automatic suggestion service. This example shows the basic command structure for installing a service like 'deepl'. ```sh weblate install_machinery --service SERVICE ``` -------------------------------- ### AsciiDoc File Example Source: https://github.com/weblateorg/weblate/blob/main/docs/formats/asciidoc.rst An example AsciiDoc file demonstrating its structure and content. ```asciidoc = Sample document This is a sample AsciiDoc document. == Section 1 Some text in section 1. === Subsection 1.1 More text. == Section 2 Another section with some content. * List item 1 * List item 2 ---- This is a horizontal rule. ---- [source,python] ---- print("Hello, AsciiDoc!") ---- ``` -------------------------------- ### Catkeys File Example Source: https://github.com/weblateorg/weblate/blob/main/docs/formats/catkeys.rst An example of the Catkeys file format, showing the header and subsequent translation entries. ```text 1 english application 12345678 source1 context1 remarks1 target1 source2 context2 remarks2 target2 ``` -------------------------------- ### Install Weblate with All Optional Features Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/install.rst Install Weblate including all available optional features by using the '[all]' specifier. ```sh uv pip install "weblate[all]" ``` -------------------------------- ### Install Development Dependencies Source: https://github.com/weblateorg/weblate/blob/main/AGENTS.md Installs all development dependencies for the project. This should be the first step before running other development commands. ```bash uv sync --all-extras --dev ``` -------------------------------- ### Start Development Server Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/install/steps/install-configure.rst Starts the Weblate development server. This is suitable for testing and development purposes. ```sh weblate runserver ``` -------------------------------- ### Start Weblate Services and Follow Logs Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/backup.rst Starts the Weblate services in detached mode and then follows their logs. This is typically done after restoring data to ensure services start correctly and to monitor for database migrations or upgrade processes. ```shell docker compose up -d docker compose logs -f ``` -------------------------------- ### Install System Development Packages Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/install/venv-suse.rst Installs essential development libraries and tools required for building WebLate components on SUSE/openSUSE. ```sh zypper install \ libxslt-devel libxml2-devel freetype-devel libjpeg-devel zlib-devel \ libyaml-devel libffi-devel cairo-devel pango-devel librsvg-devel \ gobject-introspection-devel libacl-devel liblz4-devel libzstd-devel libxxhash-devel \ python3-devel git ``` -------------------------------- ### Example Windows RC File Source: https://github.com/weblateorg/weblate/blob/main/docs/formats/winrc.rst This is an example of a Windows RC file used for localization. ```c 1 // // translated from Windows // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 101 #define _APS_NEXT_COMMAND_VALUE 40001 #define _APS_NEXT_CONTROL_VALUE 1000 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif #ifdef APSTUDIO_READONLY_SYMBOLS // This is a placeholder for the actual resource definition. // This file is not intended to be compiled directly. #endif #ifndef APSTUDIO_INVOKED #endif //{ // Dialogs // IDD_ABOUT DIALOGEX 0, 0, 235, 100 STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "O aplikaci" FONT 8, "MS Sans Serif", 0, 0, 0x1 { DEFPUSHBUTTON "OK",IDOK,178,80,50,14 EDITTEXT IDC_EDIT1,7,7,221,70,ES_MULTILINE | ES_AUTOVSCROLL | WS_DISABLED } //{ // Menu // IDR_MAINMENU MENU BEGIN POPUP "&Soubor" BEGIN MENUITEM "&Nová", CM_NEW MENUITEM "&Otevřít", CM_OPEN MENUITEM "&Uložit", CM_SAVE MENUITEM SEPARATOR MENUITEM "Konec", CM_EXIT END POPUP "&Nápověda" BEGIN MENUITEM "&O aplikaci", CM_ABOUT END END //{ // String Table // STRINGTABLE BEGIN IDS_APPNAME "Moje aplikace" IDS_VERSION "Verze 1.0" END ``` -------------------------------- ### Example Fluent File (cs.ftl) Source: https://github.com/weblateorg/weblate/blob/main/docs/formats/fluent.rst An example of a Czech Fluent file demonstrating its syntax and structure for translations. ```fluent -: localization/cs.ftl hello_world = A Chinese "{ $name }"! # This is a comment ``` -------------------------------- ### Install Additional System Packages Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/install/venv-suse.rst Installs optional development packages for LDAP, SASL, and XML security. ```sh zypper install libldap2-devel libsasl2-devel ``` ```sh zypper install libxmlsec1-devel ``` -------------------------------- ### Install System Development Packages Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/install/venv-redhat.rst Installs essential development libraries and tools required for building Weblate on Red Hat-based systems. ```sh dnf install \ libxslt-devel libxml2-devel freetype-devel libjpeg-devel zlib-devel \ libyaml-devel libffi-devel cairo-devel cairo-gobject-devel pango-devel \ gobject-introspection-devel libacl-devel lz4-devel libzstd-devel xxhash-devel \ libtool-ltdl-devel python3-devel git ``` -------------------------------- ### Install System Development Packages Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/install/venv-debian.rst Installs essential development libraries required for compiling Weblate components on Debian/Ubuntu. ```sh apt install -y \ libxml2-dev libxslt-dev libfreetype6-dev libjpeg-dev libz-dev libyaml-dev \ libffi-dev libcairo-dev gir1.2-pango-1.0 gir1.2-rsvg-2.0 libgirepository-2.0-dev \ libacl1-dev liblz4-dev libzstd-dev libxxhash-dev libssl-dev libpq-dev libjpeg-dev build-essential \ python3-gdbm python3-dev git ``` -------------------------------- ### Weblate Client Commands Example Source: https://github.com/weblateorg/weblate/blob/main/docs/wlc.rst Examples of invoking Weblate Client commands on the default server. These commands interact with Weblate projects and translations. ```console wlc ls wlc commit sandbox/hello-world ``` -------------------------------- ### Install Weblate with Specific Optional Features Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/install.rst Use this command to install Weblate with a selection of optional features like Postgres and Amazon support. ```sh uv pip install "weblate[Postgres,Amazon,SAML]" ``` -------------------------------- ### Install Web Server and Backend Components Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/install/venv-suse.rst Installs NGINX or Apache for the web server, Valkey for caching, PostgreSQL for the database, and Postfix for SMTP. ```sh # Web server option 1: NGINX and uWSGI zypper install nginx uwsgi uwsgi-plugin-python3 ``` ```sh # Web server option 2: Apache with ``mod_wsgi`` zypper install apache2 apache2-mod_wsgi ``` ```sh # Caching backend: Valkey zypper install valkey-server ``` ```sh # Database server: PostgreSQL zypper install postgresql postgresql-contrib ``` ```sh # SMTP server zypper install postfix ``` ```sh # Gettext for the msgmerge add-on zypper install gettext ``` -------------------------------- ### Database and Static File Setup Commands Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/install/source.rst Run these commands to set up the database, collect static files, and compress them after updating the repository. ```sh weblate migrate weblate collectstatic weblate compress ``` -------------------------------- ### Start Weblate Development Server Source: https://github.com/weblateorg/weblate/blob/main/docs/contributing/start.rst Run the development server for Weblate using uv. ```sh uv run weblate runserver ``` -------------------------------- ### CLI Access Example using wlc Source: https://github.com/weblateorg/weblate/blob/main/weblate/templates/accounts/profile.html This example demonstrates how to use the Weblate Command Line client (wlc) to interact with the API. Provide your API key and the API root URL. ```bash wlc \ --key {{ user.auth_token.key }} \ --url {{ site_url }}{% url 'api:api-root' %} \ list-projects ``` -------------------------------- ### Install Weblate with WSGI support for Granian Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/install.rst Install Weblate including the 'wsgi' extra to get all dependencies needed for running with Granian. This command uses 'uv pip'. ```shell uv pip install Weblate[all,wsgi] ``` -------------------------------- ### Filename Manipulation Filters Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/projects.rst Provides examples of filters used to manipulate filenames, such as extracting the directory name, stripping the extension, or getting the parent directory. ```django Directory of a file: {{ filename|dirname }} ``` ```django File without extension: {{ filename|stripext }} ``` ```django File in parent dir: {{ filename|parentdir }} ``` ```django It can be used multiple times: {{ filename|parentdir|parentdir }} ``` -------------------------------- ### Configure and Show Project Details Source: https://github.com/weblateorg/weblate/blob/main/docs/wlc.rst Configure Weblate connection details in a '.weblate' file and then use 'show' to display project information. ```sh $ cat .weblate [weblate] url = https://hosted.weblate.org/api/ translation = weblate/application ``` ```sh $ wlc show branch: main file_format: po source_language: en filemask: weblate/locale/*/LC_MESSAGES/django.po git_export: https://hosted.weblate.org/git/weblate/application/ license: GPL-3.0+ license_url: https://spdx.org/licenses/GPL-3.0+ name: Application new_base: weblate/locale/django.pot project: weblate repo: git://github.com/WeblateOrg/weblate.git slug: application template: url: https://hosted.weblate.org/api/components/weblate/application/ vcs: git web_url: https://hosted.weblate.org/projects/weblate/application/ ``` -------------------------------- ### Initialize Redoc with Settings Source: https://github.com/weblateorg/weblate/blob/main/weblate/templates/drf_spectacular/redoc.html Initializes the Redoc documentation viewer with a schema URL and optional settings. Ensure the 'redoc-container' element exists in the HTML. ```javascript const redocSettings = {{ settings|safe }}; Redoc.init("{{ schema_url }}", redocSettings, document.getElementById('redoc-container')) ``` -------------------------------- ### Install Web Server and Caching Options with Homebrew Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/install/venv-macos.rst Installs optional web server (Nginx, Apache), caching backend (Valkey), and gettext for Weblate. ```sh # Web server option 1: NGINX and uWSGI brew install nginx uwsgi # Web server option 2: Apache with ``mod_wsgi`` brew install httpd # Caching backend: Valkey brew install valkey # Database server: PostgreSQL brew install postgresql # Gettext for the msgmerge add-on brew install gettext ``` -------------------------------- ### Get Project Machinery Settings Source: https://github.com/weblateorg/weblate/blob/main/docs/api.rst Retrieves automatic suggestion settings for a project, including configurations for all installed translation services. Available from Weblate version 5.9 onwards. ```APIDOC ## GET /api/projects/(string:project)/machinery_settings/ ### Description Returns automatic suggestion settings for a project, consisting of the configurations defined for each translation service installed. ### Method GET ### Endpoint /api/projects/(string:project)/machinery_settings/ ### Parameters #### Path Parameters - **project** (string) - Required - Project URL slug ### Response #### Success Response (200) - **suggestion_settings** (object) - Configuration for all installed services. ### Version Added 5.9 ``` -------------------------------- ### Set Up Test Database Connection Source: https://github.com/weblateorg/weblate/blob/main/AGENTS.md Sources a script to set up environment variables for connecting to the test database. This is part of the local test setup. ```bash scripts/test-database.sh ``` -------------------------------- ### Interactive Mode Notice for GPL Programs Source: https://github.com/weblateorg/weblate/blob/main/LICENSES/GPL-3.0-or-later.txt This is an example of a short notice to display when a GPL-licensed program starts in interactive mode. It informs users about warranty and redistribution conditions. ```text Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. ``` -------------------------------- ### Recreate PostgreSQL Volume in Docker Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/backup.rst Stop the database service, remove the existing PostgreSQL volume, and then start the database service again. Ensure the volume name is correct for your setup. ```shell docker compose stop database docker compose rm -v database docker volume remove weblate-docker_postgres-data ``` -------------------------------- ### Applying GPL to New Programs Source: https://github.com/weblateorg/weblate/blob/main/LICENSES/GPL-3.0-or-later.txt This snippet shows how to include the GPL license notice in your new software project. It's recommended to place this at the start of each source file. ```text Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ``` -------------------------------- ### Example of a Weblate Module Structure Source: https://github.com/weblateorg/weblate/blob/main/docs/contributing/modules.rst This snippet illustrates a typical file structure for a Weblate module, showing common directories like 'weblate', 'tests', and 'docs'. It's a general guide for understanding module organization. ```rst .. toctree:: :maxdepth: 2 weblate/index tests/index docs/index ``` -------------------------------- ### Weblate Client Configuration File Example Source: https://github.com/weblateorg/weblate/blob/main/docs/wlc.rst Example of a Weblate Client configuration file. This sets the default API URL and API key for the client. ```ini [weblate] url = https://hosted.weblate.org/api/ [keys] https://hosted.weblate.org/api/ = APIKEY ``` -------------------------------- ### Authentication Examples Source: https://github.com/weblateorg/weblate/blob/main/docs/api.rst Provides examples of how to authenticate API requests using a token, including both HTTP request and cURL examples. ```APIDOC ## Authentication Examples ### Example Request ```http GET /api/ HTTP/1.1 Host: example.com Accept: application/json, text/javascript Authorization: Token YOUR-TOKEN ``` ### Example Response ```http HTTP/1.0 200 OK Date: Fri, 25 Mar 2016 09:46:12 GMT Server: WSGIServer/0.1 Python/2.7.11+ Vary: Accept, Accept-Language, Cookie X-Frame-Options: SAMEORIGIN Content-Type: application/json Content-Language: en Allow: GET, HEAD, OPTIONS { "projects":"http://example.com/api/projects/", "components":"http://example.com/api/components/", "translations":"http://example.com/api/translations/", "languages":"http://example.com/api/languages/" } ``` ### cURL Example ```sh curl \ -H "Authorization: Token TOKEN" \ https://example.com/api/ ``` ``` -------------------------------- ### Perform API GET Request Source: https://github.com/weblateorg/weblate/blob/main/docs/python.rst Use the get method on a Weblate instance to perform an API GET call for a specific path. The result is returned as an object. ```python weblate_instance.get(path) ``` -------------------------------- ### Example Markdown File Source: https://github.com/weblateorg/weblate/blob/main/docs/formats/markdown.rst An example of a Markdown file structure used in Weblate. ```md # Example This is a sample Markdown file. - Item 1 - Item 2 ``` Code block example ``` **Bold text** and *italic text*. [Link](http://example.com) ``` -------------------------------- ### Install System Server Components Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/install/venv-redhat.rst Installs various server components including web servers (Nginx/Apache), caching backend (Valkey), database (PostgreSQL), and mail server (Postfix). ```sh # Web server option 1: NGINX and uWSGI dnf install nginx uwsgi uwsgi-plugin-python3 # Web server option 2: Apache with ``mod_wsgi`` dnf install httpd python3-mod_wsgi # Caching backend: Valkey dnf install valkey # Database server: PostgreSQL dnf install postgresql postgresql-contrib # SMTP server dnf install postfix # Gettext for the msgmerge add-on dnf install gettext ``` -------------------------------- ### Example Docker Usage of Weblate Client Source: https://github.com/weblateorg/weblate/blob/main/docs/wlc.rst Example of running the Weblate Client Docker container to list projects. Demonstrates passing arguments to the container. ```sh docker run --rm weblate/wlc --url https://hosted.weblate.org/api/ list-projects ``` -------------------------------- ### Start Docker Containers Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/install/docker.rst Command to start all defined Docker services in detached mode. ```shell docker compose up -d ``` -------------------------------- ### Start Celery Workers Source: https://github.com/weblateorg/weblate/blob/main/docs/contributing/start.rst Start Celery workers if your configuration requires them, using uv. ```sh uv run ./weblate/examples/celery start ``` -------------------------------- ### Example go-i18n TOML File Source: https://github.com/weblateorg/weblate/blob/main/docs/formats/toml.rst An example of a go-i18n TOML file, which includes support for plurals. ```toml [owner] name = "Tom" [database] server = "192.168.1.1" ports = [ 8001, 8001, 8002 ] connection_max = 5000 enabled = true [servers] "alpha" = { ip = "10.0.0.1", role = "frontend" } "beta" = { ip = "10.0.0.2", role = "backend" } [plural] zero = "" one = "" other = "" ``` -------------------------------- ### Install Weblate using YunoHost CLI Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/deployments.rst Use the YunoHost command-line interface to install the Weblate application. Ensure YunoHost is already set up. ```sh yunohost app install weblate ``` -------------------------------- ### Install Web Server, Database, and Other Services Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/install/venv-debian.rst Installs common server components for Weblate, including web servers (Nginx/Apache), caching (Valkey), database (PostgreSQL), and mail server (Exim4). ```sh # Web server option 1: NGINX and uWSGI apt install -y nginx uwsgi uwsgi-plugin-python3 # Web server option 2: Apache with ``mod_wsgi`` apt install -y apache2 libapache2-mod-wsgi-py3 # Caching backend: Valkey apt install -y valkey-server # Database server: PostgreSQL apt install -y postgresql postgresql-contrib # SMTP server apt install -y exim4 # Gettext for the msgmerge add-on apt install -y gettext ``` -------------------------------- ### Install Weblate with No Optional Features Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/install.rst Install the base Weblate package without any optional features. ```sh uv pip install weblate ``` -------------------------------- ### Example Add-on Script Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/addons.rst This Python script demonstrates how to create a custom add-on by subclassing BaseAddon and implementing a callback for processing. It shows how to access various environment variables related to the VCS and component. ```python from weblate.addons.base import BaseAddon class ExampleAddon(BaseAddon): """Example add-on.""" name = "Example add-on" description = "This is an example add-on." author = "Weblate" version = "1.0" def run(self, *args, **kwargs): print(f"Running example add-on with args: {args}") print(f"kwargs: {kwargs}") return True ``` -------------------------------- ### Example XLIFF 2.0 File Source: https://github.com/weblateorg/weblate/blob/main/docs/formats/xliff2.rst This snippet shows a basic example of an XLIFF 2.0 translation file. ```xml Hello world Ahoj světe Welcome Vítejte ``` -------------------------------- ### Example Nextcloud JSON File Source: https://github.com/weblateorg/weblate/blob/main/docs/formats/nextcloud-json.rst This snippet shows an example of a Nextcloud JSON file used for translations. ```json { "translations": { "de": { "nextcloud-app-name": { "_version": "1.0.0", "_description": "Example app for Nextcloud", "_remote_uri": "https://github.com/nextcloud/app-example", "app-name": "Beispiel-App", "settings-title": "Einstellungen", "settings-about": "Über", "settings-help": "Hilfe" } } } } ``` -------------------------------- ### AsciiDoc Component Configuration Example Source: https://github.com/weblateorg/weblate/blob/main/docs/formats/asciidoc.rst Illustrates typical Weblate component settings for AsciiDoc files, including file mask, base language file, and format parameters. ```text +--------------------------------+-------------------------------------+ | Typical Weblate :ref:`component` | +================================+=====================================+ | File mask | ``path/*.adoc`` | +--------------------------------+-------------------------------------+ | Monolingual base language file | ``path/en.adoc`` | +--------------------------------+-------------------------------------+ | Template for new translations | ``path/en.adoc`` | +--------------------------------+-------------------------------------+ | File format | `AsciiDoc file` | +--------------------------------+-------------------------------------+| File format parameters | ``merge_duplicates=True`` | +--------------------------------+-------------------------------------+ ``` -------------------------------- ### Translator Credits Example Source: https://github.com/weblateorg/weblate/blob/main/docs/devel/reporting.rst An example of how translator credits are formatted, listing contributors by language with their contribution count. ```rst * Czech * John Doe (5) * Jane Doe (1) * Dutch * Jane Doe (42) ``` -------------------------------- ### Example HTML File Source: https://github.com/weblateorg/weblate/blob/main/docs/formats/html.rst A sample HTML file demonstrating the structure and content that Weblate can process for translation. ```html Test document

A simple test document

This is a paragraph with some text.

Another paragraph with the same text.

``` -------------------------------- ### Install Gunicorn Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/install.rst Install Gunicorn using 'uv pip'. This command is a prerequisite for running Weblate with Gunicorn. ```shell uv pip install gunicorn ``` -------------------------------- ### Configure VCS Backends Source: https://github.com/weblateorg/weblate/blob/main/docs/admin/config.rst Specify the available Version Control System (VCS) backends for Weblate. This example configures only the Git backend. ```python VCS_BACKENDS = ("weblate.vcs.git.GitRepository",) ``` -------------------------------- ### Weblate API Keys Configuration Example Source: https://github.com/weblateorg/weblate/blob/main/docs/wlc.rst Example of configuring API keys within the [keys] section of a Weblate configuration file. This allows storing keys specific to different API URLs. ```ini [keys] https://hosted.weblate.org/api/ = APIKEY ```