@@ -712,7 +712,7 @@ private async Task SaveToFile()
712
712
catch ( Exception Ex )
713
713
{
714
714
Logger . Error ( Ex , DebugStrings . AppDbgExSaveTask ) ;
715
- MessageBox . Show ( string . Format ( AppStrings . AHE_SaveException , App . HostsFile . FilePath ) , Properties . Resources . AppName , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
715
+ MessageBox . Show ( string . Format ( AppStrings . AHE_SaveError , App . HostsFile . FilePath ) , Properties . Resources . AppName , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
716
716
}
717
717
}
718
718
else
@@ -736,7 +736,7 @@ private async Task ExportToFile()
736
736
catch ( Exception Ex )
737
737
{
738
738
Logger . Error ( Ex , DebugStrings . AppDbgExExportTask ) ;
739
- MessageBox . Show ( AppStrings . AHE_ExportException , Properties . Resources . AppName , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
739
+ MessageBox . Show ( AppStrings . AHE_ExportError , Properties . Resources . AppName , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
740
740
}
741
741
}
742
742
}
@@ -753,13 +753,13 @@ private async Task LoadHostsFile()
753
753
catch ( FileNotFoundException Ex )
754
754
{
755
755
Logger . Error ( Ex , DebugStrings . AppDbgHostsFileDoesNotExists ) ;
756
- MessageBox . Show ( string . Format ( AppStrings . AHE_NoFileDetected , App . HostsFile . FilePath ) , Properties . Resources . AppName , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
756
+ MessageBox . Show ( string . Format ( AppStrings . AHE_HostsNotFound , App . HostsFile . FilePath ) , Properties . Resources . AppName , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
757
757
App . Platform . Exit ( ReturnCodes . HostsFileDoesNotExists ) ;
758
758
}
759
759
catch ( Exception Ex )
760
760
{
761
761
Logger . Error ( Ex , DebugStrings . AppDbgExHostsLoadParse ) ;
762
- MessageBox . Show ( string . Format ( AppStrings . AHE_ExceptionDetected , App . HostsFile . FilePath , Properties . Resources . AppName , MessageBoxButtons . OK , MessageBoxIcon . Error ) ) ;
762
+ MessageBox . Show ( string . Format ( AppStrings . AHE_HostsLoadParseError , App . HostsFile . FilePath , Properties . Resources . AppName , MessageBoxButtons . OK , MessageBoxIcon . Error ) ) ;
763
763
}
764
764
}
765
765
@@ -785,7 +785,7 @@ private async Task ImportFromFile()
785
785
catch ( Exception Ex )
786
786
{
787
787
Logger . Error ( Ex , DebugStrings . AppDbgExImportTask ) ;
788
- MessageBox . Show ( AppStrings . AHE_ImportFileException , Properties . Resources . AppName , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
788
+ MessageBox . Show ( AppStrings . AHE_ImportError , Properties . Resources . AppName , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
789
789
}
790
790
}
791
791
}
@@ -807,7 +807,7 @@ private async Task ReloadHostsFile()
807
807
catch ( Exception Ex )
808
808
{
809
809
Logger . Error ( Ex , DebugStrings . AppDbgExHostsLoadParse ) ;
810
- MessageBox . Show ( string . Format ( AppStrings . AHE_ExceptionDetected , App . HostsFile . FilePath ) , Properties . Resources . AppName , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
810
+ MessageBox . Show ( string . Format ( AppStrings . AHE_HostsLoadParseError , App . HostsFile . FilePath ) , Properties . Resources . AppName , MessageBoxButtons . OK , MessageBoxIcon . Error ) ;
811
811
}
812
812
}
813
813
@@ -1003,7 +1003,7 @@ private void HE_MenuDeleteItem_Click(object sender, EventArgs e)
1003
1003
/// <param name="e">Event arguments.</param>
1004
1004
private async void HE_MenuRestoreDefaultsItem_Click ( object sender , EventArgs e )
1005
1005
{
1006
- if ( MessageBox . Show ( AppStrings . AHE_RestDef , Properties . Resources . AppName , MessageBoxButtons . YesNo , MessageBoxIcon . Question , MessageBoxDefaultButton . Button2 ) == DialogResult . Yes )
1006
+ if ( MessageBox . Show ( AppStrings . AHE_RestoreDefaultsQuestion , Properties . Resources . AppName , MessageBoxButtons . YesNo , MessageBoxIcon . Question , MessageBoxDefaultButton . Button2 ) == DialogResult . Yes )
1007
1007
{
1008
1008
App . HostsFile . Restore ( ) ;
1009
1009
await SaveToFile ( ) ;
@@ -1227,7 +1227,7 @@ private void HE_StatusBarHostsLocation_MouseLeave(object sender, EventArgs e)
1227
1227
/// <param name="e">Event arguments.</param>
1228
1228
private void HE_StatusBarHostsLocation_Click ( object sender , EventArgs e )
1229
1229
{
1230
- if ( MessageBox . Show ( string . Format ( AppStrings . AHE_HMessg , App . HostsFile . FilePath ) , Properties . Resources . AppName , MessageBoxButtons . YesNo , MessageBoxIcon . Question , MessageBoxDefaultButton . Button2 ) == DialogResult . Yes )
1230
+ if ( MessageBox . Show ( string . Format ( AppStrings . AHE_HostsLocation , App . HostsFile . FilePath ) , Properties . Resources . AppName , MessageBoxButtons . YesNo , MessageBoxIcon . Question , MessageBoxDefaultButton . Button2 ) == DialogResult . Yes )
1231
1231
{
1232
1232
HelperShowFile ( App . HostsFile . FilePath ) ;
1233
1233
}
0 commit comments