Installation sur macOS

Exigences matérielles

Weblate devrait fonctionner sur n’importe quel matériel moderne sans problème, ce qui suit est la configuration minimale requise pour faire fonctionner Weblate sur un seul hôte (Weblate, base de données et serveur Web) :

  • 3 Go de RAM

  • processeur à deux coeurs

  • 1 Go d’espace de stockage

Note

Les exigences réelles pour votre installation de Weblate varient fortement en fonction de la taille des traductions qui y seront gérées.

Utilisation de la mémoire

The more memory the better - it is used for caching on all levels (file system, database and Weblate). For hundreds of translation components, at least 4 GB of RAM is recommended.

Indication

For systems with less memory than recommended, Single-process Celery setup is recommended.

Utilisation du processeur

Beaucoup d’utilisateurs concurrents augmentent le nombre nécessaire de coeurs du processeur.

Weblate 2026.8 introduced NumPy as a required dependency. On x86-64 systems, the optimized NumPy build bundled in the Docker image requires an x86-64-v2 compatible CPU. Without the required CPU features, NumPy fails to load and Weblate cannot start.

Before upgrading, check for the required SSE4.2 CPU feature on the Linux system running Docker:

grep sse4_2 /proc/cpuinfo

Empty output indicates that a required CPU feature is unavailable. This is a preliminary check; finding SSE4.2 does not verify all x86-64-v2 CPU features.

If Docker runs in a virtual machine, run the check inside the guest. Virtual machines can hide CPU features supported by the host. Configure the virtual machine to expose the required host CPU features, then reboot the guest. If the physical CPU lacks the required features, upgrade the hardware.

Utilisation du stockage

The typical database storage usage is around 300 MB per 1 million hosted words.

Storage space needed for cloned repositories varies, but Weblate tries to keep their size minimal by doing shallow clones.

Storage performance

Version control operations perform many filesystem metadata lookups. The vcs subdirectory in DATA_DIR therefore needs low read latency; storage with slow metadata access can make operations such as git status take a long time even when its bulk throughput is good. Keep CACHE_DIR on low-latency local or temporary storage when possible.

The deployment checks measure metadata lookup latency for both locations and warn when the median latency exceeds 10 milliseconds. This is an approximate point-in-time measurement affected by filesystem and system load. Rerun weblate check --deploy before changing the storage configuration.

Noeuds

For small and medium-sized sites (millions of hosted words), all Weblate components (see Architecture overview) can be run on a single node.

When you grow to hundreds of millions of hosted words, it is recommended to have a dedicated node for database (see Configuration de la base de données pour Weblate).

Installation

Exigences du système

Installez les dépendances nécessaires à la construction des modules Python (voir Exigences logicielles) :

brew install python libyaml pkgconf zstd lz4 xxhash libxmlsec1 uv

Installez éventuellement les logiciels nécessaires au serveur de production, voir Exécuter un serveur, Configuration de la base de données pour Weblate, Tâches en arrière-plan utilisant Celery. Selon la taille de votre installation, il peut être judicieux d’exécuter ces composants sur des serveurs dédiés.

Les instructions d’installation locale :

# 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 tools for gettext POT/PO update add-ons
brew install gettext

Modules Python

Indication

We’re installing Weblate in a separate Python environment.

  1. Create the Python environment for Weblate:

    uv venv ~/weblate-env
    
  2. Activate the Python environment for Weblate:

    . ~/weblate-env/bin/activate
    
  3. Install Weblate including all optional dependencies:

    # Install Weblate with all optional dependencies
    uv pip install "weblate[all]"
    

    Please check Dépendances python for fine-tuning of optional dependencies.

Configurer Weblate

Note

The following assumes the Python environment used by Weblate is activated (by executing . ~/weblate-env/bin/activate). If not, specify the full path to the weblate command as ~/weblate-env/bin/weblate.

  1. Copy the file ~/weblate-env/lib/python3.9/site-packages/weblate/settings_example.py to ~/weblate-env/lib/python3.9/site-packages/weblate/settings.py.

  2. Adjust the values in the new settings.py file to your liking. You will need to provide at least the database credentials and Django secret key, but you will want more changes for production setup, see Ajuster la configuration.

  3. Create the database and its structure for Weblate (the example settings use PostgreSQL, check Configuration de la base de données pour Weblate for a production-ready setup):

    weblate migrate
    

    Voir aussi

    migrate

  4. Create an administrator user account admin, generate its password, and copy it to the clipboard; remember to save it for later use:

    weblate createadmin
    

    Indication

    If you previously missed/lost the admin password, you can generate a new one with the following command:

    weblate createadmin --update
    

    Voir aussi

    createadmin

  5. Collect the static files for your web server (see Exécuter un serveur and Distribution des fichiers statiques):

    weblate collectstatic
    
  6. Start the Celery workers. This is not necessary for development purposes, but strongly recommended otherwise. Tâches en arrière-plan utilisant Celery has more info:

    celery --app=weblate.utils worker --beat \
        --queues=celery,notify,memory,translate,backup \
        --prefetch-multiplier=1
    
  7. Start the development server (Exécuter un serveur details a production setup):

    weblate runserver
    

Après installation

Félicitations, votre serveur Weblate est maintenant opérationnel et vous pouvez commencer à l’utiliser.

  • Vous pouvez maintenant accéder à Weblate sur http://localhost:8000/.

  • Sign in with admin credentials obtained during installation or register with new users.

  • You can now run Weblate commands using weblate command when Weblate Python environment is active, see Commandes de gestion.

  • You can stop the test server with Ctrl+C.

  • Review potential issues with your installation either on /manage/performance/ URL (see Rapport de performance) or using weblate check --deploy, see Configuration de production.

Ajouter une traduction

  1. Ouvrez l’interface d’administration (http://localhost:8000/create/project/) et créez le projet que vous souhaitez traduire. Voir Configuration du projet pour plus de détails.

    Tout ce que vous devez préciser ici est le nom du projet et son site Web.

  2. Créez un composant qui est l’objet réel de la traduction - il pointe vers le dépôt du système de contrôle de version, et sélectionne les fichiers à traduire. Voir Configuration des composants pour plus de détails.

    The important fields here are: Nom du composant, Dépôt du code source, and Masque de fichier for finding translatable files. Weblate supports a wide range of formats including GNU gettext PO (Portable Object), Ressources de chaînes Android, Chaînes Apple iOS, Propriétés Java, Format Stringsdict or Format Fluent, see Localization file formats for more details.

  3. Une fois ce qui précède terminé (cela peut être un processus long selon la taille de votre dépôt du système de contrôle de version, et le nombre de messages à traduire), vous pouvez commencer à traduire.