Class StringTableBase | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class StringTableBase

    Base class for all StringTables.

    Inheritance
    System.Object
    LocalizedTable
    StringTableBase
    StringTable
    Inherited Members
    LocalizedTable.LocaleIdentifier
    LocalizedTable.TableName
    LocalizedTable.Keys
    LocalizedTable.ToString()
    Namespace: UnityEngine.Localization
    Syntax
    public abstract class StringTableBase : LocalizedTable

    Properties

    PluralHandler

    Declaration
    public virtual PluralForm PluralHandler { get; set; }
    Property Value
    Type Description
    PluralForm

    Methods

    GetLocalizedPluralString(String, Int32)

    Gets the localized plural string using the PluralHandler.

    Declaration
    public virtual string GetLocalizedPluralString(string key, int n)
    Parameters
    Type Name Description
    System.String key

    Key from KeyDatabase for the original singular form.

    System.Int32 n

    Plural amount

    Returns
    Type Description
    System.String

    The localized plural string. E.G '{0} files removed' or null if one can not be found.

    GetLocalizedPluralString(UInt32, Int32)

    Gets the localized plural string using the PluralHandler.

    Declaration
    public abstract string GetLocalizedPluralString(uint keyId, int n)
    Parameters
    Type Name Description
    System.UInt32 keyId

    Key ID from KeyDatabase for the original singular form.

    System.Int32 n

    Plural amount

    Returns
    Type Description
    System.String

    The localized plural string. E.G '{0} files removed' or null if one can not be found.

    GetLocalizedString(String)

    Returns the localized version of the string or null if one can not be found.

    Declaration
    public virtual string GetLocalizedString(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    System.String

    GetLocalizedString(UInt32)

    Returns the localized version of the string or null if one can not be found.

    Declaration
    public abstract string GetLocalizedString(uint keyId)
    Parameters
    Type Name Description
    System.UInt32 keyId

    The id of the key, taken from the KeyDatabase.

    Returns
    Type Description
    System.String
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023