diff api/Objects/Stats.cs @ 228:ece26f6a62f3

Re #223: Use translations within the API * Translate headings in basic HTML output * Remove some translation of exception messages (exceptions are for developers, users should get a message built from exception message) * Replace a string concat with String.Format Still need to check Requirements and below
author IBBoard <dev@ibboard.co.uk>
date Sun, 20 Dec 2009 20:59:28 +0000
parents 8c6f55d289b0
children a54da5a8b5bb
line wrap: on
line diff
--- a/api/Objects/Stats.cs	Sun Dec 20 20:28:14 2009 +0000
+++ b/api/Objects/Stats.cs	Sun Dec 20 20:59:28 2009 +0000
@@ -4,7 +4,6 @@
 
 using System;
 using System.Collections.Generic;
-using IBBoard.Lang;
 
 namespace IBBoard.WarFoundry.API.Objects
 {
@@ -62,7 +61,7 @@
 				}
 				catch (ArgumentException ex)
 				{
-					throw new ArgumentException(Translation.GetTranslation("InvalidStatPos", "Invalid statistic ID {0} for stats based on system stats set {1}", new object[]{id, sysStats.ID}), ex);
+					throw new ArgumentException(String.Format("Invalid statistic ID {0} for stats based on system stats set {1}", new object[]{id, sysStats.ID}), ex);
 				}
 				
 				return stat;
@@ -79,7 +78,7 @@
 				}
 				else
 				{
-					throw new ArgumentException(Translation.GetTranslation("InvalidStatPos", "Invalid statistic position {0} for stats based on system stats set {1}", new object[]{pos, sysStats.ID})); 
+					throw new ArgumentException(String.Format("Invalid statistic position {0} for stats based on system stats set {1}", new object[]{pos, sysStats.ID})); 
 				}
 			}
 		}