Add the command palette, Write formatting keys, and platform labels
Phase 5-2. - Ctrl+Shift+P opens the command palette: every workbench command with its shortcut, then the plugin commands (UI-048). - In Write, Ctrl+B, Ctrl+I, Ctrl+Shift+X, and Ctrl+Shift+H format the selection, and Ctrl+K inserts a Markdown link. The Format menu shows these shortcuts. - Ctrl+\ toggles the side pane. It matches the physical key on every keyboard layout. Ctrl+B now belongs to Write. - Help lists every shortcut in groups, open by default. The list comes from the command table. - src/lib/ui/shortcuts.ts writes shortcut labels for the platform: Ctrl+Shift+P on Windows and Linux, and the macOS symbols on a Mac. The catalog uses placeholders, so no translation contains "Ctrl". - 19 new catalog rows, and 10 rows converted to placeholders, in French, Japanese, and Simplified Chinese. - Docs: UI-048, the user guide keyboard tables, and a label rule in ui-design.md. New tests: layout/commands, tests/unit/ui/shortcuts.spec.ts, and new cases in workbenchKeys.spec.ts. Tests that read the old labels or pressed Ctrl+B for the side pane now use the new names and Ctrl+\. The smoke harness raises the resource timing buffer to 5000 entries. The new modules pushed the CodeMirror language module past the default 250 entries, so editor/markdownPaste could not find its URL.
This commit is contained in:
+60
-41
@@ -192,10 +192,10 @@ export const messageRows: [string, string, string, string][] = [
|
||||
"仅保存已更改的文件。"
|
||||
],
|
||||
[
|
||||
"Auto-save is off. Use Ctrl+S to save your changes.",
|
||||
"L’enregistrement automatique est désactivé. Utilisez Ctrl+S pour enregistrer.",
|
||||
"自動保存はオフです。Ctrl+Sで変更を保存してください。",
|
||||
"自动保存已关闭。请使用 Ctrl+S 保存更改。"
|
||||
"Auto-save is off. Use {shortcut} to save your changes.",
|
||||
"L’enregistrement automatique est désactivé. Utilisez {shortcut} pour enregistrer.",
|
||||
"自動保存はオフです。{shortcut}で変更を保存してください。",
|
||||
"自动保存已关闭。请使用 {shortcut} 保存更改。"
|
||||
],
|
||||
[
|
||||
"Disk conflicts keep your edits for review.",
|
||||
@@ -594,10 +594,10 @@ export const messageRows: [string, string, string, string][] = [
|
||||
"大纲"
|
||||
],
|
||||
[
|
||||
"Find in outline (Ctrl+F)",
|
||||
"Rechercher dans le plan (Ctrl+F)",
|
||||
"アウトライン内を検索 (Ctrl+F)",
|
||||
"在大纲中查找 (Ctrl+F)"
|
||||
"Find in outline ({shortcut})",
|
||||
"Rechercher dans le plan ({shortcut})",
|
||||
"アウトライン内を検索 ({shortcut})",
|
||||
"在大纲中查找 ({shortcut})"
|
||||
],
|
||||
[
|
||||
"Find in outline",
|
||||
@@ -888,10 +888,10 @@ export const messageRows: [string, string, string, string][] = [
|
||||
"添加书签"
|
||||
],
|
||||
[
|
||||
"New tab (Ctrl T)",
|
||||
"Nouvel onglet (Ctrl T)",
|
||||
"新しいタブ (Ctrl T)",
|
||||
"新建标签页 (Ctrl T)"
|
||||
"New tab ({shortcut})",
|
||||
"Nouvel onglet ({shortcut})",
|
||||
"新しいタブ ({shortcut})",
|
||||
"新建标签页 ({shortcut})"
|
||||
],
|
||||
[
|
||||
"New browser tab",
|
||||
@@ -948,16 +948,16 @@ export const messageRows: [string, string, string, string][] = [
|
||||
"无工作区"
|
||||
],
|
||||
[
|
||||
"Help and about (F1)",
|
||||
"Aide et à propos (F1)",
|
||||
"ヘルプと情報 (F1)",
|
||||
"帮助与关于 (F1)"
|
||||
"Help and about ({shortcut})",
|
||||
"Aide et à propos ({shortcut})",
|
||||
"ヘルプと情報 ({shortcut})",
|
||||
"帮助与关于 ({shortcut})"
|
||||
],
|
||||
[
|
||||
"Settings (Ctrl+,)",
|
||||
"Paramètres (Ctrl+,)",
|
||||
"設定 (Ctrl+,)",
|
||||
"设置 (Ctrl+,)"
|
||||
"Settings ({shortcut})",
|
||||
"Paramètres ({shortcut})",
|
||||
"設定 ({shortcut})",
|
||||
"设置 ({shortcut})"
|
||||
],
|
||||
[
|
||||
"Save a copy",
|
||||
@@ -1590,22 +1590,22 @@ export const messageRows: [string, string, string, string][] = [
|
||||
"使用文件夹按钮打开或创建工作区。笔记和脚本以普通文件形式存储在磁盘上。"
|
||||
],
|
||||
[
|
||||
"Use the + beside the tabs for a new tab. Press Ctrl+N to create a file, or Ctrl+P to find one.",
|
||||
"Utilisez le + près des onglets pour créer un onglet. Ctrl+N crée un fichier et Ctrl+P en recherche un.",
|
||||
"タブの横の+で新しいタブを開きます。Ctrl+Nでファイルを作成し、Ctrl+Pで検索します。",
|
||||
"点击标签页旁的 + 新建标签页。按 Ctrl+N 创建文件,或按 Ctrl+P 查找文件。"
|
||||
"Use the + beside the tabs for a new tab. Press {newFile} to create a file, or {quickOpen} to find one.",
|
||||
"Utilisez le + près des onglets pour créer un onglet. {newFile} crée un fichier et {quickOpen} en recherche un.",
|
||||
"タブの横の+で新しいタブを開きます。{newFile}でファイルを作成し、{quickOpen}で検索します。",
|
||||
"点击标签页旁的 + 新建标签页。按 {newFile} 创建文件,或按 {quickOpen} 查找文件。"
|
||||
],
|
||||
[
|
||||
"Press Ctrl+E to switch between writing and source editing. Use the terminal button to work with a shell beside your files.",
|
||||
"Ctrl+E alterne entre rédaction et code source. Le bouton de terminal ouvre un shell à côté de vos fichiers.",
|
||||
"Ctrl+Eで文章編集とソース編集を切り替えます。ターミナルボタンでファイルと並べてシェルを操作できます。",
|
||||
"按 Ctrl+E 切换写作和源码编辑。使用终端按钮在文件旁操作命令行。"
|
||||
"Press {shortcut} to switch between writing and source editing. Use the terminal button to work with a shell beside your files.",
|
||||
"{shortcut} alterne entre rédaction et code source. Le bouton de terminal ouvre un shell à côté de vos fichiers.",
|
||||
"{shortcut}で文章編集とソース編集を切り替えます。ターミナルボタンでファイルと並べてシェルを操作できます。",
|
||||
"按 {shortcut} 切换写作和源码编辑。使用终端按钮在文件旁操作命令行。"
|
||||
],
|
||||
[
|
||||
"Auto-save saves changed files at the interval in Settings → General. Ctrl+S saves the active file immediately.",
|
||||
"L’enregistrement automatique suit l’intervalle dans Paramètres → Général. Ctrl+S enregistre immédiatement le fichier actif.",
|
||||
"自動保存は「設定 → 一般」の間隔で変更を保存します。Ctrl+Sで現在のファイルをすぐに保存します。",
|
||||
"自动保存按照“设置 → 常规”中的间隔保存更改。Ctrl+S 可立即保存当前文件。"
|
||||
"Auto-save saves changed files at the interval in Settings → General. {shortcut} saves the active file immediately.",
|
||||
"L’enregistrement automatique suit l’intervalle dans Paramètres → Général. {shortcut} enregistre immédiatement le fichier actif.",
|
||||
"自動保存は「設定 → 一般」の間隔で変更を保存します。{shortcut}で現在のファイルをすぐに保存します。",
|
||||
"自动保存按照“设置 → 常规”中的间隔保存更改。{shortcut} 可立即保存当前文件。"
|
||||
],
|
||||
[
|
||||
"If another app changes a file, RuneStone keeps your edits and offers both versions for review.",
|
||||
@@ -1782,10 +1782,10 @@ export const messageRows: [string, string, string, string][] = [
|
||||
"RuneStone 浏览器"
|
||||
],
|
||||
[
|
||||
"New browser tab (Ctrl T)",
|
||||
"Nouvel onglet du navigateur (Ctrl T)",
|
||||
"新しいブラウザータブ (Ctrl T)",
|
||||
"新建浏览器标签页 (Ctrl T)"
|
||||
"New browser tab ({shortcut})",
|
||||
"Nouvel onglet du navigateur ({shortcut})",
|
||||
"新しいブラウザータブ ({shortcut})",
|
||||
"新建浏览器标签页 ({shortcut})"
|
||||
],
|
||||
[
|
||||
"Open link in new tab",
|
||||
@@ -2700,10 +2700,10 @@ export const messageRows: [string, string, string, string][] = [
|
||||
"第一行是 Markdown 表头"
|
||||
],
|
||||
[
|
||||
"Clipboard unavailable. Use Ctrl+C to copy.",
|
||||
"Presse-papiers indisponible. Utilisez Ctrl+C pour copier.",
|
||||
"クリップボードを使用できません。Ctrl+Cでコピーしてください。",
|
||||
"剪贴板不可用。请使用 Ctrl+C 复制。"
|
||||
"Clipboard unavailable. Use {shortcut} to copy.",
|
||||
"Presse-papiers indisponible. Utilisez {shortcut} pour copier.",
|
||||
"クリップボードを使用できません。{shortcut}でコピーしてください。",
|
||||
"剪贴板不可用。请使用 {shortcut} 复制。"
|
||||
],
|
||||
[
|
||||
"Open plugins folder",
|
||||
@@ -3491,7 +3491,26 @@ export const messageRows: [string, string, string, string][] = [
|
||||
["Text", "Texte", "テキスト", "文本"],
|
||||
["Accents", "Accents", "アクセント", "强调色"],
|
||||
["Selection and highlight", "Sélection et surlignage", "選択と強調表示", "选择和高亮"],
|
||||
["Status", "État", "ステータス", "状态"]
|
||||
["Status", "État", "ステータス", "状态"],
|
||||
["{modifier}+click to open link", "{modifier}+clic pour ouvrir le lien", "{modifier}+クリックでリンクを開く", "{modifier}+单击以打开链接"],
|
||||
["Clipboard unavailable here. Use {shortcut}.", "Presse-papiers indisponible ici. Utilisez {shortcut}.", "ここではクリップボードを使用できません。{shortcut}を使用してください。", "此处剪贴板不可用。请使用 {shortcut}。"],
|
||||
["Find a command", "Rechercher une commande", "コマンドを検索", "查找命令"],
|
||||
["Find a command…", "Rechercher une commande…", "コマンドを検索…", "查找命令…"],
|
||||
["No matching commands.", "Aucune commande correspondante.", "一致するコマンドはありません。", "没有匹配的命令。"],
|
||||
["{count} commands", "{count} commandes", "{count} 個のコマンド", "{count} 个命令"],
|
||||
["run", "exécuter", "実行", "运行"],
|
||||
["Show all commands", "Afficher toutes les commandes", "すべてのコマンドを表示", "显示所有命令"],
|
||||
["Switch between writing and source editing", "Alterner entre rédaction et code source", "文章編集とソース編集を切り替え", "在写作和源码编辑之间切换"],
|
||||
["Show or hide the terminal", "Afficher ou masquer le terminal", "ターミナルを表示または非表示", "显示或隐藏终端"],
|
||||
["Close the tab", "Fermer l’onglet", "タブを閉じる", "关闭标签页"],
|
||||
["Show or hide the side pane", "Afficher ou masquer le panneau latéral", "サイドパネルを表示または非表示", "显示或隐藏侧边栏"],
|
||||
["Rename the active file", "Renommer le fichier actif", "現在のファイルの名前を変更", "重命名当前文件"],
|
||||
["Next tab", "Onglet suivant", "次のタブ", "下一个标签页"],
|
||||
["Previous tab", "Onglet précédent", "前のタブ", "上一个标签页"],
|
||||
["Write", "Écrire", "書く", "写作"],
|
||||
["Find in the document", "Rechercher dans le document", "ドキュメント内を検索", "在文档中查找"],
|
||||
["Move to the Recycle Bin", "Placer dans la Corbeille", "ごみ箱に移動", "移到回收站"],
|
||||
["Open the context menu", "Ouvrir le menu contextuel", "コンテキストメニューを開く", "打开上下文菜单"]
|
||||
];
|
||||
export const catalogs: Record<Exclude<Locale, 'en'>, Record<string, string>> = {
|
||||
fr: Object.fromEntries(messageRows.map(row => [row[0], row[1]])),
|
||||
|
||||
Reference in New Issue
Block a user