Changeset 2104 for trunk/eraser


Ignore:
Timestamp:
5/14/2010 2:23:04 PM (5 years ago)
Author:
lowjoel
Message:

Code structure more amenable to localisation.

Location:
trunk/eraser/Eraser.Manager
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.Manager/Strings.en.resx

    r2050 r2104  
    220220    <value>An invalid type was found when loading the task schedule</value> 
    221221  </data> 
     222  <data name="{0}, " xml:space="preserve"> 
     223    <value>{0}, </value> 
     224  </data> 
    222225  <data name="{0} and {1} other targets" xml:space="preserve"> 
    223226    <value>{0} and {1} other targets</value> 
  • trunk/eraser/Eraser.Manager/Strings.it.resx

    r2050 r2104  
    220220    <value>Un tipo non valido è stato trovato durante il caricamento della pianificazione dell'operazione</value> 
    221221  </data> 
     222  <data name="{0}, " xml:space="preserve"> 
     223    <value>(Untranslated)</value> 
     224  </data> 
    222225  <data name="{0} and {1} other targets" xml:space="preserve"> 
    223226    <value>{0} e {1} altri target</value> 
  • trunk/eraser/Eraser.Manager/Strings.nl.resx

    r2050 r2104  
    220220    <value>(Untranslated)</value> 
    221221  </data> 
     222  <data name="{0}, " xml:space="preserve"> 
     223    <value>(Untranslated)</value> 
     224  </data> 
    222225  <data name="{0} and {1} other targets" xml:space="preserve"> 
    223226    <value>(Untranslated)</value> 
  • trunk/eraser/Eraser.Manager/Strings.pl.resx

    r2050 r2104  
    220220    <value>Podczas ładowania napotkano niewłaściwy typ harmonogramu zadań</value> 
    221221  </data> 
     222  <data name="{0}, " xml:space="preserve"> 
     223    <value>(Untranslated)</value> 
     224  </data> 
    222225  <data name="{0} and {1} other targets" xml:space="preserve"> 
    223226    <value>{0} i {1} inne cele</value> 
  • trunk/eraser/Eraser.Manager/Strings.resx

    r2050 r2104  
    220220    <value>An invalid type was found when loading the task schedule</value> 
    221221  </data> 
     222  <data name="{0}, " xml:space="preserve"> 
     223    <value>{0}, </value> 
     224  </data> 
    222225  <data name="{0} and {1} other targets" xml:space="preserve"> 
    223226    <value>{0} and {1} other targets</value> 
  • trunk/eraser/Eraser.Manager/Task.cs

    r2103 r2104  
    124124                    //Simpler case, small set of data. 
    125125                    foreach (ErasureTarget tgt in Targets) 
    126                         result += tgt.UIText + ", "; 
     126                        result += S._("{0}, ", tgt.UIText); 
    127127 
    128128                    return result.Remove(result.Length - 2); 
     
    131131                { 
    132132                    //Ok, we've quite a few entries, get the first, the mid and the end. 
    133                     result = Targets[0].UIText + ", "; 
    134                     result += Targets[Targets.Count / 2].UIText + ", "; 
     133                    result = S._("{0}, ", Targets[0].UIText); 
     134                    result += S._("{0}, ", Targets[Targets.Count / 2].UIText); 
    135135                    result += Targets[Targets.Count - 1].UIText; 
    136136 
Note: See TracChangeset for help on using the changeset viewer.