Units API.

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

GET /api/units/10765996/?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/ru/?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>Система альтернатив используется, когда в вашей системе установлено несколько равноценных программ. Например, если установлены несколько реализаций или версий Java, система альтернатив используется для принятия решения, какая именно из них будет задействована при запуске команды \"java\".</p><p>Каждая альтернатива может иметь два состояния: автоматический или ручной. В <b>автоматическом режиме</b> система использует вариант с более высоким приоритетом. Примечание: <b>приоритет</b> задаётся создателями пакетов, которые стараются обеспечить разумные значения по умолчанию. <b>Ручной режим</b> используется, когда пользователь осуществляет выбор вручную (самостоятельно).</p><p>Чтобы изменить текущий выбор выделите нужную альтернативу, нажмите кнопку <b>Изменить</b>, укажите нужный вариант в таблице и нажмите кнопку <b>Задать выбор</b>. Если необходимо использовать альтернативы в автоматическом режиме, нажмите кнопку <b>Задать автоматический режим</b> в окне редактирования.</p><p>Кроме того, каждый выбор имеет свой собственный набор <b>подчиненных ему выборов</b>, которые будут задействованы вместе с ним.</p><p>Например, задана альтернатива \"editor\" (редактор), которая имеет два выбора. Первый выбор \"/bin/ed\" имеет подчиненный ему:</p><pre>  editor.1.gz /usr/share/man/man1/ed.1.gz</pre><p>Другой выбор \"/usr/bin/vim\" имеет такие подчинённые:</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>В случае, если выбран иной вариант, все его подчинённые будут изменены или же созданы, если не существовали ранее. Если же вариант \"/bin/ed\" будет задан позже, подчинённый \"editor.1.gz\" будет изменён, а другие будут удалены.</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": 10765996,
    "web_url": "https://l10n.opensuse.org/translate/yast-alternatives/master/ru/?checksum=e700732cfa7df4d4",
    "url": "https://l10n.opensuse.org/api/units/10765996/?format=api",
    "explanation": "",
    "extra_flags": ""
}