mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-15 16:48:32 +08:00

* Adds a new CultureSelector shape for front-end * fixed query string culture change * Moving NameValueCollectionExtensions from Orchard.DynamicForms and Orchard.Localization to Orchard.Framework * Code styling * Simplifying UserCultureSelectorController and removing the addition of the culture to the query string * EOF empty lines and code styling * Fixing that the main Orchard.Localization should depend on Orchard.Autoroute * Code styling in LocalizationService * Updating LocalizationService to not have to use IEnumerable.Single * Matching culture name matching in LocalizationService culture- and casing-invariant --------- Co-authored-by: Sergio Navarro <jersio@hotmail.com> Co-authored-by: psp589 <pablosanchez589@gmail.com>
18 lines
930 B
C#
18 lines
930 B
C#
using System.Collections.Generic;
|
|
using Orchard.Autoroute.Models;
|
|
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);
|
|
bool TryFindLocalizedRoute(ContentItem routableContent, string cultureName, out AutoroutePart localizedRoute);
|
|
bool TryGetRouteForUrl(string url, out AutoroutePart route);
|
|
}
|
|
}
|