From f9abff883e4dcc9e974705ee90f0b8d4704e7f14 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 21 May 2014 15:33:46 -0400 Subject: [PATCH] add some web client settings --- .../Localization/Server/server.json | 9 ++++++++- MediaBrowser.ServerApplication/MainStartup.cs | 2 +- MediaBrowser.ServerApplication/ServerNotifyIcon.cs | 11 ++++------- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/MediaBrowser.Server.Implementations/Localization/Server/server.json b/MediaBrowser.Server.Implementations/Localization/Server/server.json index 47a9ea029..5a3294a12 100644 --- a/MediaBrowser.Server.Implementations/Localization/Server/server.json +++ b/MediaBrowser.Server.Implementations/Localization/Server/server.json @@ -773,5 +773,12 @@ "HeaderThisDevice": "This Device", "OptionAuto": "Auto", "OptionYes": "Yes", - "OptionNo": "No" + "OptionNo": "No", + "LabelHomePageSection1": "Home page section one:", + "LabelHomePageSection2": "Home page section two:", + "LabelHomePageSection3": "Home page section three:", + "OptionLibraryButtons": "Library buttons", + "OptionLibraryTiles": "Library tiles", + "OptionResumablemedia": "Resume", + "OptionLatestMedia": "Latest media" } \ No newline at end of file diff --git a/MediaBrowser.ServerApplication/MainStartup.cs b/MediaBrowser.ServerApplication/MainStartup.cs index 444b7bf4c..cd676061e 100644 --- a/MediaBrowser.ServerApplication/MainStartup.cs +++ b/MediaBrowser.ServerApplication/MainStartup.cs @@ -254,7 +254,7 @@ namespace MediaBrowser.ServerApplication { //Application.EnableVisualStyles(); //Application.SetCompatibleTextRenderingDefault(false); - _serverNotifyIcon = new ServerNotifyIcon(_appHost.LogManager, _appHost, _appHost.ServerConfigurationManager, _appHost.UserManager, _appHost.LibraryManager, _appHost.JsonSerializer, _appHost.DisplayPreferencesRepository, _appHost.ItemRepository, _appHost.LocalizationManager); + _serverNotifyIcon = new ServerNotifyIcon(_appHost.LogManager, _appHost, _appHost.ServerConfigurationManager, _appHost.UserManager, _appHost.LibraryManager, _appHost.JsonSerializer, _appHost.ItemRepository, _appHost.LocalizationManager); Application.Run(); } diff --git a/MediaBrowser.ServerApplication/ServerNotifyIcon.cs b/MediaBrowser.ServerApplication/ServerNotifyIcon.cs index 27f47787f..f5f9434e7 100644 --- a/MediaBrowser.ServerApplication/ServerNotifyIcon.cs +++ b/MediaBrowser.ServerApplication/ServerNotifyIcon.cs @@ -1,7 +1,4 @@ -using System; -using System.Diagnostics; -using System.Windows.Forms; -using MediaBrowser.Controller; +using MediaBrowser.Controller; using MediaBrowser.Controller.Configuration; using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Localization; @@ -10,6 +7,9 @@ using MediaBrowser.Model.Logging; using MediaBrowser.Model.Serialization; using MediaBrowser.ServerApplication.Logging; using MediaBrowser.ServerApplication.Native; +using System; +using System.Diagnostics; +using System.Windows.Forms; namespace MediaBrowser.ServerApplication { @@ -40,7 +40,6 @@ namespace MediaBrowser.ServerApplication private readonly IUserManager _userManager; private readonly ILibraryManager _libraryManager; private readonly IJsonSerializer _jsonSerializer; - private readonly IDisplayPreferencesRepository _displayPreferencesManager; private readonly IItemRepository _itemRepository; private readonly ILocalizationManager _localization; private LogForm _logForm; @@ -63,7 +62,6 @@ namespace MediaBrowser.ServerApplication IServerConfigurationManager configurationManager, IUserManager userManager, ILibraryManager libraryManager, IJsonSerializer jsonSerializer, - IDisplayPreferencesRepository displayPreferencesManager, IItemRepository itemRepo, ILocalizationManager localization) { _logger = logManager.GetLogger("MainWindow"); @@ -75,7 +73,6 @@ namespace MediaBrowser.ServerApplication _userManager = userManager; _libraryManager = libraryManager; _jsonSerializer = jsonSerializer; - _displayPreferencesManager = displayPreferencesManager; var components = new System.ComponentModel.Container();