Skip to content

Commit d262ea9

Browse files
authored
Fix sentence case and IPython stylization (microsoft#6567)
1 parent b8c2f20 commit d262ea9

File tree

4 files changed

+28
-28
lines changed

4 files changed

+28
-28
lines changed

package.nls.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"python.command.python.runLinting.title": "Run Linting",
3333
"python.command.python.datascience.runFileInteractive.title": "Run Current File in Python Interactive Window",
3434
"python.command.python.datascience.runallcells.title": "Run All Cells",
35-
"python.command.python.datascience.runallcellsabove.title": "Run Above",
35+
"python.command.python.datascience.runallcellsabove.title": "Run above",
3636
"python.command.python.datascience.runcellandallbelow.title": "Run Below",
3737
"python.command.python.datascience.runallcellsabove.palette.title": "Run Cells Above Current Cell",
3838
"python.command.python.datascience.runcurrentcellandallbelow.palette.title": "Run Current Cell and Below",
@@ -43,7 +43,7 @@
4343
"python.command.python.datascience.runcurrentcell.title": "Run Current Cell",
4444
"python.command.python.datascience.runcurrentcelladvance.title": "Run Current Cell And Advance",
4545
"python.command.python.datascience.execSelectionInteractive.title": "Run Selection/Line in Python Interactive window",
46-
"python.command.python.datascience.runcell.title": "Run Cell",
46+
"python.command.python.datascience.runcell.title": "Run cell",
4747
"python.command.python.datascience.showhistorypane.title": "Show Python Interactive window",
4848
"python.command.python.datascience.selectjupyteruri.title": "Specify Jupyter server URI",
4949
"python.command.python.datascience.importnotebook.title": "Import Jupyter Notebook",
@@ -55,8 +55,8 @@
5555
"python.command.python.datascience.undocells.title": "Undo last Python Interactive action",
5656
"python.command.python.datascience.redocells.title": "Redo last Python Interactive action",
5757
"python.command.python.datascience.removeallcells.title": "Delete all Python Interactive cells",
58-
"python.command.python.datascience.interruptkernel.title": "Interrupt IPython Kernel",
59-
"python.command.python.datascience.restartkernel.title": "Restart IPython Kernel",
58+
"python.command.python.datascience.interruptkernel.title": "Interrupt IPython kernel",
59+
"python.command.python.datascience.restartkernel.title": "Restart IPython kernel",
6060
"python.command.python.datascience.expandallcells.title": "Expand all Python Interactive cells",
6161
"python.command.python.datascience.collapseallcells.title": "Collapse all Python Interactive cells",
6262
"python.command.python.datascience.addcellbelow.title": "Add empty cell to file",
@@ -138,11 +138,11 @@
138138
"DataScience.executingCode": "Executing Cell",
139139
"DataScience.collapseAll": "Collapse all cell inputs",
140140
"DataScience.expandAll": "Expand all cell inputs",
141-
"DataScience.export": "Export as Jupyter Notebook",
142-
"DataScience.restartServer": "Restart IPython Kernel",
141+
"DataScience.export": "Export as Jupyter notebook",
142+
"DataScience.restartServer": "Restart IPython kernel",
143143
"DataScience.undo": "Undo",
144144
"DataScience.redo": "Redo",
145-
"DataScience.clearAll": "Remove All Cells",
145+
"DataScience.clearAll": "Remove all cells",
146146
"DataScience.pythonVersionHeader": "Python version:",
147147
"DataScience.pythonVersionHeaderNoPyKernel": "Python version may not match, no ipykernel found:",
148148
"DataScience.pythonRestartHeader": "Restarted kernel:",
@@ -192,7 +192,7 @@
192192
"diagnostics.yesUpdateLaunch": "Yes, update launch.json",
193193
"diagnostics.bannerLabelNo": "No, I will do it later",
194194
"diagnostics.invalidTestSettings": "Your settings needs to be updated to change the setting \"python.unitTest.\" to \"python.testing.\", otherwise testing Python code using the extension may not work. Would you like to automatically update your settings now?",
195-
"DataScience.interruptKernel": "Interrupt IPython Kernel",
195+
"DataScience.interruptKernel": "Interrupt IPython kernel",
196196
"DataScience.exportingFormat": "Exporting {0}",
197197
"DataScience.exportCancel": "Cancel",
198198
"Common.canceled": "Canceled",

package.nls.nl.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"python.command.python.datascience.undocells.title": "Laatste interactieve Python-actie ongedaan maken",
3939
"python.command.python.datascience.redocells.title": "Laatste interactieve Python-actie opnieuw uitvoeren",
4040
"python.command.python.datascience.removeallcells.title": "Alle interactieve Python-cellen verwijderen",
41-
"python.command.python.datascience.interruptkernel.title": "iPython-kernel onderbreken",
42-
"python.command.python.datascience.restartkernel.title": "iPython-kernel herstarten",
41+
"python.command.python.datascience.interruptkernel.title": "IPython-kernel onderbreken",
42+
"python.command.python.datascience.restartkernel.title": "IPython-kernel herstarten",
4343
"python.command.python.datascience.expandallcells.title": "Alle interactieve Python-vensters openen",
4444
"python.command.python.datascience.collapseallcells.title": "Alle interactieve Python-vensters sluiten",
4545
"python.snippet.launch.standard.label": "Python: Huidige bestand",
@@ -80,18 +80,18 @@
8080
"DataScience.connectingToJupyter": "Met Jupyter-server verbinden",
8181
"Interpreters.RefreshingInterpreters": "Python-Interpreters verversen",
8282
"Interpreters.LoadingInterpreters": "Python-Interpreters laden",
83-
"DataScience.restartKernelMessage": "Wil je de iPython-kernel herstarten? Alle variabelen zullen verloren gaan.",
83+
"DataScience.restartKernelMessage": "Wil je de IPython-kernel herstarten? Alle variabelen zullen verloren gaan.",
8484
"DataScience.restartKernelMessageYes": "Herstarten",
8585
"DataScience.restartKernelMessageNo": "Annuleren",
8686
"DataScienceSurveyBanner.bannerMessage": "Zou je alsjeblieft 2 minuten kunnen nemen om ons te vertellen hoe de Python-data-science-functionaliteiten voor jou werkt?",
8787
"DataScienceSurveyBanner.bannerLabelYes": "Ja, neem nu deel aan het onderzoek",
8888
"DataScienceSurveyBanner.bannerLabelNo": "Nee, bedankt",
89-
"DataScience.restartingKernelStatus": "iPython-Kernel herstarten",
89+
"DataScience.restartingKernelStatus": "IPython-Kernel herstarten",
9090
"DataScience.executingCode": "Cel aan het uitvoeren",
9191
"DataScience.collapseAll": "Alle cel-invoeren sluiten",
9292
"DataScience.expandAll": "Alle cel-invoeren openen",
9393
"DataScience.export": "Als Jupyter-Notebook exporteren",
94-
"DataScience.restartServer": "iPython-kernel herstarten",
94+
"DataScience.restartServer": "IPython-kernel herstarten",
9595
"DataScience.undo": "Herhaal",
9696
"DataScience.redo": "Opnieuw uitvoeren",
9797
"DataScience.clearAll": "Alle cellen verwijderen",
@@ -114,13 +114,13 @@
114114
"diagnostics.warnBeforeEnablingSourceMaps": "Bronkaartondersteuning inschakelen in de Python-extensie zal een ongunstige impact hebben op de uitvoering van de extensie.",
115115
"diagnostics.enableSourceMapsAndReloadVSC": "Venster inschakelen en herladen",
116116
"diagnostics.lsNotSupported": "Uw besturingssysteem voldoet niet aan de minimumeisen van de language server. Aan het terugschakelen naar het alternatief, Jedi.",
117-
"DataScience.interruptKernel": "iPython-kernel onderbreken",
117+
"DataScience.interruptKernel": "IPython-kernel onderbreken",
118118
"DataScience.exportingFormat": "Aan het exporteren {0}",
119119
"DataScience.exportCancel": "Annuleren",
120120
"Common.canceled": "Geannuleerd",
121121
"DataScience.importChangeDirectoryComment": "#%% De werkmap van de werkruimte root naar de ipynb-bestandslocatie veranderen. Schakel deze toevoeging uit met de instelling DataScience.changeDirOnImportExport",
122122
"DataScience.exportChangeDirectoryComment": "# De map wijzigen naar de VSCode-werktuimte root zodat de relatieve pad-ladingen correct werken. Schakel deze toevoeging uit met de instelling DataScience.changeDirOnImportExport",
123-
"DataScience.interruptKernelStatus": "iPython-kernel onderbreken",
123+
"DataScience.interruptKernelStatus": "IPython-kernel onderbreken",
124124
"DataScience.restartKernelAfterInterruptMessage": "Het onderbreken van de kernel duurde te lang. Wil je de kernel in plaats daarvan herstarten? Alle variabelen zullen verloren gaan.",
125125
"DataScience.pythonInterruptFailedHeader": "Toetsenbord-interrupt liet de kernel crashen. Kernel herstart.",
126126
"DataScience.sysInfoURILabel": "Jupyter-server URI: ",

src/client/common/utils/localize.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export namespace DataScience {
132132
export const connectingToJupyter = localize('DataScience.connectingToJupyter', 'Connecting to Jupyter server');
133133
export const exportingFormat = localize('DataScience.exportingFormat', 'Exporting {0}');
134134
export const runAllCellsLensCommandTitle = localize('python.command.python.datascience.runallcells.title', 'Run all cells');
135-
export const runAllCellsAboveLensCommandTitle = localize('python.command.python.datascience.runallcellsabove.title', 'Run Above');
135+
export const runAllCellsAboveLensCommandTitle = localize('python.command.python.datascience.runallcellsabove.title', 'Run above');
136136
export const runCellAndAllBelowLensCommandTitle = localize('python.command.python.datascience.runcellandallbelow.title', 'Run Below');
137137
export const importChangeDirectoryComment = localize('DataScience.importChangeDirectoryComment', '#%% Change working directory from the workspace root to the ipynb file location. Turn this addition off with the DataScience.changeDirOnImportExport setting');
138138
export const exportChangeDirectoryComment = localize('DataScience.exportChangeDirectoryComment', '# Change directory to VSCode workspace root so that relative path loads work correctly. Turn this addition off with the DataScience.changeDirOnImportExport setting');
@@ -141,7 +141,7 @@ export namespace DataScience {
141141
export const restartKernelMessageYes = localize('DataScience.restartKernelMessageYes', 'Restart');
142142
export const restartKernelMessageDontAskAgain = localize('DataScience.restartKernelMessageDontAskAgain', 'Don\'t Ask Again');
143143
export const restartKernelMessageNo = localize('DataScience.restartKernelMessageNo', 'Cancel');
144-
export const restartingKernelStatus = localize('DataScience.restartingKernelStatus', 'Restarting iPython Kernel');
144+
export const restartingKernelStatus = localize('DataScience.restartingKernelStatus', 'Restarting IPython Kernel');
145145
export const restartingKernelFailed = localize('DataScience.restartingKernelFailed', 'Kernel restart failed. Jupyter server is hung. Please reload VS code.');
146146
export const interruptingKernelFailed = localize('DataScience.interruptingKernelFailed', 'Kernel interrupt failed. Jupyter server is hung. Please reload VS code.');
147147

@@ -150,11 +150,11 @@ export namespace DataScience {
150150
export const expandAll = localize('DataScience.expandAll', 'Expand all cell inputs');
151151
export const collapseSingle = localize('DataScience.collapseSingle', 'Collapse');
152152
export const expandSingle = localize('DataScience.expandSingle', 'Expand');
153-
export const exportKey = localize('DataScience.export', 'Export as Jupyter Notebook');
154-
export const restartServer = localize('DataScience.restartServer', 'Restart iPython Kernel');
153+
export const exportKey = localize('DataScience.export', 'Export as Jupyter notebook');
154+
export const restartServer = localize('DataScience.restartServer', 'Restart IPython Kernel');
155155
export const undo = localize('DataScience.undo', 'Undo');
156156
export const redo = localize('DataScience.redo', 'Redo');
157-
export const clearAll = localize('DataScience.clearAll', 'Remove All Cells');
157+
export const clearAll = localize('DataScience.clearAll', 'Remove all cells');
158158
export const pythonVersionHeader = localize('DataScience.pythonVersionHeader', 'Python Version:');
159159
export const pythonRestartHeader = localize('DataScience.pythonRestartHeader', 'Restarted Kernel:');
160160
export const pythonNewHeader = localize('DataScience.pythonNewHeader', 'Started new kernel:');
@@ -172,10 +172,10 @@ export namespace DataScience {
172172
export const jupyterServerCrashed = localize('DataScience.jupyterServerCrashed', 'Jupyter server crashed. Unable to connect. \r\nError code from jupyter: {0}');
173173
export const notebookVersionFormat = localize('DataScience.notebookVersionFormat', 'Jupyter Notebook Version: {0}');
174174
//tslint:disable-next-line:no-multiline-string
175-
export const jupyterKernelNotSupportedOnActive = localize('DataScience.jupyterKernelNotSupportedOnActive', `iPython kernel cannot be started from '{0}'. Using closest match {1} instead.`);
176-
export const jupyterKernelSpecNotFound = localize('DataScience.jupyterKernelSpecNotFound', 'Cannot create a iPython kernel spec and none are available for use');
177-
export const interruptKernel = localize('DataScience.interruptKernel', 'Interrupt iPython Kernel');
178-
export const interruptKernelStatus = localize('DataScience.interruptKernelStatus', 'Interrupting iPython Kernel');
175+
export const jupyterKernelNotSupportedOnActive = localize('DataScience.jupyterKernelNotSupportedOnActive', `IPython kernel cannot be started from '{0}'. Using closest match {1} instead.`);
176+
export const jupyterKernelSpecNotFound = localize('DataScience.jupyterKernelSpecNotFound', 'Cannot create a IPython kernel spec and none are available for use');
177+
export const interruptKernel = localize('DataScience.interruptKernel', 'Interrupt IPython Kernel');
178+
export const interruptKernelStatus = localize('DataScience.interruptKernelStatus', 'Interrupting IPython Kernel');
179179
export const exportCancel = localize('DataScience.exportCancel', 'Cancel');
180180
export const restartKernelAfterInterruptMessage = localize('DataScience.restartKernelAfterInterruptMessage', 'Interrupting the kernel timed out. Do you want to restart the kernel instead? All variables will be lost.');
181181
export const pythonInterruptFailedHeader = localize('DataScience.pythonInterruptFailedHeader', 'Keyboard interrupt crashed the kernel. Kernel restarted.');

src/datascience-ui/history-react/toolbarPanel.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class ToolbarPanel extends React.Component<IToolbarPanelProps> {
4040
return(
4141
<div id='toolbar-panel'>
4242
<MenuBar baseTheme={this.props.baseTheme}>
43-
<ImageButton baseTheme={this.props.baseTheme} onClick={this.props.clearAll} tooltip={getLocString('DataScience.clearAll', 'Remove All Cells')}>
43+
<ImageButton baseTheme={this.props.baseTheme} onClick={this.props.clearAll} tooltip={getLocString('DataScience.clearAll', 'Remove all cells')}>
4444
<Image baseTheme={this.props.baseTheme} class='image-button-image' image={ImageName.Cancel}/>
4545
</ImageButton>
4646
<ImageButton baseTheme={this.props.baseTheme} onClick={this.props.redo} disabled={!this.props.canRedo} tooltip={getLocString('DataScience.redo', 'Redo')}>
@@ -49,13 +49,13 @@ export class ToolbarPanel extends React.Component<IToolbarPanelProps> {
4949
<ImageButton baseTheme={this.props.baseTheme} onClick={this.props.undo} disabled={!this.props.canUndo} tooltip={getLocString('DataScience.undo', 'Undo')}>
5050
<Image baseTheme={this.props.baseTheme} class='image-button-image' image={ImageName.Undo}/>
5151
</ImageButton>
52-
<ImageButton baseTheme={this.props.baseTheme} onClick={this.props.interruptKernel} tooltip={getLocString('DataScience.interruptKernel', 'Interrupt iPython Kernel')}>
52+
<ImageButton baseTheme={this.props.baseTheme} onClick={this.props.interruptKernel} tooltip={getLocString('DataScience.interruptKernel', 'Interrupt IPython kernel')}>
5353
<Image baseTheme={this.props.baseTheme} class='image-button-image' image={ImageName.Interrupt}/>
5454
</ImageButton>
55-
<ImageButton baseTheme={this.props.baseTheme} onClick={this.props.restartKernel} tooltip={getLocString('DataScience.restartServer', 'Restart iPython Kernel')}>
55+
<ImageButton baseTheme={this.props.baseTheme} onClick={this.props.restartKernel} tooltip={getLocString('DataScience.restartServer', 'Restart IPython kernel')}>
5656
<Image baseTheme={this.props.baseTheme} class='image-button-image' image={ImageName.Restart}/>
5757
</ImageButton>
58-
<ImageButton baseTheme={this.props.baseTheme} onClick={this.props.export} disabled={!this.props.canExport} tooltip={getLocString('DataScience.export', 'Export as Jupyter Notebook')}>
58+
<ImageButton baseTheme={this.props.baseTheme} onClick={this.props.export} disabled={!this.props.canExport} tooltip={getLocString('DataScience.export', 'Export as Jupyter notebook')}>
5959
<Image baseTheme={this.props.baseTheme} class='image-button-image' image={ImageName.SaveAs}/>
6060
</ImageButton>
6161
<ImageButton baseTheme={this.props.baseTheme} onClick={this.props.expandAll} disabled={!this.props.canExpandAll} tooltip={getLocString('DataScience.expandAll', 'Expand all cell inputs')}>

0 commit comments

Comments
 (0)