/// <summary> /// Returns a dictionary translation for the specified dictionary term. /// </summary> /// <param name="term"> /// The Umbraco dictionary term. /// </param> /// <returns> /// The translation. /// </returns> public static string GetDictionaryTranslation(string term) { var requestUrl = HttpContext.Current.Request.Url.ToString(); var culture = GlobalizationHelper.GetCulture(requestUrl); return(GetDictionaryTranslation(term, culture)); }
/// <summary> /// Gets the node containing the translations. /// </summary> /// <param name="page"> /// The node to get the translation node for. /// </param> /// <returns> /// The node containing the translations. /// </returns> public static IPublishedContent GetTranslationNode(IPublishedContent page) { // Variables. var requestUrl = HttpContext.Current.Request.Url.ToString(); var culture = GlobalizationHelper.GetCulture(requestUrl); // Return translation node. return(GetTranslationNode(page, culture)); }