Exemple #1
0
 public void CombinePoFile(PoFile ToAddPofile, LanguageCell Language)
 {
     foreach (PoFileValues Value in ToAddPofile.Values)
     {
         CultureInfo NewcultureInfo = new CultureInfo(Language.Language);
         LocalizationFileLanguageListValues NewLanguageListValues = new LocalizationFileLanguageListValues(Value, NewcultureInfo, Language.Cell);
         LanguageValues.Add(NewLanguageListValues);
     }
 }
Exemple #2
0
 public void AddPoFile(PoFile ToAddPofile, LanguageCell Language)
 {
     foreach (PoFileValues Value in ToAddPofile.Values)
     {
         CultureInfo NewcultureInfo = new CultureInfo(Language.Language);
         LocalizationFileLanguageListValues NewLanguageListValues = new LocalizationFileLanguageListValues(Value, NewcultureInfo, Language.Cell);
         LocalizationFileLanguageListValues TranslateValue        = LanguageValues.Find(x => x.Key == NewLanguageListValues.Key);
         if (TranslateValue != null)
         {
             foreach (var item in NewLanguageListValues.ListValues)
             {
                 TranslateValue.ListValues.Add(item);
             }
         }
     }
 }