Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/units/?format=api
https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "How to Opt in to Gating?" ], "previous_source": "", "target": [ "" ], "id_hash": -6131768836757474147, "content_hash": -6131768836757474147, "location": "pages/optin.adoc:2", "context": "", "note": "type: Title =", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 1, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate.fedoraproject.org/api/units/1022885/?format=api", "priority": 100, "id": 1022886, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=2ae794bb0042b49d", "url": "https://translate.fedoraproject.org/api/units/1022886/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-25T12:14:02.200932Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "There are two steps to do in order to opt in to Rawhide Gating:" ], "previous_source": "", "target": [ "" ], "id_hash": 3510758645333678258, "content_hash": 3510758645333678258, "location": "pages/optin.adoc:5", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate.fedoraproject.org/api/units/1022887/?format=api", "priority": 100, "id": 1022888, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=b0b8b8631b3ed8b2", "url": "https://translate.fedoraproject.org/api/units/1022888/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-25T12:14:02.243590Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "Add tests to your package." ], "previous_source": "", "target": [ "" ], "id_hash": 6742803550626825833, "content_hash": 6742803550626825833, "location": "pages/optin.adoc:7", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 3, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate.fedoraproject.org/api/units/1022889/?format=api", "priority": 100, "id": 1022890, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=dd93401ab95ac669", "url": "https://translate.fedoraproject.org/api/units/1022890/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-25T12:14:02.280349Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "Configure gating, so that your package is gated on those tests." ], "previous_source": "", "target": [ "" ], "id_hash": 8809140721503119991, "content_hash": 8809140721503119991, "location": "pages/optin.adoc:8", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 4, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 11, "source_unit": "https://translate.fedoraproject.org/api/units/1022891/?format=api", "priority": 100, "id": 1022892, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=fa405ad0399f2a77", "url": "https://translate.fedoraproject.org/api/units/1022892/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-25T12:14:02.314790Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "Add Tests to Your Package" ], "previous_source": "", "target": [ "" ], "id_hash": 7340842949565454472, "content_hash": 7340842949565454472, "location": "pages/optin.adoc:9", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 5, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate.fedoraproject.org/api/units/1022893/?format=api", "priority": 100, "id": 1022894, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=e5dfe9c4e8c79888", "url": "https://translate.fedoraproject.org/api/units/1022894/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-25T12:14:02.341480Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "You can add tests by following the xref:ci::tests.adoc#_writing[documentation on how to write tests]." ], "previous_source": "", "target": [ "" ], "id_hash": 995870440997366298, "content_hash": 995870440997366298, "location": "pages/optin.adoc:13", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 6, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 13, "source_unit": "https://translate.fedoraproject.org/api/units/1022895/?format=api", "priority": 100, "id": 1022896, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=8dd20ae3c5f5aa1a", "url": "https://translate.fedoraproject.org/api/units/1022896/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-25T12:14:02.373081Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "The gist of it is: Add a `tests/` folder in the git repository of your package and place a file called `tests.yml` in it. This file should be an link:http://docs.ansible.com/ansible/latest/playbooks.html[Ansible playbook] with all the steps required to test your package." ], "previous_source": "", "target": [ "" ], "id_hash": -7373433749882839393, "content_hash": -7373433749882839393, "location": "pages/optin.adoc:18", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 7, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 40, "source_unit": "https://translate.fedoraproject.org/api/units/1022897/?format=api", "priority": 100, "id": 1022898, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=19ac4d12135b5e9f", "url": "https://translate.fedoraproject.org/api/units/1022898/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-25T12:14:02.422835Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "You need to “tag” the playbook with any or all of the following tags so the tests can be called in the different environments: `classic`, `container`, `atomic`." ], "previous_source": "", "target": [ "" ], "id_hash": 6436260048731863291, "content_hash": 6436260048731863291, "location": "pages/optin.adoc:24", "context": "", "note": "type: delimited block =", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 8, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 27, "source_unit": "https://translate.fedoraproject.org/api/units/1022899/?format=api", "priority": 100, "id": 1022900, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=d9523069deb378fb", "url": "https://translate.fedoraproject.org/api/units/1022900/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-25T12:14:02.455947Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "Once you have added a `tests/tests.yml` file, for every update that is subsequently created for that package, the tests will be run and will be shown in the update page under the test results tab." ], "previous_source": "", "target": [ "" ], "id_hash": -8511503142685895229, "content_hash": -8511503142685895229, "location": "pages/optin.adoc:29", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 9, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 35, "source_unit": "https://translate.fedoraproject.org/api/units/1022901/?format=api", "priority": 100, "id": 1022902, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=09e110fcd39615c3", "url": "https://translate.fedoraproject.org/api/units/1022902/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-25T12:14:02.493067Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "For these tests to have an effect, you need to configure the system to gate on them." ], "previous_source": "", "target": [ "" ], "id_hash": 8758611720183606751, "content_hash": 8758611720183606751, "location": "pages/optin.adoc:32", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 10, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 17, "source_unit": "https://translate.fedoraproject.org/api/units/1022903/?format=api", "priority": 100, "id": 1022904, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=f98cd6f4531deddf", "url": "https://translate.fedoraproject.org/api/units/1022904/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-25T12:14:02.534999Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "Configure Gating" ], "previous_source": "", "target": [ "" ], "id_hash": 2045760031658650357, "content_hash": 2045760031658650357, "location": "pages/optin.adoc:33", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 11, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate.fedoraproject.org/api/units/1022905/?format=api", "priority": 100, "id": 1022906, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=9c63ffe8eeb4aaf5", "url": "https://translate.fedoraproject.org/api/units/1022906/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-25T12:14:02.572770Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "To configure the system to gate your package on tests, you need to add a file called `gating.yaml` to the git repository of the package(s) you want gated." ], "previous_source": "", "target": [ "" ], "id_hash": 8221164879274585413, "content_hash": 8221164879274585413, "location": "pages/optin.adoc:37", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 12, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 28, "source_unit": "https://translate.fedoraproject.org/api/units/1022907/?format=api", "priority": 100, "id": 1022908, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=f21771e66d142d45", "url": "https://translate.fedoraproject.org/api/units/1022908/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-25T12:14:02.630715Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "A simple example for `gating.yaml` would look like this:" ], "previous_source": "", "target": [ "" ], "id_hash": -4649042990311133219, "content_hash": -4649042990311133219, "location": "pages/optin.adoc:39", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 13, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 9, "source_unit": "https://translate.fedoraproject.org/api/units/1022909/?format=api", "priority": 100, "id": 1022910, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=3f7b480830fc2fdd", "url": "https://translate.fedoraproject.org/api/units/1022910/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-25T12:14:02.663562Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "Basically, it contains two policies, one to push a build to testing and one to push a build to stable and for both of these situations, it asks that the test named `org.centos.prod.ci.pipeline.allpackages-build.complete` passes." ], "previous_source": "", "target": [ "" ], "id_hash": 5138676950017129846, "content_hash": 5138676950017129846, "location": "pages/optin.adoc:61", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 15, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 34, "source_unit": "https://translate.fedoraproject.org/api/units/1022913/?format=api", "priority": 100, "id": 1022914, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=c7503f75cd423d76", "url": "https://translate.fedoraproject.org/api/units/1022914/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-25T12:14:02.730221Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "For gating rawhide itself, you only need the `decision_context: bodhi_update_push_stable`, while for stable branches, you will need both." ], "previous_source": "", "target": [ "" ], "id_hash": -7622557499298334316, "content_hash": -7622557499298334316, "location": "pages/optin.adoc:65", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 16, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate.fedoraproject.org/api/units/1022915/?format=api", "priority": 100, "id": 1022917, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=16373c5726553994", "url": "https://translate.fedoraproject.org/api/units/1022917/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-25T12:14:02.774708Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "If gating on your package-level tests is all you are interested in, you can use this example as is." ], "previous_source": "", "target": [ "" ], "id_hash": -3763194281180083586, "content_hash": -3763194281180083586, "location": "pages/optin.adoc:68", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 17, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 19, "source_unit": "https://translate.fedoraproject.org/api/units/1022918/?format=api", "priority": 100, "id": 1022920, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=4bc672bd517aca7e", "url": "https://translate.fedoraproject.org/api/units/1022920/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-25T12:14:02.808362Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "If you are also interested in some of the Taskotron checks, such as `dist.python-versions` or `dist.python-versions.py3_support`, you could amend the file so it looks like:" ], "previous_source": "", "target": [ "" ], "id_hash": -5224919194135892137, "content_hash": -5224919194135892137, "location": "pages/optin.adoc:72", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 18, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://translate.fedoraproject.org/api/units/1022922/?format=api", "priority": 100, "id": 1022925, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=377d5bacfd68ef57", "url": "https://translate.fedoraproject.org/api/units/1022925/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-25T12:14:02.838563Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "You can find more about this file in Greenwave’s documentation about link:https://docs.pagure.org/greenwave/package-specific-policies.html[package specific policies]." ], "previous_source": "", "target": [ "" ], "id_hash": -3960118984879106400, "content_hash": -3960118984879106400, "location": "pages/optin.adoc:96", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 20, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate.fedoraproject.org/api/units/1022934/?format=api", "priority": 100, "id": 1022937, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=490ad4c3ce0016a0", "url": "https://translate.fedoraproject.org/api/units/1022937/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-25T12:14:02.898021Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "--- !Policy\nproduct_versions:\n - fedora-*\ndecision_context: bodhi_update_push_testing\nsubject_type: koji_build\nrules:\n - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}\n--- !Policy\nproduct_versions:\n - fedora-*\ndecision_context: bodhi_update_push_stable\nsubject_type: koji_build\nrules:\n - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}\n" ], "previous_source": "", "target": [ "" ], "id_hash": 3439955106318020104, "content_hash": 3439955106318020104, "location": "pages/optin.adoc:56", "context": "", "note": "type: delimited block -", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 14, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 28, "source_unit": "https://translate.fedoraproject.org/api/units/3140874/?format=api", "priority": 100, "id": 3140875, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=afbd2cf18b606e08", "url": "https://translate.fedoraproject.org/api/units/3140875/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-05-21T22:40:35.344429Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?format=api", "source": [ "--- !Policy\nproduct_versions:\n - fedora-*\ndecision_context: bodhi_update_push_testing\nsubject_type: koji_build\nrules:\n - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}\n - !PassingTestCaseRule {test_case_name: dist.python-versions}\n - !PassingTestCaseRule {test_case_name: dist.python-versions.py3_support}\n--- !Policy\nproduct_versions:\n - fedora-*\ndecision_context: bodhi_update_push_stable\nsubject_type: koji_build\nrules:\n - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}\n - !PassingTestCaseRule {test_case_name: dist.python-versions}\n - !PassingTestCaseRule {test_case_name: dist.python-versions.py3_support}\n" ], "previous_source": "", "target": [ "" ], "id_hash": 7844469560196511202, "content_hash": 7844469560196511202, "location": "pages/optin.adoc:93", "context": "", "note": "type: delimited block -", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 19, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 44, "source_unit": "https://translate.fedoraproject.org/api/units/3140876/?format=api", "priority": 100, "id": 3140877, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-rawhide-gating/masterpagesoptin/fr/?checksum=ecdd2780d2e0b5e2", "url": "https://translate.fedoraproject.org/api/units/3140877/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-05-21T22:40:35.416339Z" } ] }{ "count": 20, "next": null, "previous": null, "results": [ { "translation": "