Update tl

bb766494786a4c64f0949c2fa9740d699e21b50a

Yokayo <nonameutubecomm@gmail.com>

5 files changed, +69 -23Showing whitespace changes
public/index.html+6 -6
@@ -3275,7 +3275,7 @@
32753275 <label>
32763276 <small>
32773277 <span data-i18n="Activation Regex">Activation Regex</span>
32783278 <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>
32793279 </small>
32803280 </label>
32813281 <div>
@@ -3316,7 +3316,7 @@
33163316 </h4>
33173317 <!-- We keep one auto-open so the user would know what is going on in the picked template -->
33183318 <details open>
33193319 <summary data-i18n="User Message Sequences">User Message Sequences</summary>
33203320 <div class="flex-container">
33213321 <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.">
33223322 <small data-i18n="User Prefix">User Message Prefix</small>
@@ -3329,7 +3329,7 @@
33293329 </div>
33303330 </details>
33313331 <details open>
33323332 <summary data-i18n="Assistant Message Sequences">Assistant Message Sequences</summary>
33333333 <div class="flex-container">
33343334 <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.">
33353335 <small data-i18n="Assistant Prefix">Assistant Message Prefix</small>
@@ -3342,7 +3342,7 @@
33423342 </div>
33433343 </details>
33443344 <details>
33453345 <summary data-i18n="System Message Sequences">System Message Sequences</summary>
33463346 <div class="flex-container">
33473347 <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.">
33483348 <small data-i18n="System Prefix">System Message Prefix</small>
@@ -3361,7 +3361,7 @@
33613361 </div>
33623362 </details>
33633363 <details>
33643364 <summary data-i18n="System Prompt Sequences">System Prompt Sequences</summary>
33653365 <div class="flex-container">
33663366 <div class="flexAuto" title="Inserted before a System prompt." data-i18n="[title]Inserted before a System prompt.">
33673367 <label for="instruct_system_sequence_prefix">
@@ -4125,7 +4125,7 @@
41254125 <input id="enable_auto_select_input" type="checkbox" />
41264126 <small data-i18n="Auto-select Input Text">Auto-select Input Text</small>
41274127 </label>
41284128 <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'.">
41294129 <input id="enable_md_hotkeys" type="checkbox" />
41304130 <small>
41314131 <span data-i18n="Markdown Hotkeys">Markdown Hotkeys</span>
public/locales/ru-ru.json+55 -13
@@ -105,8 +105,8 @@
105105 "API url": "URL-адрес API",
106106 "PygmalionAI/aphrodite-engine": "PygmalionAI/aphrodite-engine (Режим обёртки API OpenAI)",
107107 "Register a Horde account for faster queue times": "Заведите учетную запись Horde для ускорения генерации",
108108 "Adjust context size to worker capabilities": "УточнитьПодстраивать размер контекста в соответствии спод возможностямивозможности рабочих машин",
109109 "Adjust response length to worker capabilities": "УточнитьПодстраивать длиннудлину ответа в соответствии спод возможностямивозможности рабочих машин",
110110 "API key": "API-ключ",
111111 "Tabby API key": "Tabby API-ключ",
112112 "Get it here:": "Получить здесь:",
@@ -132,9 +132,9 @@
132132 "Novel AI Model": "Модель NovelAI",
133133 "Make sure you run it with": "Обязательно запускайте его с флагом",
134134 "flag": "",
135135 "API key (optional)": "Ключ API (опциональнонеобязательно)",
136136 "Server url": "URL-адрес сервера",
137137 "Custom model (optional)": "Пользовательская модель (опциональнонеобязательно)",
138138 "Bypass API status check": "Обход проверки статуса API",
139139 "Example: 127.0.0.1:5000": "Пример: http://127.0.0.1:5000",
140140 "Legacy API (pre-OAI, no streaming)": "Устаревший API (до OAI, без стриминга)",
@@ -173,7 +173,7 @@
173173 "Include Names": "Добавлять имена",
174174 "Force for Groups and Personas": "Также для групп и персон",
175175 "System Prompt": "Системный промпт",
176176 "Instruct Mode Sequences": "Строки для Instruct-режима",
177177 "Stop Sequence": "Стоп-строка",
178178 "Context Formatting": "Форматирование контекста",
179179 "(Saved to Context Template)": "(Сохраняется в шаблоне контекста)",
@@ -561,7 +561,7 @@
561561 "Example: [{{user}} is a 28-year-old Romanian cat girl.]": "Пример:\n [{{user}} is a 28-year-old Romanian cat girl.]",
562562 "Toggle grid view": "Переключить вид сетки",
563563 "Add to Favorites": "Добавить в Избранное",
564564 "Advanced Definition": "Расширенное определениеописание",
565565 "Character Lore": "Лор персонажа",
566566 "Export and Download": "Экспортировать и скачать",
567567 "Duplicate Character": "Дублировать персонажа",
@@ -737,12 +737,12 @@
737737 "System Prompt Prefix": "Префикс системного промпта",
738738 "System Prompt Suffix": "Постфикс системного промпта",
739739 "Chat Messages Wrapping": "Обрамление для сообщений в чате",
740740 "User Message Prefix": "Префикс сообщения пользователя",
741741 "User Message Suffix": "Постфикс сообщения пользователя",
742742 "Assistant Message Prefix": "Префикс сообщения ассистента",
743743 "Assistant Message Suffix": "Постфикс сообщения ассистента",
744744 "System Message Prefix": "Префикс сообщения системы",
745745 "System Message Suffix": "Постфикс сообщения системы",
746746 "System same as User": "Для системы то же самое, что и для пользователя",
747747 "Misc. Sequences": "Прочие строки",
748748 "First Assistant Prefix": "Первый префикс ассистента",
@@ -1704,5 +1704,47 @@
17041704 "chat_rename_1": "Введите новое имя чата:",
17051705 "chat_rename_2": "!!Не используйте имя уже существующего файла, это приведёт к ошибке!!",
17061706 "chat_rename_3": "Будут разрушены связи между чатами-чекпоинтами.",
17071707 "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+ "Enter a new name": "Введите новое название",
1723+ "Are you sure you want to delete the selected profile?": "Вы точно хотите удалить выбранный профиль?",
1724+ "instruct_enabled": "Включить Instruct-режим",
1725+ "Instruct Template": "Шаблон Instruct-режима",
1726+ "instruct_template_activation_regex_desc": "Автоматически активировать этот шаблон в момент подключения к API или выбора модели, если название модели соответствует этому рег. выражению.",
1727+ "instruct_bind_to_context": "При включении этой опции Шаблон контекста будет выбираться, исходя из выбранного в текущий момент Шаблона Instruct-режима, либо по вашему желанию.",
1728+ "Master Import": "Глоб. импорт",
1729+ "Import Advanced Formatting settings": "Импорт настроек Расширенного форматирования\nТакже принимает файлы старого формата с Шаблонами контекста и Шаблонами Instruct-режима.",
1730+ "Master Export": "Глоб. экспорт",
1731+ "Export Advanced Formatting settings": "Экспорт настроек Расширенного форматирования",
1732+ "Select your current System Prompt": "Выберите текущий системный промпт",
1733+ "Prompt Content": "Текст промпта",
1734+ "Update current prompt": "Обновить текущий промпт",
1735+ "Save prompt as": "Сохранить как...",
1736+ "Import template": "Импорт шаблона",
1737+ "Export template": "Экспорт шаблона",
1738+ "Restore current prompt": "Восстановить текущий промпт",
1739+ "comma delimited,no spaces between": "через запятую,без пробелов в промежутках",
1740+ "User Message Sequences": "Строки для сообщений пользователя",
1741+ "Assistant Message Sequences": "Строки для сообщений ассистента",
1742+ "System Message Sequences": "Строки для сообщений системы",
1743+ "System Prompt Sequences": "Строки для системного промпта",
1744+ "sysprompt_enabled": "Вкл/выкл системный промпт",
1745+ "Are you sure you want to delete this alternate greeting?": "Вы точно хотите удалить этот вариант?",
1746+ "Any contents here will replace the default Post-History Instructions used for this character. (v2 spec: post_history_instructions)": "Содержимое этого поля заменит стандартные Инструкции после истории, применяемые для этого персонажа. (v2 spec: post_history_instructions)",
1747+ "None (disabled)": "Нигде (откл.)",
1748+ "Markdown Hotkeys": "Горячие клавиши для разметки",
1749+ "markdown_hotkeys_desc": "Включить горячие клавиши для вставки символов разметки в некоторых полях ввода. См. '/help hotkeys'."
17081750}
public/script.js+1 -1
@@ -7853,7 +7853,7 @@ function addAlternateGreeting(template, greeting, index, getArray) {
78537853 }).val(greeting);
78547854 greetingBlock.find('.greeting_index').text(index + 1);
78557855 greetingBlock.find('.delete_alternate_greeting').on('click', async function () {
78567856 if (confirm('t`Are you sure you want to delete this alternate greeting?'`)) {
78577857 const array = getArray();
78587858 array.splice(index, 1);
78597859 // We need to reopen the popup to update the index numbers
public/scripts/extensions/connection-manager/index.js+4 -3
@@ -10,6 +10,7 @@ import { enumTypes, SlashCommandEnumValue } from '../../slash-commands/SlashComm
1010import { SlashCommandParser } from '../../slash-commands/SlashCommandParser.js';
1111import { SlashCommandScope } from '../../slash-commands/SlashCommandScope.js';
1212import { collapseSpaces, getUniqueName, isFalseBoolean, uuidv4 } from '../../utils.js';
13+import { t } from '../../i18n.js';
1314
1415const MODULE_NAME = 'connection-manager';
1516const NONE = '<None>';
@@ -250,7 +251,7 @@ async function deleteConnectionProfile() {
250251 }
251252
252253 const name = extension_settings.connectionManager.profiles[index].name;
253254 const confirm = await Popup.show.confirm('t`Are you sure you want to delete the selected profile?'`, name);
254255
255256 if (!confirm) {
256257 return;
@@ -360,7 +361,7 @@ async function renderDetailsContent(detailsContent) {
360361 const template = await renderExtensionTemplateAsync(MODULE_NAME, 'view', { profile: profileForDisplay });
361362 detailsContent.innerHTML = template;
362363 } else {
363364 detailsContent.textContent = 't`No profile selected'`;
364365 }
365366}
366367
@@ -481,7 +482,7 @@ async function renderDetailsContent(detailsContent) {
481482 return;
482483 }
483484
484485 const newName = await Popup.show.input('t`Enter a new name'`, null, profile.name, { rows: 2 });
485486 if (!newName) {
486487 return;
487488 }
public/scripts/i18n.js+3 -0
@@ -50,6 +50,9 @@ const observer = new MutationObserver(mutations => {
5050 * @returns {string} Translated and formatted string
5151 */
5252export function t(strings, ...values) {
53+ if (strings == 'Select Horde models') {
54+ console.log('strings = ' + strings);
55+ }
5356 let str = strings.reduce((result, string, i) => result + string + (values[i] !== undefined ? `\${${i}}` : ''), '');
5457 let translatedStr = translate(str);
5558