You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extensions/php-language-features/src/features/validationProvider.ts
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,6 @@ import * as which from 'which';
9
9
import*aspathfrom'path';
10
10
import*asvscodefrom'vscode';
11
11
import{ThrottledDelayer}from'./utils/async';
12
-
import*asnlsfrom'vscode-nls';
13
-
constlocalize=nls.loadMessageBundle();
14
12
15
13
constenumSetting{
16
14
Run='php.validate.run',
@@ -179,7 +177,7 @@ export default class PHPValidationProvider {
179
177
returnnewPromise<void>(resolve=>{
180
178
constexecutable=this.config!.executable;
181
179
if(!executable){
182
-
this.showErrorMessage(localize('noPhp','Cannot validate since a PHP installation could not be found. Use the setting \'php.validate.executablePath\' to configure the PHP executable.'));
180
+
this.showErrorMessage(vscode.l10n.t("Cannot validate since a PHP installation could not be found. Use the setting 'php.validate.executablePath' to configure the PHP executable."));
183
181
this.pauseValidation=true;
184
182
resolve();
185
183
return;
@@ -254,12 +252,12 @@ export default class PHPValidationProvider {
254
252
letmessage: string|null=null;
255
253
if(error.code==='ENOENT'){
256
254
if(this.config!.executable){
257
-
message=localize('wrongExecutable','Cannot validate since {0} is not a valid php executable. Use the setting \'php.validate.executablePath\' to configure the PHP executable.',executable);
255
+
message=vscode.l10n.t("Cannot validate since {0} is not a valid php executable. Use the setting 'php.validate.executablePath' to configure the PHP executable.",executable);
258
256
}else{
259
-
message=localize('noExecutable','Cannot validate since no PHP executable is set. Use the setting \'php.validate.executablePath\' to configure the PHP executable.');
257
+
message=vscode.l10n.t("Cannot validate since no PHP executable is set. Use the setting 'php.validate.executablePath' to configure the PHP executable.");
260
258
}
261
259
}else{
262
-
message=error.message ? error.message : localize('unknownReason','Failed to run php using path: {0}. Reason is unknown.',executable);
260
+
message=error.message ? error.message : vscode.l10n.t("Failed to run php using path: {0}. Reason is unknown.",executable);
263
261
}
264
262
if(!message){
265
263
return;
@@ -269,7 +267,7 @@ export default class PHPValidationProvider {
0 commit comments