Merge pull request #2915 from Yokayo/staging Update ru-ru translation

81f2bbadba6e605bd42841be0f62e0ae9fdd8a39

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
5 files changed, +68 -25Showing whitespace changes
public/index.html+6 -6
@@ -3282,7 +3282,7 @@
3282 <label>3282 <label>
3283 <small>3283 <small>
3284 <span data-i18n="Activation Regex">Activation Regex</span>3284 <span data-i18n="Activation Regex">Activation Regex</span>
3285 <span class="fa-solid fa-circle-question" title="When connecting to an API or choosing a model, automatically activate this Instruct Template if the model name matches the provided regular expression."></span>3285 <span class="fa-solid fa-circle-question" data-i18n="[title]instruct_template_activation_regex_desc" title="When connecting to an API or choosing a model, automatically activate this Instruct Template if the model name matches the provided regular expression."></span>
3286 </small>3286 </small>
3287 </label>3287 </label>
3288 <div>3288 <div>
@@ -3323,7 +3323,7 @@
3323 </h4>3323 </h4>
3324 <!-- We keep one auto-open so the user would know what is going on in the picked template -->3324 <!-- We keep one auto-open so the user would know what is going on in the picked template -->
3325 <details open>3325 <details open>
3326 <summary>User Message Sequences</summary>3326 <summary data-i18n="User Message Sequences">User Message Sequences</summary>
3327 <div class="flex-container">3327 <div class="flex-container">
3328 <div class="flexAuto" title="Inserted before a User message and as a last prompt line when impersonating." data-i18n="[title]Inserted before a User message and as a last prompt line when impersonating.">3328 <div class="flexAuto" title="Inserted before a User message and as a last prompt line when impersonating." data-i18n="[title]Inserted before a User message and as a last prompt line when impersonating.">
3329 <small data-i18n="User Prefix">User Message Prefix</small>3329 <small data-i18n="User Prefix">User Message Prefix</small>
@@ -3336,7 +3336,7 @@
3336 </div>3336 </div>
3337 </details>3337 </details>
3338 <details open>3338 <details open>
3339 <summary>Assistant Message Sequences</summary>3339 <summary data-i18n="Assistant Message Sequences">Assistant Message Sequences</summary>
3340 <div class="flex-container">3340 <div class="flex-container">
3341 <div class="flexAuto" title="Inserted before an Assistant message and as a last prompt line when generating an AI reply." data-i18n="[title]Inserted before an Assistant message and as a last prompt line when generating an AI reply.">3341 <div class="flexAuto" title="Inserted before an Assistant message and as a last prompt line when generating an AI reply." data-i18n="[title]Inserted before an Assistant message and as a last prompt line when generating an AI reply.">
3342 <small data-i18n="Assistant Prefix">Assistant Message Prefix</small>3342 <small data-i18n="Assistant Prefix">Assistant Message Prefix</small>
@@ -3349,7 +3349,7 @@
3349 </div>3349 </div>
3350 </details>3350 </details>
3351 <details>3351 <details>
3352 <summary>System Message Sequences</summary>3352 <summary data-i18n="System Message Sequences">System Message Sequences</summary>
3353 <div class="flex-container">3353 <div class="flex-container">
3354 <div class="flexAuto" id="instruct_system_sequence_block" title="Inserted before a System (added by slash commands or extensions) message." data-i18n="[title]Inserted before a System (added by slash commands or extensions) message.">3354 <div class="flexAuto" id="instruct_system_sequence_block" title="Inserted before a System (added by slash commands or extensions) message." data-i18n="[title]Inserted before a System (added by slash commands or extensions) message.">
3355 <small data-i18n="System Prefix">System Message Prefix</small>3355 <small data-i18n="System Prefix">System Message Prefix</small>
@@ -3368,7 +3368,7 @@
3368 </div>3368 </div>
3369 </details>3369 </details>
3370 <details>3370 <details>
3371 <summary>System Prompt Sequences</summary>3371 <summary data-i18n="System Prompt Sequences">System Prompt Sequences</summary>
3372 <div class="flex-container">3372 <div class="flex-container">
3373 <div class="flexAuto" title="Inserted before a System prompt." data-i18n="[title]Inserted before a System prompt.">3373 <div class="flexAuto" title="Inserted before a System prompt." data-i18n="[title]Inserted before a System prompt.">
3374 <label for="instruct_system_sequence_prefix">3374 <label for="instruct_system_sequence_prefix">
@@ -4132,7 +4132,7 @@
4132 <input id="enable_auto_select_input" type="checkbox" />4132 <input id="enable_auto_select_input" type="checkbox" />
4133 <small data-i18n="Auto-select Input Text">Auto-select Input Text</small>4133 <small data-i18n="Auto-select Input Text">Auto-select Input Text</small>
4134 </label>4134 </label>
4135 <label class="checkbox_label alignItemsCenter" for="enable_md_hotkeys" title="Enable hotkeys for inserting markdown format characters in certain text input boxes. See '/help hotkeys'.">4135 <label class="checkbox_label alignItemsCenter" for="enable_md_hotkeys" data-i18n="[title]markdown_hotkeys_desc" title="Enable hotkeys for inserting markdown format characters in certain text input boxes. See '/help hotkeys'.">
4136 <input id="enable_md_hotkeys" type="checkbox" />4136 <input id="enable_md_hotkeys" type="checkbox" />
4137 <small>4137 <small>
4138 <span data-i18n="Markdown Hotkeys">Markdown Hotkeys</span>4138 <span data-i18n="Markdown Hotkeys">Markdown Hotkeys</span>
public/locales/ru-ru.json+56 -13
@@ -105,8 +105,8 @@
105 "API url": "URL-адрес API",105 "API url": "URL-адрес API",
106 "PygmalionAI/aphrodite-engine": "PygmalionAI/aphrodite-engine (Режим обёртки API OpenAI)",106 "PygmalionAI/aphrodite-engine": "PygmalionAI/aphrodite-engine (Режим обёртки API OpenAI)",
107 "Register a Horde account for faster queue times": "Заведите учетную запись Horde для ускорения генерации",107 "Register a Horde account for faster queue times": "Заведите учетную запись Horde для ускорения генерации",
108 "Adjust context size to worker capabilities": "Уточнить размер контекста в соответствии с возможностями рабочих машин",108 "Adjust context size to worker capabilities": "Подстраивать размер контекста под возможности рабочих машин",
109 "Adjust response length to worker capabilities": "Уточнить длинну ответа в соответствии с возможностями рабочих машин",109 "Adjust response length to worker capabilities": "Подстраивать длину ответа под возможности рабочих машин",
110 "API key": "API-ключ",110 "API key": "API-ключ",
111 "Tabby API key": "Tabby API-ключ",111 "Tabby API key": "Tabby API-ключ",
112 "Get it here:": "Получить здесь:",112 "Get it here:": "Получить здесь:",
@@ -132,9 +132,9 @@
132 "Novel AI Model": "Модель NovelAI",132 "Novel AI Model": "Модель NovelAI",
133 "Make sure you run it with": "Обязательно запускайте его с флагом",133 "Make sure you run it with": "Обязательно запускайте его с флагом",
134 "flag": "",134 "flag": "",
135 "API key (optional)": "Ключ API (опционально)",135 "API key (optional)": "Ключ API (необязательно)",
136 "Server url": "URL-адрес сервера",136 "Server url": "URL-адрес сервера",
137 "Custom model (optional)": "Пользовательская модель (опционально)",137 "Custom model (optional)": "Пользовательская модель (необязательно)",
138 "Bypass API status check": "Обход проверки статуса API",138 "Bypass API status check": "Обход проверки статуса API",
139 "Example: 127.0.0.1:5000": "Пример: http://127.0.0.1:5000",139 "Example: 127.0.0.1:5000": "Пример: http://127.0.0.1:5000",
140 "Legacy API (pre-OAI, no streaming)": "Устаревший API (до OAI, без стриминга)",140 "Legacy API (pre-OAI, no streaming)": "Устаревший API (до OAI, без стриминга)",
@@ -173,7 +173,7 @@
173 "Include Names": "Добавлять имена",173 "Include Names": "Добавлять имена",
174 "Force for Groups and Personas": "Также для групп и персон",174 "Force for Groups and Personas": "Также для групп и персон",
175 "System Prompt": "Системный промпт",175 "System Prompt": "Системный промпт",
176 "Instruct Mode Sequences": "Строки для Instruct-режима",176 "Instruct Sequences": "Строки для Instruct-режима",
177 "Stop Sequence": "Стоп-строка",177 "Stop Sequence": "Стоп-строка",
178 "Context Formatting": "Форматирование контекста",178 "Context Formatting": "Форматирование контекста",
179 "(Saved to Context Template)": "(Сохраняется в шаблоне контекста)",179 "(Saved to Context Template)": "(Сохраняется в шаблоне контекста)",
@@ -561,7 +561,7 @@
561 "Example: [{{user}} is a 28-year-old Romanian cat girl.]": "Пример:\n [{{user}} is a 28-year-old Romanian cat girl.]",561 "Example: [{{user}} is a 28-year-old Romanian cat girl.]": "Пример:\n [{{user}} is a 28-year-old Romanian cat girl.]",
562 "Toggle grid view": "Переключить вид сетки",562 "Toggle grid view": "Переключить вид сетки",
563 "Add to Favorites": "Добавить в Избранное",563 "Add to Favorites": "Добавить в Избранное",
564 "Advanced Definition": "Расширенное определение",564 "Advanced Definition": "Расширенное описание",
565 "Character Lore": "Лор персонажа",565 "Character Lore": "Лор персонажа",
566 "Export and Download": "Экспортировать и скачать",566 "Export and Download": "Экспортировать и скачать",
567 "Duplicate Character": "Дублировать персонажа",567 "Duplicate Character": "Дублировать персонажа",
@@ -737,12 +737,12 @@
737 "System Prompt Prefix": "Префикс системного промпта",737 "System Prompt Prefix": "Префикс системного промпта",
738 "System Prompt Suffix": "Постфикс системного промпта",738 "System Prompt Suffix": "Постфикс системного промпта",
739 "Chat Messages Wrapping": "Обрамление для сообщений в чате",739 "Chat Messages Wrapping": "Обрамление для сообщений в чате",
740 "User Message Prefix": "Префикс сообщения пользователя",740 "User Prefix": "Префикс сообщения пользователя",
741 "User Message Suffix": "Постфикс сообщения пользователя",741 "User Suffix": "Постфикс сообщения пользователя",
742 "Assistant Message Prefix": "Префикс сообщения ассистента",742 "Assistant Prefix": "Префикс сообщения ассистента",
743 "Assistant Message Suffix": "Постфикс сообщения ассистента",743 "Assistant Suffix": "Постфикс сообщения ассистента",
744 "System Message Prefix": "Префикс сообщения системы",744 "System Prefix": "Префикс сообщения системы",
745 "System Message Suffix": "Постфикс сообщения системы",745 "System Suffix": "Постфикс сообщения системы",
746 "System same as User": "Для системы то же самое, что и для пользователя",746 "System same as User": "Для системы то же самое, что и для пользователя",
747 "Misc. Sequences": "Прочие строки",747 "Misc. Sequences": "Прочие строки",
748 "First Assistant Prefix": "Первый префикс ассистента",748 "First Assistant Prefix": "Первый префикс ассистента",
@@ -1704,5 +1704,48 @@
1704 "chat_rename_1": "Введите новое имя чата:",1704 "chat_rename_1": "Введите новое имя чата:",
1705 "chat_rename_2": "!!Не используйте имя уже существующего файла, это приведёт к ошибке!!",1705 "chat_rename_2": "!!Не используйте имя уже существующего файла, это приведёт к ошибке!!",
1706 "chat_rename_3": "Будут разрушены связи между чатами-чекпоинтами.",1706 "chat_rename_3": "Будут разрушены связи между чатами-чекпоинтами.",
1707 "chat_rename_4": "Расширение '.jsonl' дописывать не нужно."1707 "chat_rename_4": "Расширение '.jsonl' дописывать не нужно.",
1708 "If you're connected to an API, try asking me something!": "Есть соединение с API? Напишите мне что-нибудь!",
1709 "Connection Profile": "Профиль соединения",
1710 "View connection profile details": "Посмотреть параметры профиля соединения",
1711 "Create a new connection profile": "Создать новый профиль соединения",
1712 "Update a connection profile": "Обновить профиль соединения",
1713 "Rename a connection profile": "Переименовать профиль соединения",
1714 "Reload a connection profile": "Перезагрузить профиль соединения",
1715 "Delete a connection profile": "Удалить профиль соединения",
1716 "No profile selected": "Профиль не выбран",
1717 "Creating a Connection Profile": "Создать профиль соединения",
1718 "Settings Preset": "Пресет настроек",
1719 "Model": "Модель",
1720 "Proxy Preset": "Пресет для прокси",
1721 "Enter a name:": "Введите название:",
1722 "Are you sure you want to delete the selected profile?": "Вы точно хотите удалить выбранный профиль?",
1723 "instruct_enabled": "Включить Instruct-режим",
1724 "Instruct Template": "Шаблон Instruct-режима",
1725 "instruct_template_activation_regex_desc": "Автоматически активировать этот шаблон в момент подключения к API или выбора модели, если название модели соответствует этому рег. выражению.",
1726 "instruct_bind_to_context": "При включении этой опции Шаблон контекста будет выбираться, исходя из выбранного в текущий момент Шаблона Instruct-режима, либо по вашему желанию.",
1727 "Master Import": "Глоб. импорт",
1728 "Import Advanced Formatting settings": "Импорт настроек Расширенного форматирования\nТакже принимает файлы старого формата с Шаблонами контекста и Шаблонами Instruct-режима.",
1729 "Master Export": "Глоб. экспорт",
1730 "Export Advanced Formatting settings": "Экспорт настроек Расширенного форматирования",
1731 "Select your current System Prompt": "Выберите текущий системный промпт",
1732 "Prompt Content": "Текст промпта",
1733 "Update current prompt": "Обновить текущий промпт",
1734 "Save prompt as": "Сохранить как...",
1735 "Import template": "Импорт шаблона",
1736 "Export template": "Экспорт шаблона",
1737 "Restore current prompt": "Восстановить текущий промпт",
1738 "comma delimited,no spaces between": "через запятую,без пробелов в промежутках",
1739 "User Message Sequences": "Строки для сообщений пользователя",
1740 "Assistant Message Sequences": "Строки для сообщений ассистента",
1741 "System Message Sequences": "Строки для сообщений системы",
1742 "System Prompt Sequences": "Строки для системного промпта",
1743 "sysprompt_enabled": "Вкл/выкл системный промпт",
1744 "Are you sure you want to delete this alternate greeting?": "Вы точно хотите удалить этот вариант?",
1745 "Any contents here will replace the default Post-History Instructions used for this character. (v2 spec: post_history_instructions)": "Содержимое этого поля заменит стандартные Инструкции после истории, применяемые для этого персонажа. (v2 spec: post_history_instructions)",
1746 "None (disabled)": "Нигде (откл.)",
1747 "Markdown Hotkeys": "Горячие клавиши для разметки",
1748 "markdown_hotkeys_desc": "Включить горячие клавиши для вставки символов разметки в некоторых полях ввода. См. '/help hotkeys'.",
1749 "Save and Update": "Сохранить и обновить",
1750 "Profile name:": "Название профиля:"
1708}1751}
public/script.js+1 -1
@@ -7877,7 +7877,7 @@ function addAlternateGreeting(template, greeting, index, getArray, popup) {
7877 event.preventDefault();7877 event.preventDefault();
7878 event.stopPropagation();7878 event.stopPropagation();
78797879
7880 if (confirm('Are you sure you want to delete this alternate greeting?')) {7880 if (confirm(t`Are you sure you want to delete this alternate greeting?`)) {
7881 const array = getArray();7881 const array = getArray();
7882 array.splice(index, 1);7882 array.splice(index, 1);
78837883
public/scripts/extensions/connection-manager/edit.html+1 -1
@@ -8,5 +8,5 @@
8 </label>8 </label>
9 {{/each}}9 {{/each}}
10 </div>10 </div>
11 <h3>Profile name:</h3>11 <h3 data-i18n="Profile name:">Profile name:</h3>
12</div>12</div>
public/scripts/extensions/connection-manager/index.js+4 -4
@@ -10,6 +10,7 @@ import { enumTypes, SlashCommandEnumValue } from '../../slash-commands/SlashComm
10import { SlashCommandParser } from '../../slash-commands/SlashCommandParser.js';10import { SlashCommandParser } from '../../slash-commands/SlashCommandParser.js';
11import { SlashCommandScope } from '../../slash-commands/SlashCommandScope.js';11import { SlashCommandScope } from '../../slash-commands/SlashCommandScope.js';
12import { collapseSpaces, getUniqueName, isFalseBoolean, uuidv4 } from '../../utils.js';12import { collapseSpaces, getUniqueName, isFalseBoolean, uuidv4 } from '../../utils.js';
13import { t } from '../../i18n.js';
1314
14const MODULE_NAME = 'connection-manager';15const MODULE_NAME = 'connection-manager';
15const NONE = '<None>';16const NONE = '<None>';
@@ -284,7 +285,7 @@ async function deleteConnectionProfile() {
284 }285 }
285286
286 const name = extension_settings.connectionManager.profiles[index].name;287 const name = extension_settings.connectionManager.profiles[index].name;
287 const confirm = await Popup.show.confirm('Are you sure you want to delete the selected profile?', name);288 const confirm = await Popup.show.confirm(t`Are you sure you want to delete the selected profile?`, name);
288289
289 if (!confirm) {290 if (!confirm) {
290 return;291 return;
@@ -398,7 +399,7 @@ async function renderDetailsContent(detailsContent) {
398 const template = await renderExtensionTemplateAsync(MODULE_NAME, 'view', templateParams);399 const template = await renderExtensionTemplateAsync(MODULE_NAME, 'view', templateParams);
399 detailsContent.innerHTML = template;400 detailsContent.innerHTML = template;
400 } else {401 } else {
401 detailsContent.textContent = 'No profile selected';402 detailsContent.textContent = t`No profile selected`;
402 }403 }
403}404}
404405
@@ -518,7 +519,6 @@ async function renderDetailsContent(detailsContent) {
518 console.log('No profile selected');519 console.log('No profile selected');
519 return;520 return;
520 }521 }
521
522 if (!Array.isArray(profile.exclude)) {522 if (!Array.isArray(profile.exclude)) {
523 profile.exclude = [];523 profile.exclude = [];
524 }524 }
@@ -534,7 +534,7 @@ async function renderDetailsContent(detailsContent) {
534 const template = $(await renderExtensionTemplateAsync(MODULE_NAME, 'edit', { name: profile.name, settings }));534 const template = $(await renderExtensionTemplateAsync(MODULE_NAME, 'edit', { name: profile.name, settings }));
535 const newName = await callGenericPopup(template, POPUP_TYPE.INPUT, profile.name, {535 const newName = await callGenericPopup(template, POPUP_TYPE.INPUT, profile.name, {
536 customButtons: [{536 customButtons: [{
537 text: 'Save and Update',537 text: t`Save and Update`,
538 classes: ['popup-button-ok'],538 classes: ['popup-button-ok'],
539 result: POPUP_RESULT.AFFIRMATIVE,539 result: POPUP_RESULT.AFFIRMATIVE,
540 action: () => {540 action: () => {