Setup weblate for the NextCloud app

Bonjour,

NextCloud is using transifex for localization and it looks like most apps do the same. Although there is no direct support for Weblate, the transifex scripts can also be used for Weblate.

A i18n directory is added and contains:

A SSH key is created for weblate

ssh

The GitLab host is added to the list of hosts known by weblate

host

A new GitLab user named weblate is created and the SSH public key added to the settings:

ssh

The GitLab weblate user is granted maintainer rights to the repository so that it can own the translationfiles and push updated .po files in the master branch whenever a new translation is available.

permissions

A new Weblate component is created for the app, with the following configuration:

Add a new translation

trans

Verify a directory by the language name is pushed by weblate into the master branch of the repository.

Create a push webhook in the GitLab project and set it to https://weblate.enough.community/hooks/gitlab/ so weblate is notified when new commits are pushed in the repository.

hook

Activate the Update PO files to match POT addon to Weblate.

addon

1 Like