Class StringTableBase
Base class for all StringTables.
Inherited Members
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 |