public static TranslationItem[] GetTranslationItems() { CultureInfo[] cultures = CultureInfo.GetCultures(CultureTypes.SpecificCultures & ~CultureTypes.UserCustomCulture & ~CultureTypes.ReplacementCultures); TranslationItem[] transItems = new TranslationItem[cultures.Length]; for (int i = 0; i < cultures.Length; i++) { transItems[i] = new TranslationItem(cultures[i].LCID); } return(transItems); }
public static TranslationItem[] GetTranslationItems() { CultureInfo[] cultures = CultureInfo.GetCultures(CultureTypes.SpecificCultures & ~CultureTypes.UserCustomCulture & ~CultureTypes.ReplacementCultures); TranslationItem[] transItems = new TranslationItem[cultures.Length]; for(int i=0; i<cultures.Length; i++) { transItems[i] = new TranslationItem(cultures[i].LCID); } return transItems; }
private void AddTranslationDialog_Load(object sender, System.EventArgs e) { TranslationItem[] cultures = TranslationItem.GetTranslationItems(); langComboBox.Items.AddRange(cultures); langComboBox.SelectedItem = TranslationItem.SystemLanguage(); }