Re: One plugin, 2 skins?
Michael Herger <slim-b/[email protected]> Mon, 19 Sep 2022 15:17:35 +0200
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Message-ID | <[email protected]> |
> With the above the skin selector ("Web Interface") in the "Interface"
> settings page shows; material-party, Material Skin, Light, Classic,
> Default. Its this "material-party" that I want translated to "Material
> Skin (Party)". If I name the folder "Material Skin (Party)" then its
> shown as is, but is obviously not translated.
As I said you'll have to create an entry PARTY_SKIN or whatever in
strings.txt. And as I don't know how that would work with a hyphen I
recommended using just "party", not "material-part". Eg. there's no
folder called "Light", but it's "EN", with a string token EN_SKIN with
the value "Light". The name shown in LMS would be the value from
strings.txt, not the folder name - if such a token could be found.
Oh, the mapping is pretty simple:
https://github.com/Logitech/slimserver/blob/public/8.3/Slim/Web/Template/SkinManager.pm#L111
Which means you better stick with just a few latin characters, nothing else.