/// <summary> /// Returns true if document is translated to one/all of the selected cultures. /// </summary> /// <param name="parameters"> /// Document to be checked; /// Culture codes separated with a semicolon; /// Indicator whether only published versions should be considered. /// </param> public static object IsTranslatedTo(params object[] parameters) { switch (parameters.Length) { case 2: return(ContentFunctions.IsTranslatedTo(parameters[0], ValidationHelper.GetString(parameters[1], null), false)); case 3: return(ContentFunctions.IsTranslatedTo(parameters[0], ValidationHelper.GetString(parameters[1], null), ValidationHelper.GetBoolean(parameters[2], false))); default: throw new NotSupportedException(); } }