從原始碼中安裝¶
Please follow the installation instructions for your system first up to installing Weblate:
使用 Git 來抓取最新的 Weblate 資源 (或下載 tarball 包並將其解壓):
git clone https://github.com/WeblateOrg/weblate.git weblate-src
另外,您可以發佈檔案。從可以從我們的網站 <https://weblate.org/> 來下載。下載是加密簽名的,參閱 驗證發行簽名。
安裝目前的 Weblate 程式碼到 Python 環境:
. ~/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 Weblate 本地測試.
將
weblate/settings_example.py複製為weblate/settings.py。Adjust the values in the new
settings.pyfile 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 調整配置.新增 Weblate 使用的資料庫,參閱 Weblate 的資料庫設定。
建立 Django 表、靜態文件和初始資料(參閱 填滿資料庫 和 靜態檔案服務 ):
weblate migrate weblate collectstatic weblate compress
備註
無論任何時候更新儲存庫時,都應該重複這一步驟。