changeset 82:5182df00c558

Fixes #36: Remove specialist "divider" handling from Translations * Remove special handling (shouldn't be needed anyway as we have IBBMenuItems that identify what a translatable item is) Also: * Remove unnecessary log4net library
author IBBoard <dev@ibboard.co.uk>
date Sun, 18 Apr 2010 19:01:36 +0000
parents 09f71d10c249
children 13f0ffb012cb
files IBBoard.csproj Lang/Translation.cs libs/log4net.dll
diffstat 3 files changed, 1 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/IBBoard.csproj	Sun Apr 18 14:09:16 2010 +0000
+++ b/IBBoard.csproj	Sun Apr 18 19:01:36 2010 +0000
@@ -56,10 +56,6 @@
     <ErrorReport>prompt</ErrorReport>
   </PropertyGroup>
   <ItemGroup>
-    <Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821">
-      <SpecificVersion>False</SpecificVersion>
-      <HintPath>libs\log4net.dll</HintPath>
-    </Reference>
     <Reference Include="System" />
     <Reference Include="System.Data" />
     <Reference Include="System.Windows.Forms" />
@@ -142,9 +138,6 @@
     <Compile Include="Lang\XmlTranslationSet.cs" />
     <Compile Include="Lang\TranslationXmlExtractor.cs" />
   </ItemGroup>
-  <ItemGroup>
-    <Content Include="libs\log4net.dll" />
-  </ItemGroup>
   <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
   <PropertyGroup>
     <PreBuildEvent>
--- a/Lang/Translation.cs	Sun Apr 18 14:09:16 2010 +0000
+++ b/Lang/Translation.cs	Sun Apr 18 19:01:36 2010 +0000
@@ -25,7 +25,6 @@
 	/// </summary>
 	public class Translation
 	{
-		private static readonly string DIVIDER_STRING = "-";
 		private static AbstractTranslationSet currentTranslations;
 		private static Dictionary<string, AbstractTranslationSet> langToTranslationMap;
 		public static event MethodInvoker TranslationChanged;
@@ -272,7 +271,7 @@
 		/// </param>
 		public static void Translate(ITranslatable item, string defaultText, params object[] replacements)
 		{
-			if (item.Text == "" || item.Text == DIVIDER_STRING)
+			if (item.Text == "")
 			{
 				//it doesn't need translating - either there is no text from the developer or it's a hyphen for a divider
 				return;
Binary file libs/log4net.dll has changed