mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-05 07:18:47 +01:00
stub out localizable plugin
This commit is contained in:
@@ -249,6 +249,7 @@
|
||||
<Compile Include="Persistence\MediaStreamQuery.cs" />
|
||||
<Compile Include="Playlists\IPlaylistManager.cs" />
|
||||
<Compile Include="Playlists\Playlist.cs" />
|
||||
<Compile Include="Plugins\ILocalizablePlugin.cs" />
|
||||
<Compile Include="Providers\AlbumInfo.cs" />
|
||||
<Compile Include="Providers\ArtistInfo.cs" />
|
||||
<Compile Include="Providers\BookInfo.cs" />
|
||||
|
||||
20
MediaBrowser.Controller/Plugins/ILocalizablePlugin.cs
Normal file
20
MediaBrowser.Controller/Plugins/ILocalizablePlugin.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
|
||||
namespace MediaBrowser.Controller.Plugins
|
||||
{
|
||||
public interface ILocalizablePlugin
|
||||
{
|
||||
Stream GetDictionary(string culture);
|
||||
}
|
||||
|
||||
public static class LocalizablePluginHelper
|
||||
{
|
||||
public static Stream GetDictionary(Assembly assembly, string manifestPrefix, string culture)
|
||||
{
|
||||
// Find all dictionaries using GetManifestResourceNames, start start with the prefix
|
||||
// Return the one for the culture if exists, otherwise return the default
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user