從來源碼中安裝#

  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/> 來下載。下載是加密簽名的,參見 驗證發行簽名

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

    . ~/weblate-env/bin/activate
    pip install -e 'weblate-src[all]'
    # In case you intentd to run testsuite, install test deps as well:
    pip install -e 'weblate-src[all,test]'
    
  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
    

    備註

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