Changeset 1497 for trunk/eraser6
- Timestamp:
- 1/11/2010 3:52:47 AM (3 years ago)
- Location:
- trunk/eraser6/Eraser.Manager
- Files:
-
- 5 edited
-
Strings.en.resx (modified) (1 diff)
-
Strings.it.resx (modified) (1 diff)
-
Strings.nl.resx (modified) (1 diff)
-
Strings.resx (modified) (1 diff)
-
Task.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser6/Eraser.Manager/Strings.en.resx
r1496 r1497 283 283 <value>An invalid type was found when loading the task schedule</value> 284 284 </data> 285 <data name="{0} and {1} other files" xml:space="preserve"> 286 <value>{0} and {1} other files</value> 287 </data> 285 288 <data name="The schedule provided can only belong to one task at a time" xml:space="preserve"> 286 289 <value>The schedule provided can only belong to one task at a time</value> -
trunk/eraser6/Eraser.Manager/Strings.it.resx
r1496 r1497 283 283 <value>Un tipo non valido è stato trovato durante il caricamento della pianificazione dell'operazione</value> 284 284 </data> 285 <data name="{0} and {1} other files" xml:space="preserve"> 286 <value>(Untranslated)</value> 287 </data> 285 288 <data name="The schedule provided can only belong to one task at a time" xml:space="preserve"> 286 289 <value>La pianificazione definita può riferirsi solo ad un operazione alla volta</value> -
trunk/eraser6/Eraser.Manager/Strings.nl.resx
r1496 r1497 283 283 <value>(Untranslated)</value> 284 284 </data> 285 <data name="{0} and {1} other files" xml:space="preserve"> 286 <value>(Untranslated)</value> 287 </data> 285 288 <data name="The schedule provided can only belong to one task at a time" xml:space="preserve"> 286 289 <value>(Untranslated)</value> -
trunk/eraser6/Eraser.Manager/Strings.resx
r1496 r1497 283 283 <value>An invalid type was found when loading the task schedule</value> 284 284 </data> 285 <data name="{0} and {1} other files" xml:space="preserve"> 286 <value>{0} and {1} other files</value> 287 </data> 285 288 <data name="The schedule provided can only belong to one task at a time" xml:space="preserve"> 286 289 <value>The schedule provided can only belong to one task at a time</value> -
trunk/eraser6/Eraser.Manager/Task.cs
r1374 r1497 118 118 119 119 string result = string.Empty; 120 if (Targets.Count < 3) 120 if (Targets.Count < 5) 121 { 121 122 //Simpler case, small set of data. 122 123 foreach (ErasureTarget tgt in Targets) 123 124 result += tgt.UIText + ", "; 125 126 return result.Remove(result.Length - 2); 127 } 124 128 else 129 { 125 130 //Ok, we've quite a few entries, get the first, the mid and the end. 126 for (int i = 0; i < Targets.Count; i += Targets.Count / 3) 127 result += Targets[i].UIText + ", "; 128 return result.Substring(0, result.Length - 2); 131 result = Targets[0].UIText + ", "; 132 result += Targets[Targets.Count / 2].UIText + ", "; 133 result += Targets[Targets.Count - 1].UIText; 134 135 return S._("{0} and {1} other files", result, Targets.Count - 3); 136 } 129 137 } 130 138 } … … 456 464 public override string UIText 457 465 { 458 get { return Path; }466 get { return System.IO.Path.GetFileName(Path); } 459 467 } 460 468
Note: See TracChangeset
for help on using the changeset viewer.
