Hello Willy,
Sure, you can do so in the
SetupControl method (
~\CMSWebParts\General\languageselectionwithflags.ascx.cs). Please see code marked as NEW CODE:
using (CachedSection<DataSet> cs = new CachedSection<DataSet>(ref ds, this.CacheMinutes, true, this.CacheItemName, "languageselection", CMSContext.CurrentSiteName))
{
if (cs.LoadData)
{
// Get the data
ds = CultureInfoProvider.GetSiteCultures(CMSContext.CurrentSiteName);
//NEW CODE
DataRow row = ds.Tables[0].NewRow();
row["CultureCode"] = "zh-HK";
row["CultureShortName"] = "Chinese";
ds.Tables[0].Rows.Add(row);
// END
// Save to the cache
if (cs.Cached)
{
cs.CacheDependency = CacheHelper.GetCacheDependency(new string[] { "cms.culturesite|all" });
cs.Data = ds;
}
}
}
Best regards,
Michal Legen