Removed method marked for deletion in V8
This commit is contained in:
@@ -47,13 +47,5 @@ namespace Umbraco.Core.Services
|
|||||||
/// to resolve the full culture if possible.
|
/// to resolve the full culture if possible.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
CultureInfo ConvertToSupportedCultureWithRegionCode(CultureInfo currentCulture);
|
CultureInfo ConvertToSupportedCultureWithRegionCode(CultureInfo currentCulture);
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// HAAAAAAAAAAACK! Used for backwards compat to convert a user's real culture code to a region code - normally this would be two letters
|
|
||||||
/// TODO: REmove in v8
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="currentCulture"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
string ConvertToRegionCodeFromSupportedCulture(CultureInfo currentCulture);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -203,23 +203,6 @@ namespace Umbraco.Core.Services.Implement
|
|||||||
return attempt ? attempt.Result : currentCulture;
|
return attempt ? attempt.Result : currentCulture;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// HAAAAAAAAAAACK! Used for backwards compat to convert a user's real culture code to a region code - normally this would be two letters
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="currentCulture"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
public string ConvertToRegionCodeFromSupportedCulture(CultureInfo currentCulture)
|
|
||||||
{
|
|
||||||
if (currentCulture == null) throw new ArgumentNullException("currentCulture");
|
|
||||||
|
|
||||||
if (_fileSources == null) return currentCulture.Name;
|
|
||||||
|
|
||||||
var attempt = _fileSources.Value.TryConvert4LetterCultureTo2Letter(currentCulture);
|
|
||||||
return attempt
|
|
||||||
? attempt.Result
|
|
||||||
: currentCulture.Name;
|
|
||||||
}
|
|
||||||
|
|
||||||
private string GetFromDictionarySource(CultureInfo culture, string area, string key, IDictionary<string, string> tokens)
|
private string GetFromDictionarySource(CultureInfo culture, string area, string key, IDictionary<string, string> tokens)
|
||||||
{
|
{
|
||||||
if (_dictionarySource.ContainsKey(culture) == false)
|
if (_dictionarySource.ContainsKey(culture) == false)
|
||||||
|
|||||||
Reference in New Issue
Block a user