Adding another language/flag

Apr 16, 2009 at 11:19 AM
I want to add a site that uses the gh.png flag (Ghana). The options is missing in the language drop-down. I see the flag-file is there though. How can I add English (Ghana) to the list?
Apr 16, 2009 at 1:33 PM
I see the dropdown gets filled here. I have not figured out how to add a culture to the system though.

protected override ListItem[] GetListItems()
List<CultureInfo> cultures = new List<CultureInfo>(CultureInfo.GetCultures(CultureTypes.SpecificCultures));
cultures.Sort(delegate(CultureInfo first, CultureInfo second)
return first.DisplayName.CompareTo(second.DisplayName);

ListItem[] items = new ListItem[cultures.Count];
for (int i = 0; i < cultures.Count; i++)
items[i] = new ListItem(cultures[i].DisplayName, cultures[i].Name);
return items;
Apr 16, 2009 at 5:58 PM
If you're willing to extend the list and post a patch that includes an image I'd be happy to commit it. CultureTypes.AllCultures might work.