diff --git a/.github/scripts/tests/fixtures/command_descriptions.json b/.github/scripts/tests/fixtures/command_descriptions.json index acadf18b..ed8fae8e 100644 --- a/.github/scripts/tests/fixtures/command_descriptions.json +++ b/.github/scripts/tests/fixtures/command_descriptions.json @@ -437,23 +437,23 @@ "List all LXC containers", "Start an LXC container", "Stop an LXC container", - "Open an LXC container console", + "Open a shell in an LXC container", "Show container configuration", "Show storage status", "List storage contents", "Test Proxmox system performance", "Show the Proxmox VE version", - "Check cluster status", + "Show pve-cluster service status", "Show cluster status", "List cluster nodes", "Show ZFS pool status", "List all ZFS pools", - "List all ZFS datasets", + "List ZFS filesystems and volumes", "List all files with details", "Change directory", "Create a directory", "Remove a directory recursively", - "Copy files or directories", + "Copy files", "Move or rename files", "Display file contents", "Search for a pattern in a file", diff --git a/.github/scripts/tests/test_command_descriptions.py b/.github/scripts/tests/test_command_descriptions.py index d6305d64..30d9b38e 100644 --- a/.github/scripts/tests/test_command_descriptions.py +++ b/.github/scripts/tests/test_command_descriptions.py @@ -75,8 +75,10 @@ class CommandDescriptionsTests(unittest.TestCase): self.assertEqual(len(actual), len(commands)) self.assertEqual(actual, expected) self.assertTrue(all(isinstance(x, str) and x for x in actual)) + # Explicit English recovery values are frozen locale text, not live fallback. for index in FIXTURE["fallback_indices"]: - self.assertEqual(catalog("sv")["terminal"]["commandDescriptions"][index], FIXTURE["english"][index]) + self.assertEqual(catalog("sv")["terminal"]["commandDescriptions"][index], + FIXTURE["locales"]["sv"][index]) def test_workflow_default_catalogs_rerun_without_provider_or_writes(self): workflow = (ROOT / ".github/workflows/build-i18n-messages.yml").read_text() @@ -116,6 +118,9 @@ class CommandDescriptionsTests(unittest.TestCase): '\nconst MESSAGE_CATALOG = ' + json.dumps(catalogs) + ';\n' + 'function t(language: string, key: string, params?: TranslationParams) {\n' + lookup + '}\n' + 'const fixture = ' + json.dumps(FIXTURE) + ';\n' + ''' +fixture.english.forEach((text, i) => { + assert.equal(t("en", `terminal.commandDescriptions.${i}`), text); +}); for (const [lang, texts] of Object.entries(fixture.locales)) { texts.forEach((text, i) => { const key = `terminal.commandDescriptions.${i}`; diff --git a/AppImage/messages/en/common.json b/AppImage/messages/en/common.json index 5f2002b7..20a9af22 100644 --- a/AppImage/messages/en/common.json +++ b/AppImage/messages/en/common.json @@ -4893,23 +4893,23 @@ "List all LXC containers", "Start an LXC container", "Stop an LXC container", - "Open an LXC container console", + "Open a shell in an LXC container", "Show container configuration", "Show storage status", "List storage contents", "Test Proxmox system performance", "Show the Proxmox VE version", - "Check cluster status", + "Show pve-cluster service status", "Show cluster status", "List cluster nodes", "Show ZFS pool status", "List all ZFS pools", - "List all ZFS datasets", + "List ZFS filesystems and volumes", "List all files with details", "Change directory", "Create a directory", "Remove a directory recursively", - "Copy files or directories", + "Copy files", "Move or rename files", "Display file contents", "Search for a pattern in a file",