Exemplo n.º 1
0
 private void ImportTranslationsFromAssembly(string fileName)
 {
     String assemblyPath = Path.GetFullPath(fileName);
     Assembly ass = Assembly.LoadFile(assemblyPath);
     AssemblyTranslationCollector tc = new AssemblyTranslationCollector(1, ass, SyncTranslationCallback);
     var stats = tc.CollectTranslations();
     logger.Info("New translations: {0}, existing: {1}", stats.AddedTranslations, stats.ExistingTranslations);
 }
 public TranslationSyncStatistics ImportTranslationsFromAssembly(int projectID, Assembly assembly)
 {
     ITranslationCollector collector = new AssemblyTranslationCollector(projectID, assembly, SyncTranslationsCallback);
     return collector.CollectTranslations();
 }