Ignore:
Timestamp:
03/30/08 13:29:58 (7 years ago)
Author:
lowjoel
Message:

Internationalize the Eraser main project source files. Designer files haven't been internationalized, though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Eraser/Program.cs

    r310 r314  
    44 
    55using Eraser.Manager; 
     6using Eraser.Util; 
    67using Microsoft.Win32; 
    78using System.IO; 
     
    2122            Application.EnableVisualStyles(); 
    2223            Application.SetCompatibleTextRenderingDefault(false); 
    23             Application.SafeTopLevelCaptionFormat = "Eraser"; 
     24            Application.SafeTopLevelCaptionFormat = S._("Eraser"); 
    2425 
    2526            using (ManagerLibrary library = new ManagerLibrary()) 
     
    4243                    { 
    4344                        key.DeleteValue("TaskList"); 
    44                         MessageBox.Show("Could not load task list. All task entries have " + 
    45                             "been lost.", "Eraser", MessageBoxButtons.OK, 
     45                        MessageBox.Show(S._("Could not load task list. All task entries have " + 
     46                            "been lost."), S._("Eraser"), MessageBoxButtons.OK, 
    4647                            MessageBoxIcon.Error); 
    4748                    } 
     
    9798                (int)key.GetValue("PlausibleDeniability", (object)1) != 0; 
    9899            UILanguage = (string)key.GetValue("UILanguage", string.Empty); 
    99             Util.S.Language = new CultureInfo(UILanguage); 
     100            S.Language = new CultureInfo(UILanguage); 
    100101 
    101102            //Load the plugin settings. 
     
    112113                    { 
    113114                        key.DeleteValue("PluginSettings"); 
    114                         MessageBox.Show("Could not load plugin settings. All settings " + 
    115                             "have been lost", "Eraser", MessageBoxButtons.OK, 
     115                        MessageBox.Show(S._("Could not load plugin settings. All settings " + 
     116                            "have been lost"), S._("Eraser"), MessageBoxButtons.OK, 
    116117                            MessageBoxIcon.Error); 
    117118                    } 
Note: See TracChangeset for help on using the changeset viewer.