Units API.

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

GET /api/units/16023058/?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/fr/?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>Le système des alternatives est utilisé lorsque des applications équivalentes sont installées dans le système. Par exemple, si plusieurs implémentations et versions de Java sont installées, le système des alternatives sera utilisé pour décider laquelle utiliser lorsque la commande \"java\" est invoquée.</p><p>Chaque alternative a un statut, qui peut être automatique ou manuel. En <b>mode automatique</b> le système utilise le choix le plus prioritaire. Notez que <b>la priorité</b> est fixée par les créateurs des paquets qui essaient de fournir des valeurs par défaut raisonnables. Le <b>mode manuel</b> est activé lorsque l'utilisateur effectue un choix manuellement.</p><p> Pour modifier le choix actuel d'une alternative, sélectionnez l'alternative, cliquez sur le bouton <b>Modifier</b>, puis sélectionnez le choix souhaité dans le tableau et cliquez sur le bouton <b>Définir le choix</b>. Si vous souhaitez que l'alternative soit en mode automatique, cliquez sur le bouton <b>Sélectionner le mode automatique</b> dans la boîte de dialogue d'édition.</p><p>En outre, chaque choix a son propre ensemble <b>d'esclaves</b>, qui seront appliqués dans le système lorsque le choix est sélectionné.</p><p>Par exemple, dans le cas d'un \"éditeur\" alternatif, deux choix sont possibles : le premier choix \"/bin/ed\" avec l'esclave, le deuxième choix \"/bin/ed\" avec l'esclave :</p><pre> editor.1.gz /usr/share/man/man1/ed.1.gz</pre><p>Un autre choix \"/usr/bin/vim\" avec les esclaves suivants :</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>Dans ce cas, si le deuxième choix est sélectionné, tous ses esclaves seront modifiés ou créés s'ils n'existent pas déjà. Si le choix \"/bin/ed\" est défini par la suite, l'esclave \"editor.1.gz\" sera modifié et les autres seront supprimés.</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": 16023058,
    "web_url": "https://l10n.opensuse.org/translate/yast-alternatives/master/fr/?checksum=e700732cfa7df4d4",
    "url": "https://l10n.opensuse.org/api/units/16023058/?format=api",
    "explanation": "",
    "extra_flags": ""
}