2015-12-14 05:21:02 +08:00
|
|
|
|
using System.Collections.Generic;
|
2024-04-19 05:35:48 +08:00
|
|
|
|
using Orchard.Autoroute.Models;
|
2015-12-14 05:21:02 +08:00
|
|
|
|
using Orchard.ContentManagement;
|
|
|
|
|
using Orchard.Localization.Models;
|
|
|
|
|
|
|
|
|
|
namespace Orchard.Localization.Services {
|
|
|
|
|
public interface ILocalizationService : IDependency {
|
|
|
|
|
LocalizationPart GetLocalizedContentItem(IContent content, string culture);
|
|
|
|
|
LocalizationPart GetLocalizedContentItem(IContent content, string culture, VersionOptions versionOptions);
|
|
|
|
|
string GetContentCulture(IContent content);
|
|
|
|
|
void SetContentCulture(IContent content, string culture);
|
|
|
|
|
IEnumerable<LocalizationPart> GetLocalizations(IContent content);
|
|
|
|
|
IEnumerable<LocalizationPart> GetLocalizations(IContent content, VersionOptions versionOptions);
|
2024-04-19 05:35:48 +08:00
|
|
|
|
bool TryFindLocalizedRoute(ContentItem routableContent, string cultureName, out AutoroutePart localizedRoute);
|
|
|
|
|
bool TryGetRouteForUrl(string url, out AutoroutePart route);
|
2015-12-14 05:21:02 +08:00
|
|
|
|
}
|
|
|
|
|
}
|