1
0
Fork 0
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:
Lukáš Kucharczyk 2023-09-20 07:47:14 +02:00
parent a6a1a39eaf
commit 2c608aa7d6
4 changed files with 5 additions and 3 deletions

View file

@ -36,7 +36,7 @@ function loadScreensavers(context, userSettings) {
const selectScreensaver = context.querySelector('.selectScreensaver');
const options = pluginManager.ofType(PluginType.Screensaver).map(plugin => {
return {
name: plugin.name,
name: globalize.translate(plugin.name),
value: plugin.id
};
});

View file

@ -5,7 +5,7 @@ import * as userSettings from '../../scripts/settings/userSettings';
class BackdropScreensaver {
constructor() {
this.name = 'Backdrop ScreenSaver';
this.name = "BackdropScreensaver";
this.type = PluginType.Screensaver;
this.id = 'backdropscreensaver';
this.supportsAnonymous = false;

View file

@ -4,7 +4,7 @@ import { randomInt } from '../../utils/number.ts';
export default function () {
const self = this;
self.name = 'Logo ScreenSaver';
self.name = 'LogoScreensaver';
self.type = PluginType.Screensaver;
self.id = 'logoscreensaver';
self.supportsAnonymous = true;

View file

@ -59,6 +59,7 @@
"Auto": "Auto",
"Backdrop": "Backdrop",
"Backdrops": "Backdrops",
"BackdropScreensaver": "Backdrop Screensaver",
"Banner": "Banner",
"BirthDateValue": "Born: {0}",
"BirthLocation": "Birth location",
@ -1016,6 +1017,7 @@
"LogLevel.Critical": "Critical",
"LogLevel.None": "None",
"Logo": "Logo",
"LogoScreensaver": "Logo Screensaver",
"Lyricist": "Lyricist",
"ManageLibrary": "Manage library",
"ManageRecording": "Manage recording",