Skip to content

Add localization to strings in LanguageServer\cppBuildTaskProvider.ts#6544

Merged
elahehrashedi merged 8 commits into
masterfrom
ella/localization
Nov 25, 2020
Merged

Add localization to strings in LanguageServer\cppBuildTaskProvider.ts#6544
elahehrashedi merged 8 commits into
masterfrom
ella/localization

Conversation

@elahehrashedi
Copy link
Copy Markdown
Contributor

fix : #6436

@elahehrashedi elahehrashedi requested a review from a team November 18, 2020 22:45
Comment thread Extension/src/Debugger/extension.ts Outdated
Comment thread Extension/src/LanguageServer/cppBuildTaskProvider.ts Outdated
Comment thread Extension/src/LanguageServer/cppBuildTaskProvider.ts Outdated
Comment thread Extension/src/LanguageServer/cppBuildTaskProvider.ts
Comment thread Extension/src/LanguageServer/cppBuildTaskProvider.ts
telemetry.logLanguageServerEvent("cppBuildTaskError");
const dot: string = (stdout || _stderr) ? ":" : ".";
this.writeEmitter.fire(`Build finished with error${dot}${this.endOfLine}`);
this.writeEmitter.fire(localize("build_finished_with_error", "Build finished with error") + dot + this.endOfLine);
Copy link
Copy Markdown
Contributor

@sean-mcmanus sean-mcmanus Nov 20, 2020

Choose a reason for hiding this comment

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

"Build finished with error." is not grammatically correct...if that case is possible it should be "Build finished with an error" or "Build finished with errors", so correct translation of "Build finished with error" might not have enough info to translate correctly...something like "Build finished with errors:" might work (not sure if "error" versus "errors" matters if there's one error).

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.

the dot variable is either : or . that is why it is not included in the sentence.
I replaced it with a more common sentence Build finished with error(s)

@elahehrashedi elahehrashedi merged commit 4c2124e into master Nov 25, 2020
@sean-mcmanus sean-mcmanus added this to the 1.1.3 milestone Dec 2, 2020
sean-mcmanus pushed a commit that referenced this pull request Dec 2, 2020
…#6544)

* localizing for task provider

* localize single_file_mode_not_available

* remove end of line from localalized string

* modify error(s)

* remove space from localized string

* remove space from localized string
@bobbrow bobbrow deleted the ella/localization branch January 5, 2021 17:20
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add localization to strings in LanguageServer\cppBuildTaskProvider.ts

3 participants