Translation components API.

See the Weblate's Web API documentation for detailed description of the API.

GET /api/translations/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/units/?format=api
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 15,
    "next": null,
    "previous": null,
    "results": [
        {
            "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?format=api",
            "source": [
                "Replacing a symlink with a directory or a directory with any type of file"
            ],
            "previous_source": "",
            "target": [
                ""
            ],
            "id_hash": -2372580672495381051,
            "content_hash": -2372580672495381051,
            "location": "pages/Directory_Replacement.adoc:1",
            "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": 14,
            "source_unit": "https://translate.fedoraproject.org/api/units/1007485/?format=api",
            "priority": 100,
            "id": 1007583,
            "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?checksum=5f12e672e6f495c5",
            "url": "https://translate.fedoraproject.org/api/units/1007583/?format=api",
            "explanation": "",
            "extra_flags": "",
            "pending": false,
            "timestamp": "2020-02-25T11:56:23.304955Z"
        },
        {
            "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?format=api",
            "source": [
                "Due to a known limitation with RPM, it is not possible to replace a directory with any kind of file or symlink, nor is it possible to replace a symlink to a directory with a directory without RPM producing file conflict errors while trying to install the package.  For more information on the issues involved, refer to https://bugzilla.redhat.com/show_bug.cgi?id=447156[bug 447156] and https://bugzilla.redhat.com/show_bug.cgi?id=646523[bug 646523]."
            ],
            "previous_source": "",
            "target": [
                ""
            ],
            "id_hash": -1975508644462551686,
            "content_hash": -1975508644462551686,
            "location": "pages/Directory_Replacement.adoc:13",
            "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": 62,
            "source_unit": "https://translate.fedoraproject.org/api/units/1007493/?format=api",
            "priority": 100,
            "id": 1007586,
            "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?checksum=6495955ac4189d7a",
            "url": "https://translate.fedoraproject.org/api/units/1007586/?format=api",
            "explanation": "",
            "extra_flags": "",
            "pending": false,
            "timestamp": "2020-02-25T11:56:23.312541Z"
        },
        {
            "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?format=api",
            "source": [
                "Try to avoid the problem in the first place"
            ],
            "previous_source": "",
            "target": [
                ""
            ],
            "id_hash": 5656341314009192780,
            "content_hash": 5656341314009192780,
            "location": "pages/Directory_Replacement.adoc:14",
            "context": "",
            "note": "type: Title ==",
            "flags": "no-wrap",
            "labels": [],
            "state": 0,
            "fuzzy": false,
            "translated": false,
            "approved": false,
            "position": 3,
            "has_suggestion": false,
            "has_comment": false,
            "has_failing_check": false,
            "num_words": 9,
            "source_unit": "https://translate.fedoraproject.org/api/units/1007500/?format=api",
            "priority": 100,
            "id": 1007588,
            "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?checksum=ce7f5c74dde2594c",
            "url": "https://translate.fedoraproject.org/api/units/1007588/?format=api",
            "explanation": "",
            "extra_flags": "",
            "pending": false,
            "timestamp": "2020-02-25T11:56:23.321668Z"
        },
        {
            "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?format=api",
            "source": [
                "While it's obviously not possible to foresee all the cases where the need might arise, when the need *_is_* foreseeable, such as with bundled libraries, it is better to use a symlink from the beginning, as the symlink target can be changed more easily.  For instance, if you have a bundled `libfoo` library inside the package's directory structure, place it in, for example, a `libfoo.bundled` directory and make libfoo a symlink to that.  When the bundling is eventually removed, you just need to drop the directory and change the symlink to point to the corresponding system library directory, without resorting to the scriptlets described below."
            ],
            "previous_source": "",
            "target": [
                ""
            ],
            "id_hash": -1303488607773532371,
            "content_hash": -1303488607773532371,
            "location": "pages/Directory_Replacement.adoc:32",
            "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": 105,
            "source_unit": "https://translate.fedoraproject.org/api/units/1007506/?format=api",
            "priority": 100,
            "id": 1007591,
            "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?checksum=6de9140474e3df2d",
            "url": "https://translate.fedoraproject.org/api/units/1007591/?format=api",
            "explanation": "",
            "extra_flags": "",
            "pending": false,
            "timestamp": "2020-02-25T11:56:23.330459Z"
        },
        {
            "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?format=api",
            "source": [
                "Working around it with scriptlets"
            ],
            "previous_source": "",
            "target": [
                ""
            ],
            "id_hash": -2922365437523116297,
            "content_hash": -2922365437523116297,
            "location": "pages/Directory_Replacement.adoc:33",
            "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/1007513/?format=api",
            "priority": 100,
            "id": 1007593,
            "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?checksum=5771ac1e308e3ef7",
            "url": "https://translate.fedoraproject.org/api/units/1007593/?format=api",
            "explanation": "",
            "extra_flags": "",
            "pending": false,
            "timestamp": "2020-02-25T11:56:23.338038Z"
        },
        {
            "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?format=api",
            "source": [
                "To work around this problem, you must include a xref:Scriptlets.adoc#pretrans[%pretrans scriptlet] that manually performs the conversion prior to RPM attempting to install the package."
            ],
            "previous_source": "",
            "target": [
                ""
            ],
            "id_hash": 2994730002784051780,
            "content_hash": 2994730002784051780,
            "location": "pages/Directory_Replacement.adoc:40",
            "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": 24,
            "source_unit": "https://translate.fedoraproject.org/api/units/1007520/?format=api",
            "priority": 100,
            "id": 1007596,
            "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?checksum=a98f6b121e25e244",
            "url": "https://translate.fedoraproject.org/api/units/1007596/?format=api",
            "explanation": "",
            "extra_flags": "",
            "pending": false,
            "timestamp": "2020-02-25T11:56:23.347135Z"
        },
        {
            "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?format=api",
            "source": [
                "Note that '+%pretrans+' scriptlets MUST be written in Lua and thus use `+-p <lua>+` in order to function during initial system installation when no shell has yet been installed."
            ],
            "previous_source": "",
            "target": [
                ""
            ],
            "id_hash": 971958182573804673,
            "content_hash": 971958182573804673,
            "location": "pages/Directory_Replacement.adoc:45",
            "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": 29,
            "source_unit": "https://translate.fedoraproject.org/api/units/1007526/?format=api",
            "priority": 100,
            "id": 1007598,
            "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?checksum=8d7d16d140d88c81",
            "url": "https://translate.fedoraproject.org/api/units/1007598/?format=api",
            "explanation": "",
            "extra_flags": "",
            "pending": false,
            "timestamp": "2020-02-25T11:56:23.359865Z"
        },
        {
            "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?format=api",
            "source": [
                "Please use whichever of the two following snippets is necessary in packages that need this transition, replacing `+/path/to/dir+` with the path to the directory that is being converted."
            ],
            "previous_source": "",
            "target": [
                ""
            ],
            "id_hash": -1626997033513365808,
            "content_hash": -1626997033513365808,
            "location": "pages/Directory_Replacement.adoc:50",
            "context": "",
            "note": "type: Plain text",
            "flags": "",
            "labels": [],
            "state": 0,
            "fuzzy": false,
            "translated": false,
            "approved": false,
            "position": 8,
            "has_suggestion": false,
            "has_comment": false,
            "has_failing_check": false,
            "num_words": 28,
            "source_unit": "https://translate.fedoraproject.org/api/units/1007532/?format=api",
            "priority": 100,
            "id": 1007600,
            "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?checksum=696bbed176d24ed0",
            "url": "https://translate.fedoraproject.org/api/units/1007600/?format=api",
            "explanation": "",
            "extra_flags": "",
            "pending": false,
            "timestamp": "2020-02-25T11:56:23.368321Z"
        },
        {
            "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?format=api",
            "source": [
                "Scriptlet to replace a directory"
            ],
            "previous_source": "",
            "target": [
                ""
            ],
            "id_hash": -193134966376276684,
            "content_hash": -193134966376276684,
            "location": "pages/Directory_Replacement.adoc:51",
            "context": "",
            "note": "type: Title ===",
            "flags": "no-wrap",
            "labels": [],
            "state": 0,
            "fuzzy": false,
            "translated": false,
            "approved": false,
            "position": 9,
            "has_suggestion": false,
            "has_comment": false,
            "has_failing_check": false,
            "num_words": 5,
            "source_unit": "https://translate.fedoraproject.org/api/units/1007538/?format=api",
            "priority": 100,
            "id": 1007602,
            "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?checksum=7d51d8c5776f5d34",
            "url": "https://translate.fedoraproject.org/api/units/1007602/?format=api",
            "explanation": "",
            "extra_flags": "",
            "pending": false,
            "timestamp": "2020-02-25T11:56:23.375629Z"
        },
        {
            "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?format=api",
            "source": [
                "RPM cannot simply remove a directory when it is replaced by a file or symlink, since users may have added or modified files to the directory.  To protect against accidental data loss, you MUST use the following scriptlet which renames the directory with a `+.rpmmoved+` suffix so that users can find the backed up directory if they need to after the package is upgraded.  (It also will append an integer to the suffix in the rare event that directory also exists.)"
            ],
            "previous_source": "",
            "target": [
                ""
            ],
            "id_hash": 6781682298398340022,
            "content_hash": 6781682298398340022,
            "location": "pages/Directory_Replacement.adoc:63",
            "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": 81,
            "source_unit": "https://translate.fedoraproject.org/api/units/1007544/?format=api",
            "priority": 100,
            "id": 1007604,
            "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?checksum=de1d601e979673b6",
            "url": "https://translate.fedoraproject.org/api/units/1007604/?format=api",
            "explanation": "",
            "extra_flags": "",
            "pending": false,
            "timestamp": "2020-02-25T11:56:23.388833Z"
        },
        {
            "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?format=api",
            "source": [
                "%pretrans -p <lua>\n-- Define the path to directory being replaced below.\n-- DO NOT add a trailing slash at the end.\npath = \"/path/to/dir\"\nst = posix.stat(path)\nif st and st.type == \"directory\" then\n  status = os.rename(path, path .. \".rpmmoved\")\n  if not status then\n    suffix = 0\n    while not status do\n      suffix = suffix + 1\n      status = os.rename(path .. \".rpmmoved\", path .. \".rpmmoved.\" .. suffix)\n    end\n    os.rename(path, path .. \".rpmmoved\")\n  end\nend\n"
            ],
            "previous_source": "",
            "target": [
                ""
            ],
            "id_hash": -9116865123913234108,
            "content_hash": -9116865123913234108,
            "location": "pages/Directory_Replacement.adoc:81",
            "context": "",
            "note": "type: delimited block .",
            "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": 74,
            "source_unit": "https://translate.fedoraproject.org/api/units/1007550/?format=api",
            "priority": 100,
            "id": 1007607,
            "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?checksum=017a637918010944",
            "url": "https://translate.fedoraproject.org/api/units/1007607/?format=api",
            "explanation": "",
            "extra_flags": "",
            "pending": false,
            "timestamp": "2020-02-25T11:56:23.400716Z"
        },
        {
            "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?format=api",
            "source": [
                "Additionally, you should define the `+/path/to/dir.rpmmoved+` directory as a `+%ghost+` entry in the `+%files+` list in the package's spec file, so that the directory is not entirely orphaned and can be deleted if the package is ever uninstalled and the directory is empty."
            ],
            "previous_source": "",
            "target": [
                ""
            ],
            "id_hash": -10661005196464559,
            "content_hash": -10661005196464559,
            "location": "pages/Directory_Replacement.adoc:89",
            "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": 43,
            "source_unit": "https://translate.fedoraproject.org/api/units/1007555/?format=api",
            "priority": 100,
            "id": 1007610,
            "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?checksum=7fda1fdf4c50ee51",
            "url": "https://translate.fedoraproject.org/api/units/1007610/?format=api",
            "explanation": "",
            "extra_flags": "",
            "pending": false,
            "timestamp": "2020-02-25T11:56:23.410184Z"
        },
        {
            "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?format=api",
            "source": [
                "Scriptlet to replace a symlink to a directory with a directory"
            ],
            "previous_source": "",
            "target": [
                ""
            ],
            "id_hash": -7533777774489004194,
            "content_hash": -7533777774489004194,
            "location": "pages/Directory_Replacement.adoc:90",
            "context": "",
            "note": "type: Title ===",
            "flags": "no-wrap",
            "labels": [],
            "state": 0,
            "fuzzy": false,
            "translated": false,
            "approved": false,
            "position": 13,
            "has_suggestion": false,
            "has_comment": false,
            "has_failing_check": false,
            "num_words": 11,
            "source_unit": "https://translate.fedoraproject.org/api/units/1007561/?format=api",
            "priority": 100,
            "id": 1007612,
            "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?checksum=1772a5079ed9975e",
            "url": "https://translate.fedoraproject.org/api/units/1007612/?format=api",
            "explanation": "",
            "extra_flags": "",
            "pending": false,
            "timestamp": "2020-02-25T11:56:23.420459Z"
        },
        {
            "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?format=api",
            "source": [
                "Replacing a symlink to a directory with a regular directory is much simpler, since there's no potential for accidentally removing files added externally.  The following scriptlet checks for and removes the symlink.  There is no need to create the directory here, as RPM will do so later in the transaction when the package is installed."
            ],
            "previous_source": "",
            "target": [
                ""
            ],
            "id_hash": 8734261985275030068,
            "content_hash": 8734261985275030068,
            "location": "pages/Directory_Replacement.adoc:99",
            "context": "",
            "note": "type: Plain text",
            "flags": "",
            "labels": [],
            "state": 0,
            "fuzzy": false,
            "translated": false,
            "approved": false,
            "position": 14,
            "has_suggestion": false,
            "has_comment": false,
            "has_failing_check": false,
            "num_words": 55,
            "source_unit": "https://translate.fedoraproject.org/api/units/1007566/?format=api",
            "priority": 100,
            "id": 1007615,
            "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?checksum=f93654ffdf842a34",
            "url": "https://translate.fedoraproject.org/api/units/1007615/?format=api",
            "explanation": "",
            "extra_flags": "",
            "pending": false,
            "timestamp": "2020-02-25T11:56:23.431879Z"
        },
        {
            "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?format=api",
            "source": [
                "%pretrans -p <lua>\n-- Define the path to the symlink being replaced below.\npath = \"/path/to/dir\"\nst = posix.stat(path)\nif st and st.type == \"link\" then\n  os.remove(path)\nend\n"
            ],
            "previous_source": "",
            "target": [
                ""
            ],
            "id_hash": 2421250590936676541,
            "content_hash": 2421250590936676541,
            "location": "pages/Directory_Replacement.adoc:108",
            "context": "",
            "note": "type: delimited block .",
            "flags": "no-wrap",
            "labels": [],
            "state": 0,
            "fuzzy": false,
            "translated": false,
            "approved": false,
            "position": 15,
            "has_suggestion": false,
            "has_comment": false,
            "has_failing_check": false,
            "num_words": 28,
            "source_unit": "https://translate.fedoraproject.org/api/units/1007572/?format=api",
            "priority": 100,
            "id": 1007616,
            "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-packaging-guidelines/masterpagesdirectory_replacement/ja/?checksum=a19a029588fc38bd",
            "url": "https://translate.fedoraproject.org/api/units/1007616/?format=api",
            "explanation": "",
            "extra_flags": "",
            "pending": false,
            "timestamp": "2020-02-25T11:56:23.439796Z"
        }
    ]
}