Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Malformed link in notification to open workspace #199715

Closed
joyceerhl opened this issue Nov 30, 2023 · 7 comments
Closed

Malformed link in notification to open workspace #199715

joyceerhl opened this issue Nov 30, 2023 · 7 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@joyceerhl
Copy link
Contributor

  1. Configure display language e.g. to French
  2. Open a repo that contains a workspace file
  3. Get notification which says this, 馃悰 the markdown link is not rendered
Ce dossier contient un fichier d鈥檈space de travail 'workspace.code-workspace'. Voulez-vous l鈥檕uvrir ? [En savoir plus] (https://go.microsoft.com/fwlink/?linkid=2025315) sur les fichiers de l鈥檈space de travail.
@bpasero bpasero assigned TylerLeonhardt and unassigned bpasero Dec 1, 2023
@bpasero bpasero added bug Issue identified by VS Code Team member as probable bug L10N Translation issue labels Dec 1, 2023
@VSCodeTriageBot VSCodeTriageBot assigned csigs and unassigned csigs Dec 1, 2023
@bpasero
Copy link
Member

bpasero commented Dec 1, 2023

This: [En savoir plus] (https://go.microsoft.com/fwlink/?linkid=2025315)
Needs to be: [En savoir plus](https://go.microsoft.com/fwlink/?linkid=2025315)

@TylerLeonhardt TylerLeonhardt assigned bpasero and unassigned TylerLeonhardt and csigs Dec 1, 2023
@TylerLeonhardt TylerLeonhardt added workbench-notifications Notification widget issues and removed L10N Translation issue workbench-notifications Notification widget issues labels Dec 1, 2023
@TylerLeonhardt
Copy link
Member

We should use locking comments (a feature of our localization pipeline) to enforce this.

    comment: ['{Locked="STRING TO LOCK IN PLACE"}']

Using the other signature of localize:

localize(
  {
    key: 'workspaceFound',
    comment: ['{Locked="]({1})"}']
  },
  "This folder contains a workspace file '{0}'. Do you want to open it? [Learn more]({1}) about workspace files.",
  workspaceFile,
  'https://go.microsoft.com/fwlink/?linkid=2025315'
) 

Note the use of ]( in the beginning of the Locked statement... this will programmatically force no space being injected.

@bpasero
Copy link
Member

bpasero commented Dec 1, 2023

@TylerLeonhardt I was not aware. Its a bit odd having to use this directive though, can we automate it? We have a lot more usages that seem to be using a different hint:

image

E.g. Please ensure the markdown link syntax is not broken up with whitespace [text block](link block)

@bpasero bpasero added this to the December 2023 milestone Dec 1, 2023
@bpasero bpasero closed this as completed in 0583a15 Dec 1, 2023
@VSCodeTriageBot VSCodeTriageBot added the unreleased Patch has not yet been released in VS Code Insiders label Dec 1, 2023
@TylerLeonhardt
Copy link
Member

I don't have any good ideas for how to fix that at the moment... but at least we have an issue: #199829

@VSCodeTriageBot VSCodeTriageBot added insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Dec 4, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 15, 2024
@andreamah andreamah added the verified Verification succeeded label Jan 25, 2024
@andreamah
Copy link
Contributor

andreamah commented Jan 25, 2024

image

Not sure if this is because the translation hasn't gone through, but switching the language to french doesn't give me the french string here.

@andreamah andreamah removed the verified Verification succeeded label Jan 25, 2024
@joyceerhl joyceerhl added verified Verification succeeded and removed verified Verification succeeded labels Jan 25, 2024
@joyceerhl joyceerhl added the verification-found Issue verification failed label Jan 25, 2024
@TylerLeonhardt
Copy link
Member

Looks like that string was not picked up. Unusual.

@TylerLeonhardt TylerLeonhardt modified the milestones: December / January 2024, February 2024 Jan 25, 2024
@VSCodeTriageBot VSCodeTriageBot removed the insiders-released Patch has been released in VS Code Insiders label Jan 25, 2024
@TylerLeonhardt
Copy link
Member

image

ok I think there was maybe a lag in translations as I see it now.

@TylerLeonhardt TylerLeonhardt removed the verification-found Issue verification failed label Feb 1, 2024
@rzhao271 rzhao271 added the verified Verification succeeded label Feb 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

7 participants