public static void TranslateProject(string apikey, string project_path, TranslatorDefinition transdef, Language sourceLanguage) { AndroidProject project = new AndroidProject(project_path); ResourceTranslator rt = new ResourceTranslator(project, transdef.CreateInstance(apikey), sourceLanguage); rt.TranslateProject(); }
public ResourceTranslator(AndroidProject project, ITranslator translator, Language sourceLanguage) { this.Project = project; this.Translator = translator; this.SourceLanguage = sourceLanguage; }