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 diff
     1.1 --- a/IBBoard.csproj	Sun Apr 18 14:09:16 2010 +0000
     1.2 +++ b/IBBoard.csproj	Sun Apr 18 19:01:36 2010 +0000
     1.3 @@ -56,10 +56,6 @@
     1.4      <ErrorReport>prompt</ErrorReport>
     1.5    </PropertyGroup>
     1.6    <ItemGroup>
     1.7 -    <Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821">
     1.8 -      <SpecificVersion>False</SpecificVersion>
     1.9 -      <HintPath>libs\log4net.dll</HintPath>
    1.10 -    </Reference>
    1.11      <Reference Include="System" />
    1.12      <Reference Include="System.Data" />
    1.13      <Reference Include="System.Windows.Forms" />
    1.14 @@ -142,9 +138,6 @@
    1.15      <Compile Include="Lang\XmlTranslationSet.cs" />
    1.16      <Compile Include="Lang\TranslationXmlExtractor.cs" />
    1.17    </ItemGroup>
    1.18 -  <ItemGroup>
    1.19 -    <Content Include="libs\log4net.dll" />
    1.20 -  </ItemGroup>
    1.21    <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
    1.22    <PropertyGroup>
    1.23      <PreBuildEvent>
     2.1 --- a/Lang/Translation.cs	Sun Apr 18 14:09:16 2010 +0000
     2.2 +++ b/Lang/Translation.cs	Sun Apr 18 19:01:36 2010 +0000
     2.3 @@ -25,7 +25,6 @@
     2.4  	/// </summary>
     2.5  	public class Translation
     2.6  	{
     2.7 -		private static readonly string DIVIDER_STRING = "-";
     2.8  		private static AbstractTranslationSet currentTranslations;
     2.9  		private static Dictionary<string, AbstractTranslationSet> langToTranslationMap;
    2.10  		public static event MethodInvoker TranslationChanged;
    2.11 @@ -272,7 +271,7 @@
    2.12  		/// </param>
    2.13  		public static void Translate(ITranslatable item, string defaultText, params object[] replacements)
    2.14  		{
    2.15 -			if (item.Text == "" || item.Text == DIVIDER_STRING)
    2.16 +			if (item.Text == "")
    2.17  			{
    2.18  				//it doesn't need translating - either there is no text from the developer or it's a hyphen for a divider
    2.19  				return;
     3.1 Binary file libs/log4net.dll has changed