From 2f9cbf2349bfd02b59c438ddc9657d66c6739915 Mon Sep 17 00:00:00 2001 From: Colen Garoutte-Carson Date: Thu, 24 Sep 2026 14:23:20 -0700 Subject: [PATCH 1/4] Add localized C++ hover size and alignment text --- Extension/src/nativeStrings.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Extension/src/nativeStrings.json b/Extension/src/nativeStrings.json index ffe091980..dc2f9fbda 100644 --- a/Extension/src/nativeStrings.json +++ b/Extension/src/nativeStrings.json @@ -785,5 +785,9 @@ "selected_translation_unit_not_include_file_header_only": { "text": "The selected translation unit '{0}' does not include '{1}'. No previous translation unit is available, so IntelliSense will use '{1}' as a header-only translation unit.", "hint": "{0} is the selected translation unit path. {1} is the active file path. {Locked=\"IntelliSense\"} {Locked=\"{0}\"} {Locked=\"{1}\"}" + }, + "quick_info_size_and_alignment": { + "text": "**Size:** %s bytes\n\n**Alignment:** %s bytes", + "hint": "Size and alignment of a C or C++ type. The first %s is the size in bytes. The second %s is the alignment in bytes. {Locked=\"**\"} {Locked=\"%s\"}" } } From c49a331d5ef2f79bb1f99d7745bd09f1d93ba600 Mon Sep 17 00:00:00 2001 From: Colen Garoutte-Carson Date: Thu, 24 Sep 2026 18:50:41 -0700 Subject: [PATCH 2/4] Pluralize hover size and alignment units Keep size and alignment labels fully localizable while selecting singular and plural byte forms independently. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- Extension/src/nativeStrings.json | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Extension/src/nativeStrings.json b/Extension/src/nativeStrings.json index dc2f9fbda..94b2a9fa2 100644 --- a/Extension/src/nativeStrings.json +++ b/Extension/src/nativeStrings.json @@ -786,8 +786,20 @@ "text": "The selected translation unit '{0}' does not include '{1}'. No previous translation unit is available, so IntelliSense will use '{1}' as a header-only translation unit.", "hint": "{0} is the selected translation unit path. {1} is the active file path. {Locked=\"IntelliSense\"} {Locked=\"{0}\"} {Locked=\"{1}\"}" }, - "quick_info_size_and_alignment": { - "text": "**Size:** %s bytes\n\n**Alignment:** %s bytes", - "hint": "Size and alignment of a C or C++ type. The first %s is the size in bytes. The second %s is the alignment in bytes. {Locked=\"**\"} {Locked=\"%s\"}" + "quick_info_size_one": { + "text": "**Size:** %s byte", + "hint": "Size of a C or C++ type when the size is one byte. %s is the size. {Locked=\"**\"} {Locked=\"%s\"}" + }, + "quick_info_size_many": { + "text": "**Size:** %s bytes", + "hint": "Size of a C or C++ type when the size is not one byte. %s is the size. {Locked=\"**\"} {Locked=\"%s\"}" + }, + "quick_info_alignment_one": { + "text": "**Alignment:** %s byte", + "hint": "Alignment of a C or C++ type when the alignment is one byte. %s is the alignment. {Locked=\"**\"} {Locked=\"%s\"}" + }, + "quick_info_alignment_many": { + "text": "**Alignment:** %s bytes", + "hint": "Alignment of a C or C++ type when the alignment is not one byte. %s is the alignment. {Locked=\"**\"} {Locked=\"%s\"}" } } From 2cf232bfca767b2c48c7d4ea6c170349cbfab728 Mon Sep 17 00:00:00 2001 From: Colen Garoutte-Carson Date: Mon, 28 Sep 2026 14:02:51 -0700 Subject: [PATCH 3/4] Use invariant byte units in hover strings Keep labels localizable without relying on language-specific plural categories. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- Extension/src/nativeStrings.json | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/Extension/src/nativeStrings.json b/Extension/src/nativeStrings.json index f839f5b47..8323589f5 100644 --- a/Extension/src/nativeStrings.json +++ b/Extension/src/nativeStrings.json @@ -790,20 +790,12 @@ "text": "The C++ analysis process was unavailable while checking \"{0}\".", "hint": "{0} is the source file path. {Locked=\"C++\"} {Locked=\"{0}\"}" }, - "quick_info_size_one": { - "text": "**Size:** %s byte", - "hint": "Size of a C or C++ type when the size is one byte. %s is the size. {Locked=\"**\"} {Locked=\"%s\"}" + "quick_info_size": { + "text": "**Size:** %s B", + "hint": "Size of a C or C++ type in bytes. %s is the numeric size. B is the byte unit symbol. {Locked=\"**\"} {Locked=\"%s\"} {Locked=\"B\"}" }, - "quick_info_size_many": { - "text": "**Size:** %s bytes", - "hint": "Size of a C or C++ type when the size is not one byte. %s is the size. {Locked=\"**\"} {Locked=\"%s\"}" - }, - "quick_info_alignment_one": { - "text": "**Alignment:** %s byte", - "hint": "Alignment of a C or C++ type when the alignment is one byte. %s is the alignment. {Locked=\"**\"} {Locked=\"%s\"}" - }, - "quick_info_alignment_many": { - "text": "**Alignment:** %s bytes", - "hint": "Alignment of a C or C++ type when the alignment is not one byte. %s is the alignment. {Locked=\"**\"} {Locked=\"%s\"}" + "quick_info_alignment": { + "text": "**Alignment:** %s B", + "hint": "Alignment of a C or C++ type in bytes. %s is the numeric alignment. B is the byte unit symbol. {Locked=\"**\"} {Locked=\"%s\"} {Locked=\"B\"}" } } From aab919911770258e775640285ba5fbc09a05d102 Mon Sep 17 00:00:00 2001 From: Colen Garoutte-Carson Date: Mon, 28 Sep 2026 14:34:36 -0700 Subject: [PATCH 4/4] Allow localized hover byte symbols Keep the byte unit count-invariant while allowing translators to use locale-appropriate symbols. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- Extension/src/nativeStrings.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Extension/src/nativeStrings.json b/Extension/src/nativeStrings.json index 8323589f5..5ad20f459 100644 --- a/Extension/src/nativeStrings.json +++ b/Extension/src/nativeStrings.json @@ -792,10 +792,10 @@ }, "quick_info_size": { "text": "**Size:** %s B", - "hint": "Size of a C or C++ type in bytes. %s is the numeric size. B is the byte unit symbol. {Locked=\"**\"} {Locked=\"%s\"} {Locked=\"B\"}" + "hint": "Size of a C or C++ type in bytes. %s is the numeric size. Translate B to a count-invariant byte unit symbol or abbreviation. {Locked=\"**\"} {Locked=\"%s\"}" }, "quick_info_alignment": { "text": "**Alignment:** %s B", - "hint": "Alignment of a C or C++ type in bytes. %s is the numeric alignment. B is the byte unit symbol. {Locked=\"**\"} {Locked=\"%s\"} {Locked=\"B\"}" + "hint": "Alignment of a C or C++ type in bytes. %s is the numeric alignment. Translate B to a count-invariant byte unit symbol or abbreviation. {Locked=\"**\"} {Locked=\"%s\"}" } }