Class LocaleColumn
Represents a Google Sheet column that is synchronized to a localized value for a chosen Locale.
Inherited Members
Namespace: UnityEditor.Localization.Plugins.Google.Columns
Syntax
[Serializable]
public class LocaleColumn : SheetColumn
Properties
IncludeComments
Should any Comment metadata be included as cell notes?
Declaration
public bool IncludeComments { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
LocaleIdentifier
The Id of the Locale.
Declaration
public LocaleIdentifier LocaleIdentifier { get; set; }
Property Value
Type | Description |
---|---|
LocaleIdentifier |
PushFields
Controls which cell fields to synchronize.
Declaration
public override PushFields PushFields { get; }
Property Value
Type | Description |
---|---|
PushFields |
Overrides
Methods
PullBegin(StringTableCollection)
Called when starting a pull to allow a column to initialize itself.
Declaration
public override void PullBegin(StringTableCollection collection)
Parameters
Type | Name | Description |
---|---|---|
StringTableCollection | collection | The collection to update from the Google Sheet. |
Overrides
PullCellData(SharedTableData.SharedTableEntry, String, String)
Called to update the StringTableCollection using the provided cell data.
Declaration
public override void PullCellData(SharedTableData.SharedTableEntry keyEntry, string cellValue, string cellNote)
Parameters
Type | Name | Description |
---|---|---|
SharedTableData.SharedTableEntry | keyEntry | The entry being updated for this cell. |
String | cellValue | The cell value or null if PushFields does not contain the flag Value. |
String | cellNote | The cell note or null if PushFields does not contain the flag Note. |
Overrides
PushBegin(StringTableCollection)
Called when starting a push to allow a column to initialize itself.
Declaration
public override void PushBegin(StringTableCollection collection)
Parameters
Type | Name | Description |
---|---|---|
StringTableCollection | collection | The collection to push to a Google Sheet. |
Overrides
PushCellData(SharedTableData.SharedTableEntry, IList<StringTableEntry>, out String, out String)
Extracts the data that should populate the columns cell for the row associated with the Key.
Declaration
public override void PushCellData(SharedTableData.SharedTableEntry keyEntry, IList<StringTableEntry> tableEntries, out string value, out string note)
Parameters
Type | Name | Description |
---|---|---|
SharedTableData.SharedTableEntry | keyEntry | The Key that represents the row in the spreadsheet. |
IList<StringTableEntry> | tableEntries | The StringTableEntry for the current SharedTableData.SharedTableEntry. The order of the tables will match the source StringTableCollection, If a table does not contain data for the current key then a null entry will be used. |
String | value | The value to be used for the cell. This can be null if PushFields is Note or the cell should be empty. |
String | note | The value to be used for the cell note. This can be null if PushFields is Value or if there should not be a note for this cell. |
Overrides
PushHeader(StringTableCollection, out String, out String)
Sets the column title and optional note. These values are always set regardless of the value of PushFields.
Declaration
public override void PushHeader(StringTableCollection collection, out string header, out string headerNote)
Parameters
Type | Name | Description |
---|---|---|
StringTableCollection | collection | |
String | header | The title to use for the column header. |
String | headerNote | Optional note that can be added to the header. |