Units API.

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

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

{
    "translation": "https://l10n.opensuse.org/api/translations/yast-alternatives/master/ast/?format=api",
    "source": [
        "<p>The alternatives system is used when some equivalent applications are installed in the system. For example if several implementations and versions of Java are installed, the alternatives system will be used to decide which one to use when the command \"java\" is called.</p><p>Every alternative have an status, it can be automatic or manual. In <b>automatic mode</b> the system uses the choice with higher priority. Note that <b>priority</b> is set by the packages creators trying to provide reasonable defaults. The <b>manual mode</b> is set when the user selects a choice manually.</p><p>To change the current choice of an alternative, select the alternative, click the <b>edit</b> button then select the desired choice in the table and click on the <b>set choice</b> button. If you want to have the alternative in automatic mode just click the <b>set automatic mode</b> button in the edit dialog.</p><p>Furthermore every choice has its own set of <b>slaves</b>, these will be applied in the system when the choice is selected.</p><p>For example, given an alternative \"editor\" that has two choices.The first choice \"/bin/ed\" with the slave:</p><pre>  editor.1.gz /usr/share/man/man1/ed.1.gz</pre><p>Another choice \"/usr/bin/vim\" with the following slaves:</p><pre>  editor.1.gz /usr/share/man/man1/vim.1.gz\n  editor.fr.1.gz /usr/share/man/fr/man1/vim.1.gz\n  editor.it.1.gz /usr/share/man/it/man1/vim.1.gz\n  editor.pl.1.gz /usr/share/man/pl/man1/vim.1.gz\n  editor.ru.1.gz /usr/share/man/ru/man1/vim.1.gz\n</pre><p>In this case if the second choice is selected all its slaves will be modified, or created if they do not exist already. If the \"/bin/ed\" choice is set afterward, the slave \"editor.1.gz\" will be modified and the others will be removed.</p>"
    ],
    "previous_source": "",
    "target": [
        "<p>El sistema d'alternatives úsase cuando daqué aplicación equivalente s'instala nel sistema. Por exemplu, si s'instalen delles implementaciones y versiones de Java, usaráse'l sistema d'alternatives pa decidir cualu usar cuando se llame al comandu «java».</p><p>Cada alternativa tien un estáu, pue ser automáticu o manual. Nel <b>mou automáticu</b> el sistema usa la escoyeta cola prioridá más alta. Decátate que la <b>prioridá</b> afítenla los creadores de paquetes tentando de fornir axustes predeterminaos afayadizos. El <b>mou manual</b> afítase cuando l'usuariu esbilla una escoyeta a mano.</p><p>Pa camudar la escoyeta actual d'una alternativa, esbilla la alternativa, primi'l botón <b>Editar</b> dempués esbilla la escoyeta deseada na tabla y primi nel botón <b>Afitar escoyeta</b>. Si quies tener l'alternativa nel mou automáticu, namái primi'l botón <b>Afitar mou automáticu</b> nel diálogu d'edición.</p><p>Amás, cada escoyeta na tabla tien el so propiu conxuntu d'<b>esclavos</b>, éstos aplicaránse nel sistema al esbillar la escoyeta.</p><p>Por exemplu, dada una alternativa «editor» que tien dos escoyetes. La primer escoyeta «bin/ed» col esclavu:</p><pre> editor.1.gz /usr/share/man/man1/ed.1.gz</pre><p>Otra escoyeta «/usr/bin/vim» colos esclavos de darréu:</p><pre> editor.1.gz /usr/share/man/man1/vim.1.gz\n editor.fr.1.gz /usr/share/man/fr/man1/vim.1.gz\n editor.it.1.gz /usr/share/man/it/man1/vim.1.gz\n editor.pl.1.gz /usr/share/man/pl/man1/vim.1.gz\n editor.ru.1.gz /usr/share/man/ru/man1/vim.1.gz\n</pre><p>Nesti casu, si s'esbilla la segunda escoyeta, modificaránse tolos sos esclavos o crearánse si yá nun esisten. Si s'afita la escoyeta «/bin/ed», modificaráse l'esclavu «editor.1.gz» y desaniciaránse los otros.</p>"
    ],
    "id_hash": 7422058822924891348,
    "content_hash": 7422058822924891348,
    "location": "src/lib/y2_alternatives/dialog/list_alternatives.rb:61",
    "context": "",
    "note": "",
    "flags": "",
    "state": 20,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 10,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 235,
    "source_unit": "https://l10n.opensuse.org/api/units/12586168/?format=api",
    "priority": 100,
    "id": 3101680,
    "web_url": "https://l10n.opensuse.org/translate/yast-alternatives/master/ast/?checksum=e700732cfa7df4d4",
    "url": "https://l10n.opensuse.org/api/units/3101680/?format=api",
    "explanation": "",
    "extra_flags": ""
}