src/BloomExe/Spreadsheet/SpreadsheetExporter.cs
/// <summary>
/// Get the column for a language. If no column exists, one will be added
/// </summary>
/// <remarks>If the column does not exist it will be added.
/// The friendly name used for the column will be the display name for that language according to {this.LangDisplayNameResolver}</remarks>
/// If the column already exists, its index will be returned. The column, including the column friendly name, will not be modified
/// <param name="langCode">The language code to look up, as specified in the header</param>
/// <returns>The index of the column</returns>
Get the column for a language. If no column exists, one will be added
Get the column for a language . If no column exists one will be added
private int GetOrAddColumnForLang(string langCode)
		{
			var colIndex = _spreadsheet.GetOptionalColumnForLang(langCode);
			if (colIndex >= 0)
			{
				return colIndex;
			}
			var langFriendlyName = LangDisplayNameResolver.GetLanguageDisplayName(langCode);
			return _spreadsheet.AddColumnForLang(langCode, langFriendlyName);
		}
private int GetOrAddColumnForLang ( string langCode ) { var colIndex = _spreadsheet . GetOptionalColumnForLang ( langCode ) ; if ( colIndex >= 0 ) { return colIndex ; } var langFriendlyName = LangDisplayNameResolver . GetLanguageDisplayName ( langCode ) ; return _spreadsheet . AddColumnForLang ( langCode , langFriendlyName ) ; }
Get the column for a language.
Get the column for a language .
// Check if a column already exists for this column // Doesn't exist yet. Let's add a column for it.
The index of the column
The index of the column
langCode
string
The language code to look up, as specified in the header
The language code to look up as specified in the header
remarks
If the column does not exist it will be added.
The friendly name used for the column will be the display name for that language according to {this.LangDisplayNameResolver}
If the column does not exist it will be added . The friendly name used for the column will be the display name for that language according to { this . LangDisplayNameResolver }