public string GetLocalizedPath(string file) { if (string.IsNullOrEmpty(Source.File.HelpPath)) { return(null); } var culture = Pipeline.Baseline.GetCulture(); if (!_RaisedUsingInvariantCulture && (culture == null || culture.Length == 0)) { Writer.WarnUsingInvariantCulture(); _RaisedUsingInvariantCulture = true; return(null); } for (var i = 0; i < culture.Length; i++) { var path = Path.Combine(Source.File.HelpPath, culture[i], file); if (File.Exists(path)) { return(path); } } return(null); }