Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

Commit a256177

Browse files
Change parameter name
1 parent 7475951 commit a256177

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Microsoft.Extensions.Localization/ResourceManagerStringLocalizer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public virtual LocalizedString this[string name]
121121

122122
var value = GetStringSafely(name, null);
123123

124-
return new LocalizedString(name, value ?? name, resourceNotFound: value == null, locationSearched: _resourceBaseName);
124+
return new LocalizedString(name, value ?? name, resourceNotFound: value == null, searchedLocation: _resourceBaseName);
125125
}
126126
}
127127

@@ -138,7 +138,7 @@ public virtual LocalizedString this[string name]
138138
var format = GetStringSafely(name, null);
139139
var value = string.Format(format ?? name, arguments);
140140

141-
return new LocalizedString(name, value, resourceNotFound: format == null, locationSearched: _resourceBaseName);
141+
return new LocalizedString(name, value, resourceNotFound: format == null, searchedLocation: _resourceBaseName);
142142
}
143143
}
144144

@@ -189,7 +189,7 @@ protected IEnumerable<LocalizedString> GetAllStrings(bool includeParentCultures,
189189
foreach (var name in resourceNames)
190190
{
191191
var value = GetStringSafely(name, culture);
192-
yield return new LocalizedString(name, value ?? name, resourceNotFound: value == null, locationSearched: _resourceBaseName);
192+
yield return new LocalizedString(name, value ?? name, resourceNotFound: value == null, searchedLocation: _resourceBaseName);
193193
}
194194
}
195195

0 commit comments

Comments
 (0)