Search Results for

    Show / Hide Table of Contents
    View Source

    Interface ILanguage

    Represents a language.

    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public interface ILanguage : IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty

    Properties

    View Source

    CultureInfo

    Gets the CultureInfo object for the language.

    Declaration
    [IgnoreDataMember]
    CultureInfo CultureInfo { get; }
    Property Value
    Type Description
    System.Globalization.CultureInfo
    View Source

    CultureName

    Gets or sets the culture name of the language.

    Declaration
    [DataMember]
    string CultureName { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    FallbackIsoCode

    Gets or sets the ISO code of a fallback language.

    Declaration
    [DataMember]
    string FallbackIsoCode { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    The fallback language can be used in multi-lingual scenarios, to help define fallback strategies when a value does not exist for a requested language.

    View Source

    IsDefault

    Gets or sets a value indicating whether the language is the default language.

    Declaration
    [DataMember]
    bool IsDefault { get; set; }
    Property Value
    Type Description
    System.Boolean
    View Source

    IsMandatory

    Gets or sets a value indicating whether the language is mandatory.

    Declaration
    [DataMember]
    bool IsMandatory { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    When a language is mandatory, a multi-lingual document cannot be published without that language being published, and unpublishing that language unpublishes the entire document.

    View Source

    IsoCode

    Gets or sets the ISO code of the language.

    Declaration
    [DataMember]
    string IsoCode { get; set; }
    Property Value
    Type Description
    System.String
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX
    OSZAR »