@@ -221,9 +221,8 @@ public List<Result> LoadContextMenus(Result selectedResult)
221
221
}
222
222
catch ( Exception e )
223
223
{
224
- var message = $ "Fail to delete { record . FullPath } ";
225
- LogException ( message , e ) ;
226
- Context . API . ShowMsgError ( message ) ;
224
+ LogException ( $ "Fail to delete { record . FullPath } ", e ) ;
225
+ Context . API . ShowMsgError ( string . Format ( Context . API . GetTranslation ( "plugin_explorer_fail_to_delete" ) , record . FullPath ) ) ;
227
226
return false ;
228
227
}
229
228
@@ -265,9 +264,9 @@ public List<Result> LoadContextMenus(Result selectedResult)
265
264
}
266
265
catch ( FileNotFoundException e )
267
266
{
268
- var name = "Plugin: Folder" ;
269
- var message = $ "File not found: { e . Message } " ;
270
- Context . API . ShowMsgError ( name , message ) ;
267
+ Context . API . ShowMsgError (
268
+ Context . API . GetTranslation ( "plugin_explorer_plugin_name" ) ,
269
+ string . Format ( Context . API . GetTranslation ( "plugin_explorer_file_not_found" ) , e . Message ) ) ;
271
270
return false ;
272
271
}
273
272
@@ -334,9 +333,8 @@ private Result CreateOpenContainingFolderResult(SearchResult record)
334
333
}
335
334
catch ( Exception e )
336
335
{
337
- var message = $ "Fail to open file at { record . FullPath } ";
338
- LogException ( message , e ) ;
339
- Context . API . ShowMsgError ( message ) ;
336
+ LogException ( $ "Fail to open file at { record . FullPath } ", e ) ;
337
+ Context . API . ShowMsgError ( string . Format ( Context . API . GetTranslation ( "plugin_explorer_fail_to_open" ) , record . FullPath ) ) ;
340
338
return false ;
341
339
}
342
340
0 commit comments