release: подстановка переводится, ворота стерегут голую строку

This commit is contained in:
public-repo-gate
2026-09-07 18:37:16 +03:00
parent 327b1af5ba
commit 1cb8155e79
20 changed files with 4238 additions and 3827 deletions
+15
View File
@@ -91,6 +91,21 @@ public func irizCurrentLanguage(defaults: UserDefaults = .standard) -> IrizLangu
/// `ru` - не «запасной вариант», а ОРИГИНАЛ: продукт написан по-русски, и в
/// коде стоит русская строка. Если перевода нет, человек видит оригинал, а не
/// голый ключ вида `settings.plate.size`.
/// Перевод по ключу с подстановкой.
///
/// Нужен затем, что `L()` берёт готовую строку, а треть текста продукта строится
/// из частей: «Клавиша диктовки: ⌘», «Пример 2», «Ошибка настроек: …». Такие
/// строки нельзя перевести целиком - в таблице должен лежать ОБРАЗЕЦ с местами
/// подстановки, иначе перевод либо ломает порядок частей, либо не делается
/// вовсе. К 07.09.2026 непереведёнными по этой причине оставались 37 строк,
/// почти все - подписи для голосового доступа.
///
/// Места подстановки в образце: `%@` для строки, `%d` для числа. Порядок частей
/// у языка свой, поэтому в переводе разрешён явный номер довода: `%1$@`.
public func Lf(_ key: String, _ original: String, _ arguments: CVarArg...) -> String {
String(format: L(key, original), arguments: arguments)
}
/// Бандл таблицы перевода, найденный БЕЗ УЧЁТА РЕГИСТРА.
///
/// Прямой поиск по имени папки ломается о SwiftPM: он кладёт `zh-Hans.lproj`
@@ -294,3 +294,41 @@
"mode.paused" = "Paused";
"history.windowTitle" = "dictations";
"common.close" = "Close";
"common.warning.a11y" = "Warning: %@";
"dictionary.delete.a11y" = "Delete replacement %d";
"dictionary.heard.a11y" = "What was heard, replacement %d";
"dictionary.replacement.a11y" = "What to change it to, replacement %d";
"files.removeFromQueue.a11y" = "Take %@ out of the queue";
"firstrun.dictationKey.a11y" = "Dictation key: %@";
"firstrun.translateKey.a11y" = "Translation key: %@";
"history.window.a11y" = "%@, %d dictations";
"keys.action.a11y" = "Action: %@";
"keys.cancelRecording.a11y" = "Cancel recording the shortcut";
"keys.error.a11y" = "Shortcut error: %@";
"keys.pressCombination.a11y" = "Press the shortcut you want";
"keys.row.a11y" = "%@: %@. Record a new shortcut";
"layout.mode.a11y" = "What the %@ mode does: %@";
"learning.toast.title" = "Fixed after pasting";
"menu.promptMode.a11y" = "Prompt mode is on, %@";
"prompt.appProfile.a11y" = "Profile for %@";
"prompt.appProfile.remove.a11y" = "Take %@ off the list";
"prompt.appProfiles.explainer" = "Dictate into a code editor and the prompt is built for Codex; dictate into mail and it is the general one. %@ looks only at which application is in front: no window, no field and no text of another program is ever read. The application is asked for once, at the moment you press the key, and forgotten straight away: what goes to disk and to the log is the chosen profile, not the name of the program. Applications that are not on the list are not affected: they get the default profile.";
"prompt.example" = "Example %d";
"prompt.example.delete.a11y" = "Delete example %d";
"prompt.example.spoken.a11y" = "Example %d: how it was said out loud";
"prompt.example.wanted.a11y" = "Example %d: what prompt is wanted";
"prompt.examplesEnough" = "That is enough examples: past %d they stop teaching the shape and start dictating the content.";
"prompt.instructionsLimit" = "Up to %d characters. This is a preference about SHAPE, not a licence to invent facts: the bans in the contract win.";
"settings.agentFound" = "Found: %@";
"settings.agentFound.a11y" = "The agent was found. %@";
"settings.agentNote.a11y" = "Worth knowing about this agent: %@";
"settings.dataDestination.a11y" = "Where the data goes: %@";
"settings.error.a11y" = "Settings error: %@";
"settings.launchAtLogin.a11y" = "Start %@ when you log in";
"settings.rescue.explainer" = "The paste did not reach the field, so %@ raises a window with the finished text: copy it or paste it again, Esc closes. When the direct typing fallback worked, there will be no window: the text is most likely already in the field, and offering to paste it a second time is more dangerous than staying quiet.";
"settings.rescue.explainer.a11y" = "If the paste did not reach the field, %@ shows a window with the finished text: copy it or paste it again, Esc closes. With the direct typing fallback no window is raised: the text is most likely already in the field";
"snippets.delete.a11y" = "Delete snippet %d";
"snippets.phrase.a11y" = "Snippet phrase %d";
"snippets.text.a11y" = "Snippet text %d";
@@ -14,3 +14,41 @@
"mode.paused" = "Пауза";
"history.windowTitle" = "надиктовки";
"common.close" = "Закрыть";
"common.warning.a11y" = "Предупреждение: %@";
"dictionary.delete.a11y" = "Удалить замену %d";
"dictionary.heard.a11y" = "Как распозналось, замена %d";
"dictionary.replacement.a11y" = "На что менять, замена %d";
"files.removeFromQueue.a11y" = "Убрать %@ из очереди";
"firstrun.dictationKey.a11y" = "Клавиша диктовки: %@";
"firstrun.translateKey.a11y" = "Клавиша перевода: %@";
"history.window.a11y" = "%@, надиктовок %d";
"keys.action.a11y" = "Действие: %@";
"keys.cancelRecording.a11y" = "Отменить запись сочетания";
"keys.error.a11y" = "Ошибка сочетаний: %@";
"keys.pressCombination.a11y" = "Нажмите нужное сочетание клавиш";
"keys.row.a11y" = "%@: %@. Записать новое сочетание";
"layout.mode.a11y" = "Что делает режим %@: %@";
"learning.toast.title" = "Поправили после вставки";
"menu.promptMode.a11y" = "Промпт-режим включён, %@";
"prompt.appProfile.a11y" = "Профиль для приложения %@";
"prompt.appProfile.remove.a11y" = "Убрать приложение %@ из списка";
"prompt.appProfiles.explainer" = "Диктуете в редактор кода — промпт собирается для Codex, диктуете в почту — универсальный. %@ смотрит только на то, какое приложение сейчас спереди: ни окно, ни поле, ни текст чужой программы не читаются. Приложение спрашивается один раз, в момент нажатия, и сразу забывается — на диск и в журнал уходит выбранный профиль, а не имя программы. Приложений, которых нет в списке, это не касается: им достаётся профиль по умолчанию.";
"prompt.example" = "Пример %d";
"prompt.example.delete.a11y" = "Удалить пример %d";
"prompt.example.spoken.a11y" = "Пример %d: как сказано вслух";
"prompt.example.wanted.a11y" = "Пример %d: какой промпт нужен";
"prompt.examplesEnough" = "Примеров хватит: больше %d уже не учат форме, а диктуют содержание.";
"prompt.instructionsLimit" = "До %d символов. Это предпочтение по ФОРМЕ, а не право выдумывать факты: запреты контракта сильнее.";
"settings.agentFound" = "Найден: %@";
"settings.agentFound.a11y" = "Агент найден. %@";
"settings.agentNote.a11y" = "Важно про этого агента: %@";
"settings.dataDestination.a11y" = "Куда уходят данные: %@";
"settings.error.a11y" = "Ошибка настроек: %@";
"settings.launchAtLogin.a11y" = "Запускать %@ при входе в систему";
"settings.rescue.explainer" = "Вставка не дошла до поля — %@ поднимает окно с готовым текстом: скопировать или вставить ещё раз, Esc — закрыть. Когда сработал запасной прямой ввод, окна не будет: там текст, скорее всего, уже в поле, и предлагать вставить его второй раз опаснее, чем промолчать.";
"settings.rescue.explainer.a11y" = "Если вставка не дошла до поля, %@ показывает окно с готовым текстом: скопировать или вставить ещё раз, Esc закрывает. При запасном прямом вводе окно не поднимается: текст скорее всего уже в поле";
"snippets.delete.a11y" = "Удалить заготовку %d";
"snippets.phrase.a11y" = "Фраза заготовки %d";
"snippets.text.a11y" = "Текст заготовки %d";
@@ -295,3 +295,41 @@
"mode.paused" = "暂停";
"history.windowTitle" = "口述记录";
"common.close" = "关闭";
"common.warning.a11y" = "警告:%@";
"dictionary.delete.a11y" = "删除第 %d 条替换";
"dictionary.heard.a11y" = "第 %d 条替换:听成了什么";
"dictionary.replacement.a11y" = "第 %d 条替换:换成什么";
"files.removeFromQueue.a11y" = "把 %@ 移出队列";
"firstrun.dictationKey.a11y" = "口述按键:%@";
"firstrun.translateKey.a11y" = "翻译按键:%@";
"history.window.a11y" = "%@,%d 条口述记录";
"keys.action.a11y" = "动作:%@";
"keys.cancelRecording.a11y" = "取消录制快捷键";
"keys.error.a11y" = "快捷键出错:%@";
"keys.pressCombination.a11y" = "按下你想要的组合键";
"keys.row.a11y" = "%@:%@。录制新的快捷键";
"layout.mode.a11y" = "%@ 模式做什么:%@";
"learning.toast.title" = "粘贴后做了修正";
"menu.promptMode.a11y" = "提示词模式已开启,%@";
"prompt.appProfile.a11y" = "%@ 的配置";
"prompt.appProfile.remove.a11y" = "把 %@ 从列表里移除";
"prompt.appProfiles.explainer" = "在代码编辑器里口述,提示词就按 Codex 的样子组织;在邮件里口述,就用通用的那一套。%@ 只看当前哪个程序在最前面:不读窗口,不读输入框,也不读别的程序里的文字。程序名只在你按键的那一刻问一次,随即忘掉:写进磁盘和日志的是选中的配置,不是程序的名字。不在列表里的程序不受影响,它们用默认配置。";
"prompt.example" = "示例 %d";
"prompt.example.delete.a11y" = "删除示例 %d";
"prompt.example.spoken.a11y" = "示例 %d:话是怎么说的";
"prompt.example.wanted.a11y" = "示例 %d:想要什么样的提示词";
"prompt.examplesEnough" = "示例够了:超过 %d 条就不再是在教形式,而是在规定内容了。";
"prompt.instructionsLimit" = "最多 %d 个字。这是对形式的偏好,不是编造事实的许可:约定里的禁令更大。";
"settings.agentFound" = "已找到:%@";
"settings.agentFound.a11y" = "已找到这个智能体。%@";
"settings.agentNote.a11y" = "关于这个智能体,需要知道:%@";
"settings.dataDestination.a11y" = "数据去了哪里:%@";
"settings.error.a11y" = "设置出错:%@";
"settings.launchAtLogin.a11y" = "登录时启动 %@";
"settings.rescue.explainer" = "粘贴没有进入输入框,%@ 就会弹出一个带着现成文字的窗口:拷走,或者再粘一次,Esc 关闭。如果备用的直接输入起了作用,窗口就不会出现:文字多半已经在框里了,再劝你粘一次比不出声更危险。";
"settings.rescue.explainer.a11y" = "如果粘贴没有进入输入框,%@ 会显示一个带着现成文字的窗口:拷走,或者再粘一次,Esc 关闭。用备用的直接输入时不弹窗:文字多半已经在框里了";
"snippets.delete.a11y" = "删除第 %d 条片段";
"snippets.phrase.a11y" = "第 %d 条片段的触发词";
"snippets.text.a11y" = "第 %d 条片段的正文";