diff --git a/extensions/git/package.nls.json b/extensions/git/package.nls.json index 4aef845715c..b05e61375bf 100644 --- a/extensions/git/package.nls.json +++ b/extensions/git/package.nls.json @@ -331,7 +331,7 @@ "message": "Scanning workspace for git repositories..." }, "view.workbench.scm.unsafeRepository": { - "message": "The git repository in the following folder has been detected as potentially unsafe as the folder is owned by someone else other than the current user: ${command:git.api.getUnsafeRepositories}.\nDo you want to open the repository?\n[Open Repository](command:git.addSafeDirectoryAndOpenRepository)\n[Learn More](https://aka.ms/vscode-scm)", + "message": "The git repository in the following folder is potentially unsafe as the folder is owned by someone other than the current user: ${command:git.api.getUnsafeRepositories}.\nDo you want to open the repository?\n[Open Repository](command:git.addSafeDirectoryAndOpenRepository)\n[Learn More](https://aka.ms/vscode-scm)", "comment": [ "{Locked='](command:git.api.getUnsafeRepositories'}", "{Locked='](command:git.addSafeDirectoryAndOpenRepository'}", @@ -340,7 +340,7 @@ ] }, "view.workbench.scm.unsafeRepositories": { - "message": "The git repositories in the following folders have been detected as potentially unsafe as the folder is owned by someone else other than the current user: ${command:git.api.getUnsafeRepositories}.\nDo you want to open the repositories?\n[Open Repositories](command:git.addSafeDirectoryAndOpenRepository)\n[Learn More](https://aka.ms/vscode-scm)", + "message": "The git repositories in the following folders are potentially unsafe as the folders are owned by someone other than the current user: ${command:git.api.getUnsafeRepositories}.\nDo you want to open the repositories?\n[Open Repositories](command:git.addSafeDirectoryAndOpenRepository)\n[Learn More](https://aka.ms/vscode-scm)", "comment": [ "{Locked='](command:git.api.getUnsafeRepositories'}", "{Locked='](command:git.addSafeDirectoryAndOpenRepository'}", diff --git a/extensions/git/src/model.ts b/extensions/git/src/model.ts index 501f2fc2947..156d288d7ce 100644 --- a/extensions/git/src/model.ts +++ b/extensions/git/src/model.ts @@ -780,8 +780,8 @@ export class Model implements IRemoteSourcePublisherRegistry, IPostCommitCommand const unsafeRepositoryPathLabels = unsafeRepositoryPaths.sort().map(m => `"${m}"`).join(', '); const message = unsafeRepositoryPaths.length === 1 ? - l10n.t('The git repository in the following folder has been detected as potentially unsafe as the folder is owned by someone else other than the current user: {0}. Do you want to open the repository?', unsafeRepositoryPathLabels) : - l10n.t('The git repositories in the following folders have been detected as potentially unsafe as the folder is owned by someone else other than the current user: {0}. Do you want to open the repositories?', unsafeRepositoryPathLabels); + l10n.t('The git repository in the following folder is potentially unsafe as the folder is owned by someone other than the current user: {0}. Do you want to open the repository?', unsafeRepositoryPathLabels) : + l10n.t('The git repositories in the following folders are potentially unsafe as the folders are owned by someone other than the current user: {0}. Do you want to open the repositories?', unsafeRepositoryPathLabels); const openRepository = unsafeRepositoryPaths.length === 1 ? l10n.t('Open Repository') : l10n.t('Open Repositories'); const learnMore = l10n.t('Learn More');