Skip to content

[html] Add documentationLabel's for HTML tags - #730

Merged
Martin Aeschlimann (aeschli) merged 7 commits into
microsoft:masterfrom
Tyriar:323_add_html_labels
Dec 2, 2015
Merged

Martin Aeschlimann (aeschli) merged 7 commits into
microsoft:masterfrom
Tyriar:323_add_html_labels

Conversation

@Tyriar

Copy link
Copy Markdown
Contributor

Part of #323. Moves the tag data structure away from a simple string[] to a
complex type in preparation for smarter HTML intellisense (#375).

Not sure if localization should be attempted for these because as they're taken directly from the spec which to my knowledge is English only.

Also note that I removed keygen from intellisense since it's deprecated.

cc Martin Aeschlimann (@aeschli)

Part of #323. Moves the tag data structure away from a simple string[] to a
complex type in preparation for smart intellisense (#375).
@msftclas

Hi Daniel Imms (@Tyriar), I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by Microsoft and real humans are currently evaluating your PR.

TTYL, MSBOT;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this actually our copyright and was this copied from some public source?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add their copyright in that case

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied it from a sibling file since gulp hygiene failed the build.

@aeschli

Copy link
Copy Markdown
Contributor

Daniel Imms (@Tyriar) Cool, thanks!

  • Let's keep or now all in the same file (htmlTags.ts), so we don't need to worry about the copyright.
  • Where did you get the descriptions from? Unless you authored them yourself we need to know what's the license on that page or website and add a third party notice. In general that's not an issue, unless the license is not too restrictive or no license is present.
  • All strings need to be externalized:
    Add
import nls = require('vs/nls');

as import, and use

nls.localize('tags.html', 'The html element represents the root of an HTML document.')

for each string

@aeschli Martin Aeschlimann (aeschli) added the feature-request Request for new features or functionality label Nov 30, 2015
@aeschli Martin Aeschlimann (aeschli) added this to the Dec 2015 milestone Nov 30, 2015
@aeschli Martin Aeschlimann (aeschli) changed the title Add documentationLabel's for HTML tags [html] Add documentationLabel's for HTML tags Nov 30, 2015
@aeschli Martin Aeschlimann (aeschli) added html HTML support issues and removed languages-basic Basic language support issues labels Nov 30, 2015
@Tyriar

Copy link
Copy Markdown
Contributor Author

Martin Aeschlimann (@aeschli) merged back into htmlTags.ts and externalized the strings. Let me know what should be done about attribution, currently a link to the doc exists in a comment in the code.

@aeschli

Copy link
Copy Markdown
Contributor

Daniel Imms (@Tyriar) I'm afraid we need nls.localize around each string, in the source code.
There is a post compile step that looks for all occurrences of that function call, extracts the translatable string into a separate file and replaces the nls.localize call with a dictionary lookup.
The separate file is the input for the translation teams.
So far we don't provide translated versions of VS code, but this is planned.

@aeschli

Copy link
Copy Markdown
Contributor

Daniel Imms (@Tyriar) I will take care of the copyright attribution.

Martin Aeschlimann (aeschli) added a commit that referenced this pull request Dec 2, 2015
[html] Add documentationLabel's for HTML tags
@aeschli
Martin Aeschlimann (aeschli) merged commit a38910e into microsoft:master Dec 2, 2015
@aeschli

Copy link
Copy Markdown
Contributor

Thanks a lot, Daniel Imms (@Tyriar), great contribution!

I'll work on getting the W3C attribution to the source file as well as in the product.

@Tyriar
Daniel Imms (Tyriar) deleted the 323_add_html_labels branch February 21, 2016 21:39
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

feature-request Request for new features or functionality html HTML support issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants