Skip to content
Weblate translation platform for YunoHost
Branch: master
Clone or download
Jibec upgrade to 3.7
upgrade to 3.7
Latest commit 31b8295 Jun 25, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf upgrade to 3.7 Jun 24, 2019
hooks Add 3.1.1 upgrade with two steps upgrade Oct 15, 2018
scripts upgrade to 3.7 Jun 24, 2019
.gitignore Initial commit Sep 13, 2017
LICENSE switch from GPL3 to AGPL3 Sep 13, 2017
README.md migrate to python3, add celery and redis Oct 19, 2018
check_process upgrade to 3.7 Jun 24, 2019
manifest.json upgrade to 3.7 Jun 24, 2019

README.md

Install Weblate with YunoHost

Weblate translation platform for YunoHost

The YunoHost team uses Weblate for translations: https://translate.yunohost.org

Admin account

An admin user is created at installation, the login is what you provided at installation, the password is weblate.

Weblate 3.0 upgrade

This upgrade is a major one, remember to read this page before upgrading: https://docs.weblate.org/en/latest/admin/upgrade.html#upgrade-3

After upgrading:

  • All existing users and groups have been migrated to new model.
  • Any per user permissions are removed, please assign users to appropriate groups and roles to grant them permissions.
  • Any custom groups will not have any permissions after upgrade, please grant the permissions again.

Github

You'll need to give weblate a github user and a token. Please read github's documentation about token. This user will only be used to open the pull-request, each translation keep his author.

Careful, I still have to understand why, but you'll have to manually move your hub binary frile from /var/www/$app/bin/ to /usr/bin to enable pull request on github. I'm close to fix this.

SSH keys, you'll have to go in administration, and generate a public key for weblate and add github.com so weblate knows the fingerprint. Please note if your account already have a public key (ssh-rsa), you'll have to manually add the weblate's one to your github account.

Settings and upgrades

Almost everything related to Weblate's configuration is handled in a settings.py file. You'll probably edit it to enable or disable diverse features, it is stored in $final_path/venv/lib/python2.7/site-packages/weblate/settings.py.

Unfortunatly, this settings file also gets upgrades for each release.

This package will :

  • generate a default settings file for your current installation,
  • send you a diff with your actual settings (the content will be sent to root, and only basic information for weblate's admin),
  • generate a default settings file the new weblate's version, that will replace your actual settings.py.

You'll have to manually add your previous changes to this new settings.py.

Miscellaneous

Weblate and databases

Weblate recommands PostgreSQL, but YunoHost uses Mysql.

Carefull, this application install PostgreSQL and change the default configuration to ask for every connexion and every user a password (local all all password).

LDAP connexion

It doesn't work yet, but while it looks doable, I'm unsure it is a good idea to connect this kind of tools to your LDAP.

State of this package

  • works fine: [x] install/remove/backup/remove/upgrade with x86_64

  • to be confirmed: [ ] ARM support

  • to be added: [ ] use jq instead of grep/sed [ ] change URL script [ ] use debian package for lxml (may unlock ARM support) [ ] Add configuration options using the YunoHost interface (https://forum.yunohost.org/t/yunohost-3-1-minor-stable-release-version-stable-mineure/5445) [ ] Add fail2ban script [ ] Enable CHECK_LIST? [ ] Enable AUTOFIX_LIST? [ ] Enable Translation Memory?

Links

You can’t perform that action at this time.