2020-08-22 21:56:24 +02:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 21:01:16 +01:00
|
|
|
using System.IO;
|
2018-12-28 00:27:57 +01:00
|
|
|
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;
|
2019-01-08 00:27:46 +01:00
|
|
|
}
|
2018-12-28 00:27:57 +01:00
|
|
|
}
|
|
|
|
}
|