mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-30 12:28:27 +01:00
update translations
This commit is contained in:
@@ -19,7 +19,7 @@ namespace MediaBrowser.Dlna.Profiles
|
||||
|
||||
ModelNumber = "12.0";
|
||||
|
||||
FriendlyName = "Media Browser on ${ServerName} : 1 : Windows Media Connect";
|
||||
FriendlyName = "${HostName} : 1 : Windows Media Connect";
|
||||
|
||||
ModelUrl = "http://www.microsoft.com/";
|
||||
Manufacturer = "Microsoft Corporation";
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<HttpHeaderInfo name="User-Agent" value="Xenon" match="Substring" />
|
||||
</Headers>
|
||||
</Identification>
|
||||
<FriendlyName>Media Browser on ${ServerName} : 1 : Windows Media Connect</FriendlyName>
|
||||
<FriendlyName>${HostName} : 1 : Windows Media Connect</FriendlyName>
|
||||
<Manufacturer>Microsoft Corporation</Manufacturer>
|
||||
<ManufacturerUrl>http://www.microsoft.com/</ManufacturerUrl>
|
||||
<ModelName>Windows Media Connect</ModelName>
|
||||
|
||||
@@ -110,13 +110,11 @@ namespace MediaBrowser.Dlna.Server
|
||||
|
||||
private string GetFriendlyName()
|
||||
{
|
||||
var name = _profile.FriendlyName ?? string.Empty;
|
||||
|
||||
var characters = _serverName.Where(c => (char.IsLetterOrDigit(c) || c == '-')).ToArray();
|
||||
|
||||
var serverName = new string(characters);
|
||||
|
||||
name = name.Replace("${ServerName}", serverName, StringComparison.OrdinalIgnoreCase);
|
||||
var name = (_profile.FriendlyName ?? string.Empty).Replace("${HostName}", serverName, StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
return name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user