Skip to content

Using the localized texts in UI #979

Merged
llali merged 7 commits intomasterfrom
fix/localizeViews
Sep 7, 2017
Merged

Using the localized texts in UI #979
llali merged 7 commits intomasterfrom
fix/localizeViews

Conversation

@llali
Copy link
Copy Markdown
Member

@llali llali commented Sep 5, 2017

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.2%) to 65.049% when pulling 623b54f on fix/localizeViews into d786cbe on master.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.2%) to 65.049% when pulling 775082d on fix/localizeViews into d786cbe on master.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.2%) to 65.049% when pulling a32799e on fix/localizeViews into d786cbe on master.

Comment thread package.json Outdated
"mssql.shortcuts": {
"type": "object",
"description": "Shortcuts related to the results window",
"description": "%mssql.shortcut%",
Copy link
Copy Markdown
Member Author

@llali llali Sep 6, 2017

Choose a reason for hiding this comment

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

mssql.shortcut [](start = 27, length = 14)

will fix this. should be %mssql.shortcuts% #Resolved

Comment thread src/models/sqlOutputContentProvider.ts Outdated
this._service.addPostHandler(Interfaces.ContentType.ShowError, (req, res) => this.showErrorRequestHandler(req, res));
// add http post handler for showing warning to user
this._service.addPostHandler(Interfaces.ContentType.ShowWarning, (req, res) => this.showWarningRequestHandler(req, res));
this._service.addHandler(Interfaces.ContentType.LocalizedText, (req, res) => {
Copy link
Copy Markdown
Member Author

@llali llali Sep 6, 2017

Choose a reason for hiding this comment

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

will add comment #Resolved

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.2%) to 65.049% when pulling bea2607 on fix/localizeViews into d786cbe on master.

Comment thread package.nls.json Outdated
@@ -0,0 +1,68 @@
{
"extension.runQuery" : "Execute Query",
Copy link
Copy Markdown
Contributor

@kevcunnane kevcunnane Sep 6, 2017

Choose a reason for hiding this comment

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

Is there an xliff file for these? And a process to build the localized package.nls files during build? #Resolved

const self = this;
this.setupResizeBind();

Constants.ConstantTypes.forEach(element => {
Copy link
Copy Markdown
Contributor

@kevcunnane kevcunnane Sep 6, 2017

Choose a reason for hiding this comment

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

Please do a single call and return all constants. #Resolved

this[key] = value;
};

export enum ConstantType {
Copy link
Copy Markdown
Contributor

@kevcunnane kevcunnane Sep 6, 2017

Choose a reason for hiding this comment

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

You can get rid of this once it's a map. thanks! #Resolved

@llali llali requested a review from Raymondd September 6, 2017 19:31
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.2%) to 65.085% when pulling a2960ba on fix/localizeViews into d786cbe on master.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.2%) to 65.085% when pulling 41032de on fix/localizeViews into d786cbe on master.

const self = this;
this.setupResizeBind();


Copy link
Copy Markdown
Contributor

@kevcunnane kevcunnane Sep 7, 2017

Choose a reason for hiding this comment

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

Minor: remove this whitespace #Resolved

export let msgCannotSaveMultipleSelections = 'Save results command cannot be used with multiple selections.';

export let loadLocalizedConstant = (key: string, value: string) => {
this[key] = value;
Copy link
Copy Markdown
Contributor

@kevcunnane kevcunnane Sep 7, 2017

Choose a reason for hiding this comment

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

Minor: maybe document what this does / how it works. It's kinda magic (but cool) #Resolved

export const selectAll = 'Select all';
export const copyLabel = 'Copy';
export const copyWithHeadersLabel = 'Copy with Headers';
export let maximizeLabel = 'Maximize';
Copy link
Copy Markdown
Contributor

@kevcunnane kevcunnane Sep 7, 2017

Choose a reason for hiding this comment

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

Please doc that all new strings added here must be added to the xliff. Otherwise people may miss this #Resolved

@llali llali merged commit 63fdf92 into master Sep 7, 2017
@kevcunnane kevcunnane deleted the fix/localizeViews branch September 19, 2017 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants