update translations

This commit is contained in:
Luke Pulverenti
2014-11-14 01:27:10 -05:00
parent 4f5c768704
commit 1b06e05cf6
81 changed files with 694 additions and 263 deletions

View File

@@ -253,6 +253,19 @@ namespace MediaBrowser.Server.Startup.Common
NativeApp = nativeApp;
}
private Version _version;
/// <summary>
/// Gets the current application version
/// </summary>
/// <value>The application version.</value>
public override Version ApplicationVersion
{
get
{
return _version ?? (_version = NativeApp.GetType().Assembly.GetName().Version);
}
}
public override bool IsRunningAsService
{
get { return NativeApp.IsRunningAsService; }
@@ -327,6 +340,7 @@ namespace MediaBrowser.Server.Startup.Common
new PlaylistImages(ServerConfigurationManager).Run();
new RenameXbmcOptions(ServerConfigurationManager).Run();
new RenameXmlOptions(ServerConfigurationManager).Run();
new DeprecatePlugins(ApplicationPaths).Run();
}
/// <summary>

View File

@@ -1,4 +1,5 @@
using MediaBrowser.Common.Net;
using System;
using MediaBrowser.Common.Net;
using MediaBrowser.Model.Logging;
using System.Collections.Generic;
using System.Reflection;

View File

@@ -24,7 +24,7 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<DebugType>None</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
@@ -60,6 +60,7 @@
<Compile Include="FFMpeg\FFMpegDownloadInfo.cs" />
<Compile Include="FFMpeg\FFMpegInfo.cs" />
<Compile Include="INativeApp.cs" />
<Compile Include="Migrations\DeprecatePlugins.cs" />
<Compile Include="Migrations\IVersionMigration.cs" />
<Compile Include="Migrations\MigrateUserFolders.cs" />
<Compile Include="Migrations\PlaylistImages.cs" />

View File

@@ -0,0 +1,32 @@
using MediaBrowser.Controller;
using System.IO;
namespace MediaBrowser.Server.Startup.Common.Migrations
{
public class DeprecatePlugins : IVersionMigration
{
private readonly IServerApplicationPaths _appPaths;
public DeprecatePlugins(IServerApplicationPaths appPaths)
{
_appPaths = appPaths;
}
public void Run()
{
RemovePlugin("MediaBrowser.Plugins.LocalTrailers.dll");
}
private void RemovePlugin(string filename)
{
try
{
File.Delete(Path.Combine(_appPaths.PluginsPath, filename));
}
catch
{
}
}
}
}