Units API.

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

GET /api/units/829210/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "translation": "http://translate.pkp.sfu.ca/api/translations/plugins/lucene/ca/?format=api",
    "source": [
        "\n\t\tYou can not currently administer the Solr server from the web interface.<br/>\n\t\t<br/>\n\t\tPossible reasons are:\n\t\t<ul>\n\t\t\t<li>You may not have an embedded server installed in this OJS instance (see 'plugins/generic/lucene/README' for details).</li>\n\t\t\t<li>The installation of your embedded server may be incomplete. Please check that the directories 'plugins/generic/lucene/lib/solr' and 'plugins/generic/lucene/lib/jetty' actually contain (or point to) the solr/jetty installation files.</li>\n            <li>The server administration scripts 'start.sh', 'stop.sh' and 'check.sh' in 'plugins/generic/lucene/embedded/bin' may not be executable. Check the permission flags of these files. {$canExecuteResult}</li>\n\t\t\t<li>The files in 'files/lucene/' may not be writable by your web server's user. Check the permission flags of these files. {$filesAreWriteableResult}</li>\n\t\t\t<li>An embedded solr process may already be running but under a different OS user. This means that you cannot manipulate the process from within PHP. {$solrIsRunningUnderPHPUser}</li>\n\t\t\t<li>Your PHP configuration may disallow script execution. Check the 'safe_mode' and 'disabled_function' settings in your php.ini. If you do not have access to your php.ini then you can execute the scripts manually to start/stop the server. {$safemodeOrExecDisabled}</li>\n\t\t</ul>\n\t"
    ],
    "previous_source": "",
    "target": [
        ""
    ],
    "id_hash": -6526597030586667755,
    "content_hash": -2970576303487839746,
    "location": "",
    "context": "plugins.generic.lucene.settings.serverNotAvailable",
    "note": "",
    "flags": "",
    "labels": [],
    "state": 0,
    "fuzzy": false,
    "translated": false,
    "approved": false,
    "position": 73,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 166,
    "source_unit": "http://translate.pkp.sfu.ca/api/units/806073/?format=api",
    "priority": 100,
    "id": 829210,
    "web_url": "http://translate.pkp.sfu.ca/translate/plugins/lucene/ca/?checksum=256cde947fc32d15",
    "url": "http://translate.pkp.sfu.ca/api/units/829210/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2024-04-19T13:46:47.861131Z"
}