Instalarea din surse

  1. Vă rugăm să urmați mai întâi instrucțiunile de instalare pentru sistemul dumneavoastră înainte de a instala Weblate:

  2. Obțineți cele mai recente surse Weblate folosind Git (sau descărcați un tarball și despachetați-l):

    git clone https://github.com/WeblateOrg/weblate.git weblate-src
    

    Alternativ, puteți utiliza arhivele eliberate. Le puteți descărca de pe site-ul nostru <https://weblate.org/>. Aceste descărcări sunt semnate criptografic, vă rugăm să consultați Verificarea semnăturilor de eliberare.

  3. Install current Weblate code into the Python environment:

    . ~/weblate-env/bin/activate
    uv pip install -e 'weblate-src[all]'
    

    If you intend to run the testsuite from the source checkout, install the development dependencies as described in Local testing of Weblate.

  4. Copiați weblate/settings_example.py în weblate/settings.py.

  5. Ajustați valorile din noul fișier settings.py după bunul plac. Va trebui să furnizați cel puțin credențialele bazei de date și cheia secretă Django, dar veți dori mai multe modificări pentru configurarea de producție, consultați Ajustarea configurației.

  6. Creați baza de date utilizată de Weblate, consultați Configurarea bazei de date pentru Weblate.

  7. Construirea tabelelor Django, a fișierelor statice și a datelor inițiale (a se vedea Completarea bazei de date și Servirea fișierelor statice):

    weblate migrate
    weblate collectstatic
    weblate compress
    

    Notă

    Acest pas trebuie repetat de fiecare dată când actualizați depozitul.

Packaging Weblate for distributions

The dependency versions in pyproject.toml describe the runtime environment tested by the Weblate project. They are intentionally strict for installs from PyPI and for the Weblate release process, because Weblate cannot validate every dependency-version combination covered by wider version ranges.

Distribution packages can replace those Python packages with versions from the distribution package set. When doing so, run Weblate’s test suite against the packaged dependency set and treat passing tests as the compatibility signal for the distribution package.

Keep Weblate’s tightly coupled companion packages in sync with the Weblate release:

Mismatched versions of these packages are more likely to break at runtime or during tests than other Python dependency substitutions.

Vezi și

See Local testing of Weblate for test setup and Release cycle for Weblate’s release cadence.