Skip to content

Commit b5f5d0d

Browse files
author
Kartik Raj
authored
Fix localization failure for pre-release (#22639)
Fixes pre-release, dynamic strings are not supported by localization.
1 parent 13047b8 commit b5f5d0d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/client/logging/settingLogs.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ async function notifyLegacySettings(): Promise<void> {
9999
_isShown = true;
100100
const response = await showWarningMessage(
101101
l10n.t(
102-
`You have deprecated linting or formatting settings for Python. Please see the [logs](command:${Commands.ViewOutput}) for more details.`,
102+
'You have deprecated linting or formatting settings for Python. Please see the [logs](command:{0}) for more details.',
103+
Commands.ViewOutput,
103104
),
104105
Common.learnMore,
105106
);

src/client/pythonEnvironments/creation/common/installCheckUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function parseDiagnostics(data: string): Diagnostic[] {
2727
diagnostics = raw.map((item) => {
2828
const d = new Diagnostic(
2929
new Range(item.line, item.character, item.endLine, item.endCharacter),
30-
l10n.t(`Package \`${item.package}\` is not installed in the selected environment.`),
30+
l10n.t('Package `{0}` is not installed in the selected environment.', item.package),
3131
item.severity,
3232
);
3333
d.code = { value: item.code, target: Uri.parse(`https://pypi.org/p/${item.package}`) };

src/test/terminals/codeExecution/smartSend.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@ suite('REPL - Smart Send', () => {
302302
l10n.t(
303303
`Python is unable to parse the code provided. Please
304304
turn off Smart Send if you wish to always run line by line or explicitly select code
305-
to force run. [logs](command:${Commands.ViewOutput}) for more details.`,
305+
to force run. [logs](command:{0}) for more details.`,
306+
Commands.ViewOutput,
306307
),
307308
'Switch to line-by-line',
308309
),

0 commit comments

Comments
 (0)