mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
Translated RefreshChannelScheduledTask as well
This commit is contained in:
parent
28f07df657
commit
07f4893ba6
@ -9,6 +9,7 @@ using MediaBrowser.Controller.Channels;
|
||||
using MediaBrowser.Controller.Library;
|
||||
using MediaBrowser.Model.Tasks;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using MediaBrowser.Model.Globalization;
|
||||
|
||||
namespace Emby.Server.Implementations.Channels
|
||||
{
|
||||
@ -18,27 +19,30 @@ namespace Emby.Server.Implementations.Channels
|
||||
private readonly IUserManager _userManager;
|
||||
private readonly ILogger _logger;
|
||||
private readonly ILibraryManager _libraryManager;
|
||||
private readonly ILocalizationManager _localization;
|
||||
|
||||
public RefreshChannelsScheduledTask(
|
||||
IChannelManager channelManager,
|
||||
IUserManager userManager,
|
||||
ILogger<RefreshChannelsScheduledTask> logger,
|
||||
ILibraryManager libraryManager)
|
||||
ILibraryManager libraryManager,
|
||||
ILocalizationManager localization)
|
||||
{
|
||||
_channelManager = channelManager;
|
||||
_userManager = userManager;
|
||||
_logger = logger;
|
||||
_libraryManager = libraryManager;
|
||||
_localization = localization;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public string Name => "Refresh Channels";
|
||||
public string Name => _localization.GetLocalizedString("TasksRefreshChannels");
|
||||
|
||||
/// <inheritdoc />
|
||||
public string Description => "Refreshes internet channel information.";
|
||||
public string Description => _localization.GetLocalizedString("TasksRefreshChannelsDescription");
|
||||
|
||||
/// <inheritdoc />
|
||||
public string Category => "Internet Channels";
|
||||
public string Category => _localization.GetLocalizedString("TasksCategoryChannels");
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool IsHidden => ((ChannelManager)_channelManager).Channels.Length == 0;
|
||||
|
@ -95,6 +95,7 @@
|
||||
"TasksCategoryMaintenance": "Maintenance",
|
||||
"TasksCategoryLibrary": "Library",
|
||||
"TasksCategoryApplication": "Application",
|
||||
"TasksCategoryChannels": "Canales de internet",
|
||||
"TaskCleanCache": "Clean Cache Directory",
|
||||
"TaskCleanCacheDescription": "Deletes cache files no longer needed by the system.",
|
||||
"TaskRefreshChapterImages": "Extract Chapter Images",
|
||||
@ -108,5 +109,7 @@
|
||||
"TaskUpdatePlugins": "Update Plugins",
|
||||
"TaskUpdatePluginsDescription": "Downloads and installs updates for plugins that are configured to update automatically.",
|
||||
"TaskCleanTranscode": "Clean Transcode Directory",
|
||||
"TaskCleanTranscodeDescription": "Deletes transcode files more than one day old."
|
||||
"TaskCleanTranscodeDescription": "Deletes transcode files more than one day old.",
|
||||
"TaskRefreshChannels": "Refresh Channels",
|
||||
"TaskRefreshChannelsDescription": "Refreshes internet channel information."
|
||||
}
|
||||
|
@ -96,6 +96,7 @@
|
||||
"TasksCategoryMaintenance": "Mantenimiento",
|
||||
"TasksCategoryLibrary": "Librería",
|
||||
"TasksCategoryApplication": "Aplicación",
|
||||
"TasksCategoryChannels": "Canales de internet",
|
||||
"TaskCleanCache": "Eliminar archivos temporales",
|
||||
"TaskCleanCacheDescription": "Elimina los archivos temporales que ya no son necesarios para el servidor",
|
||||
"TaskRefreshChapterImages": "Extraer imágenes de los capítulos",
|
||||
@ -109,5 +110,7 @@
|
||||
"TaskUpdatePlugins": "Actualizar extensiones",
|
||||
"TaskUpdatePluginsDescription": "Actualiza las extensiones que están configuradas para actualizarse automáticamente",
|
||||
"TaskCleanTranscode": "Limpiar las transcodificaciones",
|
||||
"TaskCleanTranscodeDescription": "Elimina los archivos temporales creados mientras se transcodificaba el contenido"
|
||||
"TaskCleanTranscodeDescription": "Elimina los archivos temporales creados mientras se transcodificaba el contenido",
|
||||
"TaskRefreshChannels": "Actualizar canales",
|
||||
"TaskRefreshChannelsDescription": "Actualiza la información de los canales de internet"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user