You can retrieve various data from Weblate in machine readable format.
RSS feeds
To follow translation progress you can use RSS feeds, detailing all important translation changes.
Project | URL | Link |
---|---|---|
Open Preprint Systems | http://translate.pkp.sfu.ca/exports/rss/ops/ | RSS |
Open Preprint Systems/admin | http://translate.pkp.sfu.ca/exports/rss/ops/admin/ | RSS |
Open Preprint Systems/api | http://translate.pkp.sfu.ca/exports/rss/ops/api/ | RSS |
Open Preprint Systems/author | http://translate.pkp.sfu.ca/exports/rss/ops/author/ | RSS |
Open Preprint Systems/blocks-developedBy | http://translate.pkp.sfu.ca/exports/rss/ops/blocks-developedby/ | RSS |
Open Preprint Systems/blocks-languageToggle | http://translate.pkp.sfu.ca/exports/rss/ops/blocks-languagetoggle/ | RSS |
Open Preprint Systems/default | http://translate.pkp.sfu.ca/exports/rss/ops/default/ | RSS |
Open Preprint Systems/editor | http://translate.pkp.sfu.ca/exports/rss/ops/editor/ | RSS |
Open Preprint Systems/emails | http://translate.pkp.sfu.ca/exports/rss/ops/emails/ | RSS |
Open Preprint Systems/generic-usageEvent | http://translate.pkp.sfu.ca/exports/rss/ops/generic-usageevent/ | RSS |
Open Preprint Systems/locale | http://translate.pkp.sfu.ca/exports/rss/ops/locale/ | RSS |
Open Preprint Systems/manager | http://translate.pkp.sfu.ca/exports/rss/ops/manager/ | RSS |
Open Preprint Systems/pubIds-doi | http://translate.pkp.sfu.ca/exports/rss/ops/pubids-doi/ | RSS |
Open Preprint Systems/submissions | http://translate.pkp.sfu.ca/exports/rss/ops/submissions/ | RSS |
Open Preprint Systems/themes-default | http://translate.pkp.sfu.ca/exports/rss/ops/themes-default/ | RSS |
Per language RSS feeds are also available, you can construct them by appending a language code to the above URLs.
Statistics
Translation statistics for every component in the JSON format allows you to use the data in other websites or tools.
Project | URL | Link |
---|---|---|
Open Preprint Systems/admin | http://translate.pkp.sfu.ca/api/components/ops/admin/statistics/ | View |
Open Preprint Systems/api | http://translate.pkp.sfu.ca/api/components/ops/api/statistics/ | View |
Open Preprint Systems/author | http://translate.pkp.sfu.ca/api/components/ops/author/statistics/ | View |
Open Preprint Systems/blocks-developedBy | http://translate.pkp.sfu.ca/api/components/ops/blocks-developedby/statistics/ | View |
Open Preprint Systems/blocks-languageToggle | http://translate.pkp.sfu.ca/api/components/ops/blocks-languagetoggle/statistics/ | View |
Open Preprint Systems/default | http://translate.pkp.sfu.ca/api/components/ops/default/statistics/ | View |
Open Preprint Systems/editor | http://translate.pkp.sfu.ca/api/components/ops/editor/statistics/ | View |
Open Preprint Systems/emails | http://translate.pkp.sfu.ca/api/components/ops/emails/statistics/ | View |
Open Preprint Systems/generic-usageEvent | http://translate.pkp.sfu.ca/api/components/ops/generic-usageevent/statistics/ | View |
Open Preprint Systems/locale | http://translate.pkp.sfu.ca/api/components/ops/locale/statistics/ | View |
Open Preprint Systems/manager | http://translate.pkp.sfu.ca/api/components/ops/manager/statistics/ | View |
Open Preprint Systems/pubIds-doi | http://translate.pkp.sfu.ca/api/components/ops/pubids-doi/statistics/ | View |
Open Preprint Systems/submissions | http://translate.pkp.sfu.ca/api/components/ops/submissions/statistics/ | View |
Open Preprint Systems/themes-default | http://translate.pkp.sfu.ca/api/components/ops/themes-default/statistics/ | View |
As an example, fetching stats for all translations in one component can be done thusly:
curl \ -H "Authorization: Token LcNRUpLS9Rs8FNhj0ikh0lTk3phJNm1waqnS2irA" \ http://translate.pkp.sfu.ca/api/components/ops/admin/translations/
Project | URL | Link |
---|---|---|
Open Preprint Systems | http://translate.pkp.sfu.ca/api/projects/ops/repository/ | Hook |
Open Preprint Systems/admin | http://translate.pkp.sfu.ca/api/components/ops/admin/repository/ | Hook |
Open Preprint Systems/api | http://translate.pkp.sfu.ca/api/components/ops/api/repository/ | Hook |
Open Preprint Systems/author | http://translate.pkp.sfu.ca/api/components/ops/author/repository/ | Hook |
Open Preprint Systems/blocks-developedBy | http://translate.pkp.sfu.ca/api/components/ops/blocks-developedby/repository/ | Hook |
Open Preprint Systems/blocks-languageToggle | http://translate.pkp.sfu.ca/api/components/ops/blocks-languagetoggle/repository/ | Hook |
Open Preprint Systems/default | http://translate.pkp.sfu.ca/api/components/ops/default/repository/ | Hook |
Open Preprint Systems/editor | http://translate.pkp.sfu.ca/api/components/ops/editor/repository/ | Hook |
Open Preprint Systems/emails | http://translate.pkp.sfu.ca/api/components/ops/emails/repository/ | Hook |
Open Preprint Systems/generic-usageEvent | http://translate.pkp.sfu.ca/api/components/ops/generic-usageevent/repository/ | Hook |
Open Preprint Systems/locale | http://translate.pkp.sfu.ca/api/components/ops/locale/repository/ | Hook |
Open Preprint Systems/manager | http://translate.pkp.sfu.ca/api/components/ops/manager/repository/ | Hook |
Open Preprint Systems/pubIds-doi | http://translate.pkp.sfu.ca/api/components/ops/pubids-doi/repository/ | Hook |
Open Preprint Systems/submissions | http://translate.pkp.sfu.ca/api/components/ops/submissions/repository/ | Hook |
Open Preprint Systems/themes-default | http://translate.pkp.sfu.ca/api/components/ops/themes-default/repository/ | Hook |
As an example, telling Weblate to pull from a remote repository can be done thusly:
curl \ -d operation=pull \ -H "Authorization: Token LcNRUpLS9Rs8FNhj0ikh0lTk3phJNm1waqnS2irA" \ http://translate.pkp.sfu.ca/api/projects/ops/repository/
Weblate also supports direct notifications from several code hosting sites:
Hosting site | URL | Note |
---|---|---|
GitHub | http://translate.pkp.sfu.ca/hooks/github/ | Browse the documentation for detailed instructions |
GitLab | http://translate.pkp.sfu.ca/hooks/gitlab/ | Browse the documentation for detailed instructions |
Bitbucket | http://translate.pkp.sfu.ca/hooks/bitbucket/ | Browse the documentation for detailed instructions |
Pagure | http://translate.pkp.sfu.ca/hooks/pagure/ | Browse the documentation for detailed instructions |
Azure Repos | http://translate.pkp.sfu.ca/hooks/azure/ | Browse the documentation for detailed instructions |
Gitea | http://translate.pkp.sfu.ca/hooks/gitea/ | Browse the documentation for detailed instructions |