Difference between revisions of "Service/Weblate"
Line 85: | Line 85: | ||
* Select Project, we currently have {{Code|core-sugar}} and {{Code|Sugar-Activities}}, core-sugar contains sugar core APIs. | * Select Project, we currently have {{Code|core-sugar}} and {{Code|Sugar-Activities}}, core-sugar contains sugar core APIs. | ||
* Set version control system to GitHub pull request. | * Set version control system to GitHub pull request. | ||
− | * Set source code repository link. | + | * Set source code repository link - using https -. |
* Set repository branch. | * Set repository branch. | ||
* Set File format gettext PO file, File mask po/*.po | * Set File format gettext PO file, File mask po/*.po |
Revision as of 07:01, 8 December 2023
Hostnames
Hosted on
Administrative contact
- admin AT weblate DOT sugarlabs DOT org
Sysadmins
For non-emergency calls, preferably send email to the administrative contact.
- Chihurumnaya Ibiam has assumed maintainership tasks.
- Bernie Innocenti has system admin privs, but takes care only of OS-level administration.
- Alex Perez
Notes
User | weblate
|
---|---|
Home | /home/weblate/weblate-docker
|
Daemon |
|
Logs |
|
Config |
|
Ports |
|
Volumes |
|
Upgrade Notes
Weblate has upgrade notes on upgrading the docker container.
Maintenance Notes
Weblate is maintained. (ibiam has step-up to be maint)
Files
Important files and directories in the root directory, /home/weblate/weblate-docker
.
docker-compose.yml
Contains definitions for all the services and volumes used by weblate, which includes weblate, database and cache with volumes weblate-cache, weblate-data, postgres-data, redis-data.
.
environment
Contains environment variables used by container.
Tips
Create new Weblate translation component
- Create new translation component in Weblate admin menu, Add new translation component;
- Select Project, we currently have
core-sugar
andSugar-Activities
, core-sugar contains sugar core APIs. - Set version control system to GitHub pull request.
- Set source code repository link - using https -.
- Set repository branch.
- Set File format gettext PO file, File mask po/*.po
- Set Repository push URL to enable autoupdate of changes to Github from weblate.
- Set Push branch to weblate-sync which would be used to create a PR.
- On Github, add hook
https://weblate.sugarlabs.org/hooks/github/
to activity repo as it's used for automated flow of updates to weblate. - Check license in activity repo matches Translation license selected by weblate or set to the right license.
- Add all needed langs; when adding from Github, weblate automatically adds all the PO files and you'll only need to do this if the only PO file the activity has is the template PO file.
If you don't see the uploaded po files after uploading an activity, click the Activity then Manage->Repository maintenance->Rescan,
this will rescan the repo and add all the po files.
Synchronization
Weblate automatically pushes changes to Github when there's a change on weblate because of the Github pull request version control above and the Github configuration can be found in the environment file, the hooks configured in the repos make it easy for weblate to pull changes from Github.
References
https://docs.weblate.org/en/latest/admin/install/docker.html#upgrading-the-docker-container