Translation components API.

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

GET /api/translations/xwiki-platform/xwiki-xwikisyntaxscripts/lv/units/?format=api
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 2,
    "next": null,
    "previous": null,
    "results": [
        {
            "translation": "https://l10n.xwiki.org/api/translations/xwiki-platform/xwiki-xwikisyntaxscripts/lv/?format=api",
            "source": [
                "= Programming =\n\n== Scripts ==\n\n=== 1.0 Scripts ===\n\n{{info}}In XWiki Syntax 1.0 it was possible to enter Velocity scripts anywhere directly in the page. This can lead to issues for example when the user was involuntarily entering Velocity content. It is also performance hungry for pages not requiring Velocity content. There are several other technical limitations. Same goes for entering Groovy scripts.{{/info}}\n\n|=Feature|=XWiki Syntax 1.0\n|Velocity script|((({{{\n#set ($var = \"whatever\")\n}}})))\n|Groovy script|((({{{\n<%\ndef var = \"whatever\"\n%>\n}}})))\n\n=== 2.0 Scripts ===\n\n{{info}}XWiki [[supports several scripting languages>>https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/Scripting/]].{{/info}}\n\n|=Feature|=XWiki Syntax {{velocity}}$crtSyntaxVer{{/velocity}}\n|Velocity script|((({{{\n{{velocity}}\n#set ($var = \"whatever\")\n{{/velocity}}\n}}})))\n|Groovy script|((({{{\n{{groovy}}\ndef var = \"whatever\"\n{{/groovy}}\n}}})))"
            ],
            "previous_source": "= Programming =\n\n== Scripts ==\n\n=== 1.0 Scripts ===\n\n{{info}}In XWiki Syntax 1.0 it was possible to enter Velocity scripts anywhere directly in the page. This can lead to issues for example when the user was involuntarily entering Velocity content. It is also performance hungry for pages not requiring Velocity content. There are several other technical limitations. Same goes for entering Groovy scripts.{{/info}}\n\n|=Feature|=XWiki Syntax 1.0\n|Velocity script|((({{{\n#set ($var = \"whatever\")\n}}})))\n|Groovy script|((({{{\n<%\ndef var = \"whatever\"\n%>\n}}})))\n\n=== 2.0 Scripts ===\n\n{{info}}In XWiki Syntax 1.0 it was possible to enter Velocity scripts anywhere directly in the page. This lead to issues for example when the user was involuntarily entering Velocity content. It was also performance hungry for pages not requiring Velocity content. There were several other technical limitations. Thus in XWiki Syntax {{velocity}}$crtSyntaxVer{{/velocity}} Velocity scripts must be entered using the ##velocity## macro. Same goes for entering Groovy scripts.{{/info}}\n\n|=Feature|=XWiki Syntax {{velocity}}$crtSyntaxVer{{/velocity}}\n|Velocity script|((({{{\n{{velocity}}\n#set ($var = \"whatever\")\n{{/velocity}}\n}}})))\n|Groovy script|((({{{\n{{groovy}}\ndef var = \"whatever\"\n{{/groovy}}\n}}})))",
            "target": [
                "= Programming =\n\n== Skripti ==\n\n{{comment}}please do not translate the sub headlines{{/comment}}\n=== 1.0 Scripts ===\n\n{{info}}XWiki 1.0 sintaksē Velocity skriptus varēja izsaukt jebkurā viki dokumenta vietā. Tā rezultātā gadījās, ka lietotāji negribot ievadīja tekstu, kas tika izpildīts kā Velocity skripts. Tas arī palēnināja lapu parādīšanu pat tajos gadījumos, ja lapā nebija Velocity skriptu, un radīja arī citas tehniskas problēmas. Tieši tas pats attiecas arī uz Groovy skriptiem.{{/info}}\n\n|=Piemērs|=XWiki 1.0 sintakse\n|Velocity skripts|(((\n{{{\n#set ($mainigais = \"vērtība\")\n}}}\n)))|\n|Groovy skripts|(((\n{{{\n<%\ndef mainigais = \"vērtība\"\n%>\n}}}\n)))|\n\n=== 2.0 Scripts ===\n\n{{info}}XWiki 1.0 sintaksē Velocity skriptus varēja izsaukt jebkurā viki dokumenta vietā. Tā rezultātā gadījās, ka lietotāji negribot ievadīja tekstu, kas tika izpildīts kā Velocity skripts. Tas arī palēnināja lapu parādīšanu pat tajos gadījumos, ja lapā nebija Velocity skriptu, un radīja arī citas tehniskas problēmas. Tāpēc XWiki {{velocity}}$crtSyntaxVer{{/velocity}} sintaksē Velocity skripti ir jāiekļauj, izmantojot tieši norādītu ##velocity## makrosu. Tieši tas pats attiecas arī uz Groovy skriptiem.{{/info}}\n\n|=Piemērs|=XWiki {{velocity}}$crtSyntaxVer{{/velocity}} sintakse\n|Velocity skripts|(((\n{{{\n{{velocity}}\n#set ($mainigais = \"vērtība\")\n{{/velocity}}\n}}}\n)))\n|Groovy skripts|(((\n{{{\n{{groovy}}\ndef mainigais = \"vērtība\"\n{{/groovy}}\n}}}\n)))"
            ],
            "id_hash": 4321460072923956526,
            "content_hash": 7115209826416164921,
            "location": "",
            "context": "content",
            "note": "",
            "flags": "",
            "labels": [],
            "state": 10,
            "fuzzy": true,
            "translated": false,
            "approved": false,
            "position": 1,
            "has_suggestion": false,
            "has_comment": false,
            "has_failing_check": true,
            "num_words": 113,
            "source_unit": "https://l10n.xwiki.org/api/units/465636/?format=api",
            "priority": 100,
            "id": 465659,
            "web_url": "https://l10n.xwiki.org/translate/xwiki-platform/xwiki-xwikisyntaxscripts/lv/?checksum=bbf8e90a4daa852e",
            "url": "https://l10n.xwiki.org/api/units/465659/?format=api",
            "explanation": "",
            "extra_flags": "",
            "pending": false,
            "timestamp": "2020-12-02T15:33:11.817394Z"
        },
        {
            "translation": "https://l10n.xwiki.org/api/translations/xwiki-platform/xwiki-xwikisyntaxscripts/lv/?format=api",
            "source": [
                "XWikiSyntaxScripts"
            ],
            "previous_source": "",
            "target": [
                "XWiki sintakses skripti"
            ],
            "id_hash": -7901431335316922026,
            "content_hash": 8273557082750526113,
            "location": "",
            "context": "title",
            "note": "",
            "flags": "",
            "labels": [],
            "state": 20,
            "fuzzy": false,
            "translated": true,
            "approved": false,
            "position": 2,
            "has_suggestion": false,
            "has_comment": false,
            "has_failing_check": true,
            "num_words": 1,
            "source_unit": "https://l10n.xwiki.org/api/units/465637/?format=api",
            "priority": 100,
            "id": 465660,
            "web_url": "https://l10n.xwiki.org/translate/xwiki-platform/xwiki-xwikisyntaxscripts/lv/?checksum=12587a10694b6156",
            "url": "https://l10n.xwiki.org/api/units/465660/?format=api",
            "explanation": "",
            "extra_flags": "",
            "pending": false,
            "timestamp": "2020-12-02T15:33:12.037612Z"
        }
    ]
}