mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add custom strings for system info panel on dashboard
This commit is contained in:
parent
92555c36ce
commit
ef3166143a
3 changed files with 10 additions and 9 deletions
|
@ -2,15 +2,15 @@ define(["jQuery", "loading", "fnchecked", "emby-checkbox", "emby-textarea", "emb
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
function loadPage(page, config, languageOptions, systemInfo) {
|
function loadPage(page, config, languageOptions, systemInfo) {
|
||||||
page.querySelector("#txtServerName").value = config.ServerName;
|
page.querySelector("#txtServerName").value = systemInfo.ServerName;
|
||||||
if (systemInfo.CanLaunchWebBrowser) {
|
if (systemInfo.CanLaunchWebBrowser) {
|
||||||
page.querySelector("#fldRunWebAppAtStartup").classList.remove("hide");
|
page.querySelector("#fldRunWebAppAtStartup").classList.remove("hide");
|
||||||
} else {
|
} else {
|
||||||
page.querySelector("#fldRunWebAppAtStartup").classList.add("hide");
|
page.querySelector("#fldRunWebAppAtStartup").classList.add("hide");
|
||||||
}
|
}
|
||||||
page.querySelector("#txtCachePath").value = config.CachePath || "";
|
page.querySelector("#txtCachePath").value = systemInfo.CachePath || "";
|
||||||
$("#txtMetadataPath", page).val(config.MetadataPath || "");
|
$("#txtMetadataPath", page).val(systemInfo.InternalMetadataPath || "");
|
||||||
$("#txtMetadataNetworkPath", page).val(config.MetadataNetworkPath || "");
|
$("#txtMetadataNetworkPath", page).val(systemInfo.MetadataNetworkPath || "");
|
||||||
$("#selectLocalizationLanguage", page).html(languageOptions.map(function(language) {
|
$("#selectLocalizationLanguage", page).html(languageOptions.map(function(language) {
|
||||||
return '<option value="' + language.Value + '">' + language.Name + "</option>"
|
return '<option value="' + language.Value + '">' + language.Name + "</option>"
|
||||||
})).val(config.UICulture);
|
})).val(config.UICulture);
|
||||||
|
|
|
@ -177,9 +177,9 @@ define(["datetime", "events", "itemHelper", "serverNotifications", "dom", "globa
|
||||||
|
|
||||||
function reloadSystemInfo(view, apiClient) {
|
function reloadSystemInfo(view, apiClient) {
|
||||||
apiClient.getSystemInfo().then(function (systemInfo) {
|
apiClient.getSystemInfo().then(function (systemInfo) {
|
||||||
view.querySelector("#serverName").innerHTML = globalize.translate("LabelServerName", systemInfo.ServerName);
|
view.querySelector("#serverName").innerHTML = globalize.translate("DashboardServerName", systemInfo.ServerName);
|
||||||
|
|
||||||
var localizedVersion = globalize.translate("LabelVersionNumber", systemInfo.Version);
|
var localizedVersion = globalize.translate("DashboardVersionNumber", systemInfo.Version);
|
||||||
if (systemInfo.SystemUpdateLevel && "Release" != systemInfo.SystemUpdateLevel) {
|
if (systemInfo.SystemUpdateLevel && "Release" != systemInfo.SystemUpdateLevel) {
|
||||||
localizedVersion += " " + globalize.translate("Option" + systemInfo.SystemUpdateLevel).toLowerCase();
|
localizedVersion += " " + globalize.translate("Option" + systemInfo.SystemUpdateLevel).toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
|
@ -801,7 +801,7 @@
|
||||||
"LabelSeriesRecordingPath": "Series recording path (optional):",
|
"LabelSeriesRecordingPath": "Series recording path (optional):",
|
||||||
"LabelServerHost": "Host:",
|
"LabelServerHost": "Host:",
|
||||||
"LabelServerHostHelp": "192.168.1.100 or https://myserver.com",
|
"LabelServerHostHelp": "192.168.1.100 or https://myserver.com",
|
||||||
"LabelServerName": "Server Name: {0}",
|
"LabelServerName": "Server name:",
|
||||||
"LabelServerPort": "Port:",
|
"LabelServerPort": "Port:",
|
||||||
"LabelSimultaneousConnectionLimit": "Simultaneous stream limit:",
|
"LabelSimultaneousConnectionLimit": "Simultaneous stream limit:",
|
||||||
"LabelSkin": "Skin:",
|
"LabelSkin": "Skin:",
|
||||||
|
@ -866,9 +866,10 @@
|
||||||
"LabelValue": "Value:",
|
"LabelValue": "Value:",
|
||||||
"LabelVersion": "Version:",
|
"LabelVersion": "Version:",
|
||||||
"LabelVersionInstalled": "{0} installed",
|
"LabelVersionInstalled": "{0} installed",
|
||||||
"LabelVersionNumber": "Version: {0}",
|
"DashboardVersionNumber": "Version: {0}",
|
||||||
|
"DashboardServerName": "Server: {0}",
|
||||||
"LabelVideo": "Video:",
|
"LabelVideo": "Video:",
|
||||||
"LabelWeb": "Web",
|
"LabelWeb": "Web: ",
|
||||||
"LabelXDlnaCap": "X-Dlna cap:",
|
"LabelXDlnaCap": "X-Dlna cap:",
|
||||||
"LabelXDlnaCapHelp": "Determines the content of the X_DLNACAP element in the urn:schemas-dlna-org:device-1-0 namespace.",
|
"LabelXDlnaCapHelp": "Determines the content of the X_DLNACAP element in the urn:schemas-dlna-org:device-1-0 namespace.",
|
||||||
"LabelXDlnaDoc": "X-Dlna doc:",
|
"LabelXDlnaDoc": "X-Dlna doc:",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue