|
|
@ -179,10 +179,7 @@ namespace NzbDrone.Core.Localization
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
using (var fs = File.OpenRead(resourcePath))
|
|
|
|
await using var fs = File.OpenRead(resourcePath);
|
|
|
|
{
|
|
|
|
|
|
|
|
if (fs != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var dict = await JsonSerializer.DeserializeAsync<Dictionary<string, string>>(fs);
|
|
|
|
var dict = await JsonSerializer.DeserializeAsync<Dictionary<string, string>>(fs);
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var key in dict.Keys)
|
|
|
|
foreach (var key in dict.Keys)
|
|
|
@ -190,12 +187,6 @@ namespace NzbDrone.Core.Localization
|
|
|
|
dictionary[key] = dict[key];
|
|
|
|
dictionary[key] = dict[key];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_logger.Error("Missing translation/culture resource: {0}", resourcePath);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static string GetResourceFilename(string culture)
|
|
|
|
private static string GetResourceFilename(string culture)
|
|
|
|
{
|
|
|
|
{
|
|
|
|