Changeset 604


Ignore:
Timestamp:
11/21/2008 12:00:13 PM (6 years ago)
Author:
lowjoel
Message:

Added internationalisation support for Eraser Manager. The strings need to be marked for translation, though.

Location:
branches/eraser6
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Installer/DirectoryStructure.wxs

    r591 r604  
    4646                            Source="..\bin\Release\en\Eraser.resources.dll" 
    4747                            ProcessorArchitecture="msil" /> 
     48                        <File Id="EraserManagerEn" Name="Eraser.Manager.resources.dll" 
     49                            Source="..\bin\Release\en\Eraser.Manager.resources.dll" 
     50                            ProcessorArchitecture="msil" /> 
    4851                    </Component> 
    4952                </Directory> 
  • branches/eraser6/Installer/Localisations.wxs

    r590 r604  
    2929                        Source="..\bin\Release\nl\Eraser.resources.dll" 
    3030                        ProcessorArchitecture="msil" /> 
     31                    <File Id="EraserManagerNl" Name="Eraser.Manager.resources.dll" 
     32                        Source="..\bin\Release\nl\Eraser.Manager.resources.dll" 
     33                        ProcessorArchitecture="msil" /> 
    3134                </Component> 
    3235            </Directory> 
  • branches/eraser6/Manager/DirectExecutor.cs

    r602 r604  
    5858        public override void Run() 
    5959        { 
     60            thread.CurrentUICulture = Thread.CurrentThread.CurrentUICulture; 
    6061            thread.Start(); 
    6162        } 
     
    881882                        RemoveFile(fileInfo); 
    882883                } 
     884                catch (UnauthorizedAccessException) 
     885                { 
     886                    task.Log.Add(new LogEntry(S._("The file {0} could not be erased because the file's " + 
     887                        "permissions prevent access to the file.", info.FullName), LogLevel.ERROR)); 
     888                } 
    883889                finally 
    884890                { 
  • branches/eraser6/Manager/Manager.csproj

    r592 r604  
    7070    <None Include="Manager.cd" /> 
    7171  </ItemGroup> 
     72  <ItemGroup> 
     73    <EmbeddedResource Include="Strings.en.resx" /> 
     74    <EmbeddedResource Include="Strings.nl.resx" /> 
     75    <EmbeddedResource Include="Strings.resx" /> 
     76  </ItemGroup> 
    7277  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 
    7378  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.  
     
    7883  </Target> 
    7984  --> 
     85  <PropertyGroup> 
     86    <PreBuildEvent>csgettext --merge EN,NL "$(ProjectDir)\" Strings 
     87if ERRORLEVEL 0 exit 0</PreBuildEvent> 
     88  </PropertyGroup> 
    8089</Project> 
Note: See TracChangeset for help on using the changeset viewer.