From 32406a71579a58a5f32cbbe593b3bd8d653bea17 Mon Sep 17 00:00:00 2001 From: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com> Date: Mon, 4 Jul 2022 16:37:52 +0200 Subject: [PATCH] Debt - Prevent icon translations (#154094) Prevent icon translations --- extensions/git-base/src/remoteSource.ts | 2 +- extensions/git/src/actionButton.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/git-base/src/remoteSource.ts b/extensions/git-base/src/remoteSource.ts index 32b45b851f7..134af197316 100644 --- a/extensions/git-base/src/remoteSource.ts +++ b/extensions/git-base/src/remoteSource.ts @@ -70,7 +70,7 @@ class RemoteSourceProviderQuickPick { })); } } catch (err) { - this.quickpick!.items = [{ label: localize('error', "$(error) Error: {0}", err.message), alwaysShow: true }]; + this.quickpick!.items = [{ label: localize('error', "{0} Error: {1}", '$(error)', err.message), alwaysShow: true }]; console.error(err); } finally { this.quickpick!.busy = false; diff --git a/extensions/git/src/actionButton.ts b/extensions/git/src/actionButton.ts index 2eabbeaa9e6..7a6f295330b 100644 --- a/extensions/git/src/actionButton.ts +++ b/extensions/git/src/actionButton.ts @@ -82,21 +82,21 @@ export class ActionButtonCommand { switch (postCommitCommand) { case 'push': { - title = localize('scm button commit and push title', "$(arrow-up) Commit & Push"); + title = localize('scm button commit and push title', "{0} Commit & Push", '$(arrow-up)'); tooltip = this.state.isCommitInProgress ? localize('scm button committing pushing tooltip', "Committing & Pushing Changes...") : localize('scm button commit push tooltip', "Commit & Push Changes"); break; } case 'sync': { - title = localize('scm button commit and sync title', "$(sync) Commit & Sync"); + title = localize('scm button commit and sync title', "{0} Commit & Sync", '$(sync)'); tooltip = this.state.isCommitInProgress ? localize('scm button committing synching tooltip', "Committing & Synching Changes...") : localize('scm button commit sync tooltip', "Commit & Sync Changes"); break; } default: { - title = localize('scm button commit title', "$(check) Commit"); + title = localize('scm button commit title', "{0} Commit", '$(check)'); tooltip = this.state.isCommitInProgress ? localize('scm button committing tooltip', "Committing Changes...") : localize('scm button commit tooltip', "Commit Changes");