Changeset 1095


Ignore:
Timestamp:
6/2/2009 10:02:10 AM (6 years ago)
Author:
lowjoel
Message:

Specify whether the current build is a special build (i.e. files were modified to build the binaries)

Location:
trunk/eraser6
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6/Eraser/AboutForm.cs

    r1075 r1095  
    112112                SizeF eraserSize = g.MeasureString(S._("Eraser"), boldFont); 
    113113                g.DrawString(S._("Eraser"), boldFont, textBrush, eraserPos); 
    114                 S._("{0} (Built: {1:F})"); 
    115                 g.DrawString(S._("{0} (Built: {1:F})", 
     114 
     115                string versionString = BuildInfo.CustomBuild ? 
     116                    S._("{0} (Built: {1:F}, special build)") : S._("{0} (Built: {1:F})"); 
     117                g.DrawString(string.Format(CultureInfo.CurrentCulture, versionString, 
    116118                    Assembly.GetExecutingAssembly().GetName().Version, BuildInfo.BuildDate), 
    117119                    Font, textBrush, new PointF(eraserPos.X + eraserSize.Width + 3, eraserPos.Y)); 
  • trunk/eraser6/Eraser/Strings.NL.resx

    r1075 r1095  
    124124    <value>Eraser</value> 
    125125  </data> 
     126  <data name="{0} (Built: {1:F}, special build)" xml:space="preserve"> 
     127    <value>(Untranslated)</value> 
     128  </data> 
    126129  <data name="{0} (Built: {1:F})" xml:space="preserve"> 
    127130    <value>(Untranslated)</value> 
  • trunk/eraser6/Eraser/Strings.en.resx

    r1075 r1095  
    124124    <value>Eraser</value> 
    125125  </data> 
     126  <data name="{0} (Built: {1:F}, special build)" xml:space="preserve"> 
     127    <value>{0} (Built: {1:F}, special build)</value> 
     128  </data> 
    126129  <data name="{0} (Built: {1:F})" xml:space="preserve"> 
    127130    <value>{0} (Built: {1:F})</value> 
  • trunk/eraser6/Eraser/Strings.resx

    r1075 r1095  
    124124    <value>Eraser</value> 
    125125  </data> 
     126  <data name="{0} (Built: {1:F}, special build)" xml:space="preserve"> 
     127    <value>{0} (Built: {1:F}, special build)</value> 
     128  </data> 
    126129  <data name="{0} (Built: {1:F})" xml:space="preserve"> 
    127130    <value>{0} (Built: {1:F})</value> 
  • trunk/eraser6/Version.cs.in

    r1075 r1095  
    3030        public static readonly DateTime BuildDate = DateTime.Parse("$WCNOW$", 
    3131            System.Globalization.CultureInfo.InvariantCulture); 
     32        public static readonly bool CustomBuild = $WCMODS?true:false$; 
    3233    } 
    3334} 
Note: See TracChangeset for help on using the changeset viewer.