# Memasang dari sumber

1. Silakan ikuti petunjuk pemasangan untuk sistem Anda terlebih dahulu hingga pemasangan Weblate:
   * [Memasang di Debian dan Ubuntu](https://docs.weblate.org/id/latest/admin/install/venv-debian.md)
   * [Memasang di SUSE dan openSUSE](https://docs.weblate.org/id/latest/admin/install/venv-suse.md)
   * [Memasang di RedHat, Fedora dan CentOS](https://docs.weblate.org/id/latest/admin/install/venv-redhat.md)
2. Ambil sumber Weblate terbaru menggunakan Git (atau unduh tarball dan ekstrak):
   ```sh
   git clone https://github.com/WeblateOrg/weblate.git weblate-src
   ```

   Alternatifnya, Anda dapat menggunakan arsip yang telah dirilis. Anda dapat mengunduhnya dari situs web kami <[https://weblate.org/](https://weblate.org/)>. Unduhan tersebut ditandatangani secara kriptografis, silakan lihat [Verifying release artifacts](https://docs.weblate.org/id/latest/security/release-artifacts.md#verify).
3. Pasang kode Weblate saat ini ke dalam lingkungan Python:
   ```sh
   . ~/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 [Pengujian lokal Weblate](https://docs.weblate.org/id/latest/contributing/tests.md#local-tests).
4. Salin `weblate/settings_example.py` ke `weblate/settings.py`.
5. Sesuaikan nilai dalam berkas `settings.py` yang baru sesuai keinginan Anda. Anda perlu memberikan setidaknya kredensial basis data dan kunci rahasia Django, tetapi Anda akan memerlukan lebih banyak perubahan untuk pengaturan produksi, lihat [Menyesuaikan konfigurasi](https://docs.weblate.org/id/latest/admin/install.md#configuration).
6. Buat basis data yang digunakan oleh Weblate, lihat [Pengaturan basis data untuk Weblate](https://docs.weblate.org/id/latest/admin/install.md#database-setup).
7. Bangun tabel Django, berkas statis dan data awal (lihat [Mengisi basis data](https://docs.weblate.org/id/latest/admin/install.md#tables-setup) dan [Menyajikan berkas statis](https://docs.weblate.org/id/latest/admin/install.md#static-files)):
   ```sh
   weblate migrate
   weblate collectstatic
   ```

   #### NOTE
   Langkah ini harus diulang jika Anda memperbarui repositori.

<a id="distribution-packaging"></a>

## 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:

* [weblate-fonts](https://pypi.org/project/weblate-fonts/)
* [weblate_schemas](https://pypi.org/project/weblate_schemas/)
* [weblate-language-data](https://pypi.org/project/weblate-language-data/)
* [translation-finder](https://pypi.org/project/translation-finder/)
* [translate-toolkit](https://pypi.org/project/translate-toolkit/)

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

#### SEE ALSO
See [Pengujian lokal Weblate](https://docs.weblate.org/id/latest/contributing/tests.md#local-tests) for test setup and [Siklus rilis](https://docs.weblate.org/id/latest/security/releases.md#release-cycle) for Weblate's
release cadence.
