コード例 #1
0
ファイル: Program.cs プロジェクト: wuttke/tinytranslator
 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);
 }
コード例 #2
0
 public TranslationSyncStatistics ImportTranslationsFromAssembly(int projectID, Assembly assembly)
 {
     ITranslationCollector collector = new AssemblyTranslationCollector(projectID, assembly, SyncTranslationsCallback);
     return collector.CollectTranslations();
 }