Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/units/?format=api
https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "Building a local preview" ], "previous_source": "", "target": [ "" ], "id_hash": -2189191072873855790, "content_hash": -2189191072873855790, "location": "pages/local-preview.adoc:3", "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": 4, "source_unit": "https://translate.fedoraproject.org/api/units/803327/?format=api", "priority": 100, "id": 803331, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=619e6e516be5c4d2", "url": "https://translate.fedoraproject.org/api/units/803331/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-24T21:26:35.137563Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "To preview, run the `build.sh` script; this is the one that actually builds a local version of the site (or, more precisely, the subset of the full site that resides in your current repository). Then, run `preview.sh`, which starts a webserver and serves the site at link:http://localhost:8080/[]. Opening this URL in any web browser will show you the preview, which will be available until you kill the process (kbd:[Ctrl+C] in the terminal)." ], "previous_source": "", "target": [ "" ], "id_hash": -3664230725371264676, "content_hash": -3664230725371264676, "location": "pages/local-preview.adoc:9", "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": 72, "source_unit": "https://translate.fedoraproject.org/api/units/803349/?format=api", "priority": 100, "id": 803353, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=4d260991b72c815c", "url": "https://translate.fedoraproject.org/api/units/803353/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-24T21:26:35.239015Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "Using the regular Antora scripts" ], "previous_source": "", "target": [ "" ], "id_hash": 2068963493422581388, "content_hash": 2068963493422581388, "location": "pages/local-preview.adoc:32", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 10, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate.fedoraproject.org/api/units/803361/?format=api", "priority": 100, "id": 803365, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=9cb66f55deb4468c", "url": "https://translate.fedoraproject.org/api/units/803365/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-24T21:26:35.304419Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "If you want to use the regular Antora build and preview workflow - follow the instructions on https://docs.antora.org/[Antora Documentation page]." ], "previous_source": "", "target": [ "" ], "id_hash": 4666722260551068357, "content_hash": 4666722260551068357, "location": "pages/local-preview.adoc:34", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 11, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 20, "source_unit": "https://translate.fedoraproject.org/api/units/803367/?format=api", "priority": 100, "id": 803370, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=c0c3872bad8deac5", "url": "https://translate.fedoraproject.org/api/units/803370/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-24T21:26:35.330960Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "Once you have ``Antora CLI`` and ``Antora Site Generator`` you can build and preview the pages without the container scripts." ], "previous_source": "", "target": [ "" ], "id_hash": -8839284659316153836, "content_hash": -8839284659316153836, "location": "pages/local-preview.adoc:36", "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": 20, "source_unit": "https://translate.fedoraproject.org/api/units/803373/?format=api", "priority": 100, "id": 803377, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=05548d6f54e6a214", "url": "https://translate.fedoraproject.org/api/units/803377/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-24T21:26:35.365795Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "To build the pages in the project directory run:" ], "previous_source": "", "target": [ "" ], "id_hash": 8349661301796409005, "content_hash": 8349661301796409005, "location": "pages/local-preview.adoc:38", "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/803379/?format=api", "priority": 100, "id": 803383, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=f3dff4b730668ead", "url": "https://translate.fedoraproject.org/api/units/803383/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-24T21:26:35.402120Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "antora generate site.yml\n" ], "previous_source": "", "target": [ "" ], "id_hash": 5923745245083721109, "content_hash": 5923745245083721109, "location": "pages/local-preview.adoc:42", "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": 3, "source_unit": "https://translate.fedoraproject.org/api/units/803386/?format=api", "priority": 100, "id": 803389, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=d2355eea411fdd95", "url": "https://translate.fedoraproject.org/api/units/803389/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-24T21:26:35.439627Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "python3 -m http.server\n" ], "previous_source": "", "target": [ "" ], "id_hash": 2575708500191347333, "content_hash": 2575708500191347333, "location": "pages/local-preview.adoc:49", "context": "", "note": "type: delimited block -", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 16, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate.fedoraproject.org/api/units/803398/?format=api", "priority": 100, "id": 803400, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=a3bec13bf6dc0285", "url": "https://translate.fedoraproject.org/api/units/803400/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-24T21:26:35.491791Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "or if you only have Python 2 on your machine:" ], "previous_source": "", "target": [ "" ], "id_hash": -695135960138762944, "content_hash": -695135960138762944, "location": "pages/local-preview.adoc:52", "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": 10, "source_unit": "https://translate.fedoraproject.org/api/units/803403/?format=api", "priority": 100, "id": 803405, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=765a6186f9543540", "url": "https://translate.fedoraproject.org/api/units/803405/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-24T21:26:35.517145Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "python -m SimpleHTTPServer\n" ], "previous_source": "", "target": [ "" ], "id_hash": 3171911116550436400, "content_hash": 3171911116550436400, "location": "pages/local-preview.adoc:56", "context": "", "note": "type: delimited block -", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 18, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate.fedoraproject.org/api/units/803408/?format=api", "priority": 100, "id": 803409, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=ac04e45ae119f630", "url": "https://translate.fedoraproject.org/api/units/803409/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-24T21:26:35.554066Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "It opens a local preview at port 8000." ], "previous_source": "", "target": [ "" ], "id_hash": -186453350379807257, "content_hash": -186453350379807257, "location": "pages/local-preview.adoc:59", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 19, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 8, "source_unit": "https://translate.fedoraproject.org/api/units/803411/?format=api", "priority": 100, "id": 803413, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=7d6995aa6b6e1de7", "url": "https://translate.fedoraproject.org/api/units/803413/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-24T21:26:35.577149Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "If you have cargo (Rust package manager), you could also install and use ``miniserve`` or any other simple server of your choice for that matter." ], "previous_source": "", "target": [ "" ], "id_hash": -6936986063998377491, "content_hash": -6936986063998377491, "location": "pages/local-preview.adoc:60", "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": 25, "source_unit": "https://translate.fedoraproject.org/api/units/803415/?format=api", "priority": 100, "id": 803417, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=1fbadfedb38aa1ed", "url": "https://translate.fedoraproject.org/api/units/803417/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-02-24T21:26:35.598755Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "There are two shell scripts available in each existing repository (including the template repository used to create new content): `build.sh` and `preview.sh`." ], "previous_source": "", "target": [ "" ], "id_hash": -6054034312050173772, "content_hash": -6054034312050173772, "location": "pages/local-preview.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": 22, "source_unit": "https://translate.fedoraproject.org/api/units/2790007/?format=api", "priority": 100, "id": 2790008, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=2bfbbfde6c3918b4", "url": "https://translate.fedoraproject.org/api/units/2790008/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-04-10T18:28:26.362806Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "Because the documentation site is using a markup language instead of a WYSIWYG editor, the sources do not look exactly like the rendered page will. Therefore it is necessary to check that your changes look the way you want them to before you push and make a pull request. This involves building a local preview." ], "previous_source": "", "target": [ "" ], "id_hash": 9091454434328465463, "content_hash": 9091454434328465463, "location": "pages/local-preview.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": 55, "source_unit": "https://translate.fedoraproject.org/api/units/5992399/?format=api", "priority": 100, "id": 5992400, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=fe2b55a3b1cc5037", "url": "https://translate.fedoraproject.org/api/units/5992400/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-09-28T22:41:58.083111Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "This will create a new directory ``public`` which contains all the necessary files. Navigate there and run a server command. You might already have a Python simple server, in which case run:" ], "previous_source": "", "target": [ "" ], "id_hash": -6739093465141681092, "content_hash": -6739093465141681092, "location": "pages/local-preview.adoc:45", "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": 32, "source_unit": "https://translate.fedoraproject.org/api/units/5992401/?format=api", "priority": 100, "id": 5992402, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=2279ee32de12e43c", "url": "https://translate.fedoraproject.org/api/units/5992402/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-09-28T22:41:58.130527Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "To run the scripts you'll need to install [application]`Podman` if using a Linux OS such as Fedora or [application]`Docker CE` if using macOS." ], "previous_source": "", "target": [ "" ], "id_hash": -6501514828755564654, "content_hash": -6501514828755564654, "location": "pages/local-preview.adoc:13", "context": "", "note": "type: delimited block =", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 5, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 23, "source_unit": "https://translate.fedoraproject.org/api/units/8183686/?format=api", "priority": 100, "id": 8183688, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=25c5fab5b2170792", "url": "https://translate.fedoraproject.org/api/units/8183688/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-06-10T22:03:37.398655Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "Previewing multiple repositories" ], "previous_source": "", "target": [ "" ], "id_hash": -1638876933488486466, "content_hash": -1638876933488486466, "location": "pages/local-preview.adoc:15", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 6, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate.fedoraproject.org/api/units/9830575/?format=api", "priority": 100, "id": 9830579, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=69418a1cb4d657be", "url": "https://translate.fedoraproject.org/api/units/9830579/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-02-14T22:10:14.642879Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "If your work spans content in multiple repositories, e.g. because you xref:asciidoc-fedora:markup.adoc#external-antora-link[link to another repository], you can extend the preview by adding more repositories to `site.yml` as follows:" ], "previous_source": "", "target": [ "" ], "id_hash": -201765003133138929, "content_hash": -201765003133138929, "location": "pages/local-preview.adoc:19", "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": 28, "source_unit": "https://translate.fedoraproject.org/api/units/9830576/?format=api", "priority": 100, "id": 9830580, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=7d332fcc7424c80f", "url": "https://translate.fedoraproject.org/api/units/9830580/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-02-14T22:10:14.646683Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "content:\n sources:\n - url: .\n branches: HEAD\n - url: https://pagure.io/fedora-docs/another-repository.git\n branches: main\n" ], "previous_source": "", "target": [ "" ], "id_hash": -3166274410324049706, "content_hash": -3166274410324049706, "location": "pages/local-preview.adoc:27", "context": "", "note": "type: delimited block -", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 8, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 12, "source_unit": "https://translate.fedoraproject.org/api/units/9830577/?format=api", "priority": 100, "id": 9830581, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=540f22330f39c0d6", "url": "https://translate.fedoraproject.org/api/units/9830581/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-02-14T22:10:14.649879Z" }, { "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?format=api", "source": [ "Correct entries to use can be found from https://pagure.io/fedora-docs/docs-fp-o/blob/prod/f/site.yml[docs-fp-o site.yml]." ], "previous_source": "", "target": [ "" ], "id_hash": -8301322979532100546, "content_hash": -8301322979532100546, "location": "pages/local-preview.adoc:31", "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": 10, "source_unit": "https://translate.fedoraproject.org/api/units/9830578/?format=api", "priority": 100, "id": 9830582, "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-docs-contributing/masterpageslocal-preview/fr/?checksum=0ccbc6bb7f33ac3e", "url": "https://translate.fedoraproject.org/api/units/9830582/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-02-14T22:10:14.653845Z" } ] }{ "count": 20, "next": null, "previous": null, "results": [ { "translation": "