Fix localizations with sub-code not working

This commit is contained in:
Mikael Mello
2018-09-06 11:50:53 -03:00
parent 12132e9cb5
commit 4ae5083170
@@ -74,7 +74,7 @@ namespace Duplicati.Library.Localization
// Load the specialized version first
string.Format("localization-{0}.mo", ci.Name),
// Then try the generic language version
string.Format("localization-{0}.mo", ci.TwoLetterISOLanguageName)
string.Format("localization-{0}.mo", ci.TwoLetterISOLanguageName.Replace('-', '_'))
};
foreach(var fn in filenames)