Changeset 1999 for trunk/eraser


Ignore:
Timestamp:
5/1/2010 10:01:48 AM (5 years ago)
Author:
lowjoel
Message:

Introduced localisations for Eraser.Util. Some Eraser.Util strings can no be localised. Address #262.

Location:
trunk/eraser/Eraser.Util
Files:
5 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.Util/Eraser.Util.csproj

    r1985 r1999  
    154154    </BootstrapperPackage> 
    155155  </ItemGroup> 
     156  <ItemGroup> 
     157    <EmbeddedResource Include="Strings.en.resx" /> 
     158    <EmbeddedResource Include="Strings.it.resx" /> 
     159    <EmbeddedResource Include="Strings.nl.resx" /> 
     160    <EmbeddedResource Include="Strings.pl.resx" /> 
     161    <EmbeddedResource Include="Strings.resx" /> 
     162  </ItemGroup> 
    156163  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 
    157164  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.  
     
    164171  <PropertyGroup> 
    165172    <PreBuildEvent>call "$(SolutionDir)UpdateVersions.bat" "$(SolutionDir)\." "$(SolutionDir)Version.cs.in" "$(SolutionDir)Version.cs" 
    166 </PreBuildEvent> 
     173csgettext --merge --recursive EN,NL,IT,PL "$(ProjectDir)\." Strings 
     174if ERRORLEVEL 0 exit 0</PreBuildEvent> 
    167175  </PropertyGroup> 
    168176</Project> 
  • trunk/eraser/Eraser.Util/ExtensionMethods/IO.cs

    r1802 r1999  
    219219            else 
    220220                throw new IOException(string.Format(CultureInfo.CurrentCulture, 
    221                     "Could not load file icon from {0}", info.FullName), 
     221                    S._("Could not load file icon from {0}"), info.FullName), 
    222222                    Win32ErrorCode.GetExceptionForWin32Error(Marshal.GetLastWin32Error())); 
    223223        } 
  • trunk/eraser/Eraser.Util/FileSize.cs

    r1802 r1999  
    162162            //List of units, in ascending scale 
    163163            string[] units = new string[] { 
    164                 "bytes", 
    165                 "KB", 
    166                 "MB", 
    167                 "GB", 
    168                 "TB", 
    169                 "PB", 
    170                 "EB" 
     164                S._("bytes"), 
     165                S._("KB"), 
     166                S._("MB"), 
     167                S._("GB"), 
     168                S._("TB"), 
     169                S._("PB"), 
     170                S._("EB") 
    171171            }; 
    172172 
  • trunk/eraser/Eraser.Util/Logger.cs

    r1802 r1999  
    507507 
    508508            Target.OnEventLogged(this, new LogEventArgs( 
    509                 new LogEntry(/*S._*/("Session started"), LogLevel.Information))); 
     509                new LogEntry(S._("Session started"), LogLevel.Information))); 
    510510        } 
    511511 
     
    540540 
    541541            Target.OnEventLogged(this, new LogEventArgs( 
    542                 new LogEntry(/*S._*/("Session ended"), LogLevel.Information))); 
     542                new LogEntry(S._("Session ended"), LogLevel.Information))); 
    543543            Threads = null; 
    544544            Target = null; 
Note: See TracChangeset for help on using the changeset viewer.