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);
 }
예제 #2
0
 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();
 }