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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localized descriptions for settings dont show up in Extensions view #54111

Closed
ramya-rao-a opened this issue Jul 11, 2018 · 20 comments
Closed

Localized descriptions for settings dont show up in Extensions view #54111

ramya-rao-a opened this issue Jul 11, 2018 · 20 comments
Assignees
Labels
extensions Issues concerning extensions feature-request Request for new features or functionality l10n-platform Localization platform issues (not wrong translations) *out-of-scope Posted issue is not in scope of VS Code
Milestone

Comments

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Jul 11, 2018

For all our built-in extensions, we have the package-nls.json such that extension and settings descriptions are localized.
These localized strings dont appear in the extensions view:

image

The above shows a weird mixture of English and localized strings.

@vscodebot vscodebot bot added the extensions Issues concerning extensions label Jul 11, 2018
@sandy081
Copy link
Member

@dbaeumer @joaomoreno

We read the package.json and package.nls.json and apply translations. If I see into the our built in extension folders of the product, there is package.nls.json file only in english.

Is this due to the change in the way we do translations now?

@dbaeumer
Copy link
Member

Yes, these are now in the language pack. I adopted the contribution points when we read the extensions but not the extension editor. @joaomoreno can you point me to where the code is. Then I can have a look. The code that does the adoption for the package.json when scanning for extensions is here: https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/services/extensions/node/extensionPoints.ts#L144

@sandy081
Copy link
Member

@dbaeumer Its here

@sandy081 sandy081 added the l10n-platform Localization platform issues (not wrong translations) label Jul 13, 2018
@sandy081 sandy081 added this to the July 2018 milestone Jul 13, 2018
@sandy081 sandy081 added the bug Issue identified by VS Code Team member as probable bug label Jul 13, 2018
dbaeumer added a commit that referenced this issue Jul 23, 2018
…r settings dont show up in Extensions view
@dbaeumer
Copy link
Member

Fixed in referenced PR:

capture

@sandy081 sandy081 added feature-request Request for new features or functionality and removed bug Issue identified by VS Code Team member as probable bug labels Jul 24, 2018
@sandy081
Copy link
Member

@dbaeumer As you said, we never showed localised manifest in extension editor.

@ramya-rao-a

We can do this only for installed extensions and for non installed ones we do not not have translations. So this will cause some extensions to show translated strings and some does not. We have to be careful with this as users can complain and we cannot support until Market place team supports it or we find a different approach.

Hence my suggestion is to put more thinking about how to support translations for market place extensions and release it completely.

@sandy081 sandy081 modified the milestones: July 2018, Backlog Jul 24, 2018
@wraith13
Copy link

wraith13 commented Oct 2, 2018

Because it happens like the image below, I am very sad.
image
image
image

@wraith13
Copy link

wraith13 commented Oct 2, 2018

I strongly hope to be able to localize README as well.

( I tryed "readme" : "%readme%" in package.json, but it did not work too. )

@ruslan-bikkinin
Copy link

Hi guys, since we added localization to our extensions Contributions page has become completely unreadable:
image

image

From my point of view it's not a feature request, but bug. I hope you'll do something about it.

@dbaeumer
Copy link
Member

@sandy081 this also happens with our extensions. We can either use the cached version of the package.json for extension management which has the translation replaced your run it through the same transformer.

@sandy081
Copy link
Member

Is it possible to apply translations dynamically on package.json files so that this can be fixed for all (installed and ones from market place)?

@dbaeumer
Copy link
Member

Yes, the code sits here: https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/services/extensions/node/extensionPoints.ts#L107

But it might need some refactoring to be used in other contexts. From where would you call this?

@sandy081
Copy link
Member

I think it will be in renderer while displaying

@dbaeumer
Copy link
Member

That should be fine.

@pikadun
Copy link

pikadun commented Jun 20, 2020

Hi: @sandy081

I see here read package.nls.json.
Whether to use package.nls.<locale>.json instead?

Or is it possible to dynamically generate files when the extension is activated?

@sandy081
Copy link
Member

Translation files are in language pack extensions. So the right solution is based on the locale read the translations from the pack that support this locale/

@Colengms
Copy link
Contributor

Note that this behavior extends to previewing of extensions in the marketplace.

@GitMensch
Copy link
Contributor

@Colengms said (15 days ago)

Note that this behavior extends to previewing of extensions in the marketplace.

which brings us back to what @sandy081 said 28 months ago:

We can do this only for installed extensions and for non installed ones we do not not have translations. So this will cause some extensions to show translated strings and some does not. We have to be careful with this as users can complain and we cannot support until Market place team supports it or we find a different approach.

So yes, obviously:

  • users do complain, count me in this list
  • users count that as bug, not as a feature-request
  • the only place where this seems to be solvable for the marketplace is to get the market place support translations

What is the state of this? Backlog4ever? This issue has no one assigned from the marketplace team, has it?

@vscodenpa
Copy link

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding, and happy coding!

@vscodenpa vscodenpa closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2022
@tylor-metrics
Copy link

So sad that this is not getting fixed.
Is there a work-around, other than simply not localizing the extension?

@tylor-metrics
Copy link

lol 16 bugs closed in relation this one. .... "won't fix"

@sandy081 sandy081 changed the title Localized descriptions for built-in extensions and their settings dont show up in Extensions view Localized descriptions for settings dont show up in Extensions view May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extensions Issues concerning extensions feature-request Request for new features or functionality l10n-platform Localization platform issues (not wrong translations) *out-of-scope Posted issue is not in scope of VS Code
Projects
None yet