mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Make screensaver names translateable
This commit is contained in:
parent
a6a1a39eaf
commit
2c608aa7d6
4 changed files with 5 additions and 3 deletions
|
@ -36,7 +36,7 @@ function loadScreensavers(context, userSettings) {
|
||||||
const selectScreensaver = context.querySelector('.selectScreensaver');
|
const selectScreensaver = context.querySelector('.selectScreensaver');
|
||||||
const options = pluginManager.ofType(PluginType.Screensaver).map(plugin => {
|
const options = pluginManager.ofType(PluginType.Screensaver).map(plugin => {
|
||||||
return {
|
return {
|
||||||
name: plugin.name,
|
name: globalize.translate(plugin.name),
|
||||||
value: plugin.id
|
value: plugin.id
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -5,7 +5,7 @@ import * as userSettings from '../../scripts/settings/userSettings';
|
||||||
|
|
||||||
class BackdropScreensaver {
|
class BackdropScreensaver {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.name = 'Backdrop ScreenSaver';
|
this.name = "BackdropScreensaver";
|
||||||
this.type = PluginType.Screensaver;
|
this.type = PluginType.Screensaver;
|
||||||
this.id = 'backdropscreensaver';
|
this.id = 'backdropscreensaver';
|
||||||
this.supportsAnonymous = false;
|
this.supportsAnonymous = false;
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { randomInt } from '../../utils/number.ts';
|
||||||
export default function () {
|
export default function () {
|
||||||
const self = this;
|
const self = this;
|
||||||
|
|
||||||
self.name = 'Logo ScreenSaver';
|
self.name = 'LogoScreensaver';
|
||||||
self.type = PluginType.Screensaver;
|
self.type = PluginType.Screensaver;
|
||||||
self.id = 'logoscreensaver';
|
self.id = 'logoscreensaver';
|
||||||
self.supportsAnonymous = true;
|
self.supportsAnonymous = true;
|
||||||
|
|
|
@ -59,6 +59,7 @@
|
||||||
"Auto": "Auto",
|
"Auto": "Auto",
|
||||||
"Backdrop": "Backdrop",
|
"Backdrop": "Backdrop",
|
||||||
"Backdrops": "Backdrops",
|
"Backdrops": "Backdrops",
|
||||||
|
"BackdropScreensaver": "Backdrop Screensaver",
|
||||||
"Banner": "Banner",
|
"Banner": "Banner",
|
||||||
"BirthDateValue": "Born: {0}",
|
"BirthDateValue": "Born: {0}",
|
||||||
"BirthLocation": "Birth location",
|
"BirthLocation": "Birth location",
|
||||||
|
@ -1016,6 +1017,7 @@
|
||||||
"LogLevel.Critical": "Critical",
|
"LogLevel.Critical": "Critical",
|
||||||
"LogLevel.None": "None",
|
"LogLevel.None": "None",
|
||||||
"Logo": "Logo",
|
"Logo": "Logo",
|
||||||
|
"LogoScreensaver": "Logo Screensaver",
|
||||||
"Lyricist": "Lyricist",
|
"Lyricist": "Lyricist",
|
||||||
"ManageLibrary": "Manage library",
|
"ManageLibrary": "Manage library",
|
||||||
"ManageRecording": "Manage recording",
|
"ManageRecording": "Manage recording",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue