Installing from sources

  1. Please follow the installation instructions for your system first up to installing Weblate:

  2. 使用 Git 來抓取最新的 Weblate 資源 (或下載 tarball 包並將其解壓):

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

    另外,您可以發布檔案。從可以從我們的網站 <https://weblate.org/> 來下載。下載是加密簽名的,參見 Verifying release signatures

  3. 將當前的 Weblate 代碼安裝到 virtualenv 中:

    . ~/weblate-env/bin/activate
    pip install -e weblate-src
    
  4. weblate/settings_example.py 複製為 weblate/settings.py

  5. 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 調整配置.

  6. 新建 Weblate 使用的數據庫,參見 Weblate 的數據庫設置

  7. 建立 Django 表、靜態文件和初始數據(參見 填滿數據庫填滿數據庫 ):

    weblate migrate
    weblate collectstatic
    weblate compress
    

    備註

    無論任何時候更新倉庫時,都應該重複這一步驟。